2018-07-14 10:36:23 +02:00
|
|
|
[tox]
|
2020-07-28 13:17:54 +02:00
|
|
|
envlist = py3-django111-coverage-pylint,py3-django22
|
2020-01-19 19:37:20 +01:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/welco/{env:BRANCH_NAME:}
|
2018-07-14 10:36:23 +02:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop =
|
|
|
|
coverage: True
|
|
|
|
setenv =
|
|
|
|
DJANGO_SETTINGS_MODULE=welco.settings
|
2019-05-20 14:07:12 +02:00
|
|
|
WELCO_SETTINGS_FILE=tests/settings.py
|
2020-09-01 14:40:08 +02:00
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
2018-07-14 10:36:23 +02:00
|
|
|
fast: FAST=--nomigrations
|
2020-01-19 19:37:20 +01:00
|
|
|
coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=welco/
|
2018-07-14 10:36:23 +02:00
|
|
|
deps =
|
|
|
|
django111: django>=1.11,<1.12
|
2020-04-02 21:13:07 +02:00
|
|
|
django22: django>=2.2,<2.3
|
2018-07-14 10:36:23 +02:00
|
|
|
pytest-cov
|
|
|
|
pytest-django
|
2020-03-17 19:21:10 +01:00
|
|
|
pytest!=5.3.3
|
2018-07-14 10:36:23 +02:00
|
|
|
WebTest
|
2020-10-06 09:22:21 +02:00
|
|
|
mock<4
|
2018-07-14 10:36:23 +02:00
|
|
|
httmock
|
|
|
|
python-dateutil
|
2020-07-28 13:18:49 +02:00
|
|
|
pylint
|
|
|
|
pylint-django
|
|
|
|
django-webtest
|
2018-07-14 10:36:23 +02:00
|
|
|
pyquery
|
|
|
|
lxml
|
2019-05-20 11:11:28 +02:00
|
|
|
git+https://git.entrouvert.org/debian/django-ckeditor.git
|
2018-07-14 10:36:23 +02:00
|
|
|
commands =
|
2020-01-19 19:37:20 +01:00
|
|
|
pylint: ./pylint.sh welco/
|
|
|
|
py.test {env:COVERAGE:} {posargs:tests/}
|