2017-04-24 15:25:45 +02:00
|
|
|
[tox]
|
2018-06-01 10:16:24 +02:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/combo/{env:BRANCH_NAME:}
|
2019-05-27 10:19:32 +02:00
|
|
|
envlist = coverage-py2-pylint,py3
|
2017-04-24 15:25:45 +02:00
|
|
|
|
|
|
|
[testenv]
|
2018-03-16 12:40:01 +01:00
|
|
|
usedevelop = True
|
2018-07-23 22:34:39 +02:00
|
|
|
basepython = python2
|
2017-04-24 15:25:45 +02:00
|
|
|
setenv =
|
2018-07-25 14:28:05 +02:00
|
|
|
py2: WCSCTL=wcs/wcsctl.py
|
2017-04-24 15:25:45 +02:00
|
|
|
DJANGO_SETTINGS_MODULE=combo.settings
|
|
|
|
COMBO_SETTINGS_FILE=tests/settings.py
|
2019-05-27 10:19:32 +02:00
|
|
|
coverage: COVERAGE=--cov-report xml --cov-report html --cov=combo/
|
2017-04-24 15:25:45 +02:00
|
|
|
deps =
|
2019-05-27 10:19:32 +02:00
|
|
|
django>=1.11,<1.12
|
|
|
|
pywebpush
|
2017-04-24 15:25:45 +02:00
|
|
|
pytest-cov
|
|
|
|
pytest-django
|
2018-03-24 02:09:52 +01:00
|
|
|
pytest-freezegun
|
2018-11-14 18:37:33 +01:00
|
|
|
pytest<4
|
2017-04-24 15:25:45 +02:00
|
|
|
WebTest
|
|
|
|
mock
|
|
|
|
httmock
|
|
|
|
pylint<1.8
|
2018-12-18 11:06:01 +01:00
|
|
|
pylint-django<0.8.1
|
2018-05-04 15:43:18 +02:00
|
|
|
django-webtest<1.9.3
|
2018-06-01 10:16:24 +02:00
|
|
|
psycopg2
|
2018-05-31 17:24:18 +02:00
|
|
|
django-mellon
|
2018-07-25 14:28:05 +02:00
|
|
|
py2: quixote<3.0
|
|
|
|
py2: vobject
|
2019-05-20 11:04:57 +02:00
|
|
|
git+http://git.entrouvert.org/debian/django-ckeditor.git
|
2017-04-24 15:25:45 +02:00
|
|
|
commands =
|
2018-05-31 17:24:18 +02:00
|
|
|
./getlasso.sh
|
2018-05-22 12:30:30 +02:00
|
|
|
python manage.py compilemessages
|
2018-06-01 10:16:24 +02:00
|
|
|
./get_wcs.sh
|
2019-05-27 10:19:32 +02:00
|
|
|
py.test {env:COVERAGE:} {posargs: --junitxml=test_{envname}_results.xml tests/}
|
|
|
|
pylint: ./pylint.sh combo/
|