2017-04-24 13:58:51 +02:00
|
|
|
[tox]
|
2022-03-21 16:00:12 +01:00
|
|
|
envlist = py3-django22-codestyle-coverage, pylint
|
2019-03-31 15:08:41 +02:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/chrono/{env:BRANCH_NAME:}
|
2017-04-24 13:58:51 +02:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop =
|
|
|
|
coverage: True
|
|
|
|
nocoverage: False
|
|
|
|
setenv =
|
|
|
|
DJANGO_SETTINGS_MODULE=chrono.settings
|
|
|
|
CHRONO_SETTINGS_FILE=tests/settings.py
|
2020-03-06 09:43:52 +01:00
|
|
|
BRANCH_NAME={env:BRANCH_NAME:}
|
2020-09-01 14:21:37 +02:00
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
2022-01-11 15:51:21 +01:00
|
|
|
coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=chrono/ --cov-config .coveragerc
|
2017-04-24 13:58:51 +02:00
|
|
|
deps =
|
|
|
|
pytest-cov
|
|
|
|
pytest-django
|
2020-01-18 10:27:28 +01:00
|
|
|
pytest!=5.3.3
|
2017-04-24 13:58:51 +02:00
|
|
|
WebTest
|
2020-10-06 09:29:03 +02:00
|
|
|
mock<4
|
2017-04-24 13:58:51 +02:00
|
|
|
httmock
|
2020-03-29 20:12:27 +02:00
|
|
|
pylint
|
|
|
|
pylint-django
|
2019-09-21 21:22:27 +02:00
|
|
|
django-webtest
|
2018-06-20 22:16:14 +02:00
|
|
|
pytz
|
2019-12-24 12:16:16 +01:00
|
|
|
pyquery
|
2019-09-21 21:22:27 +02:00
|
|
|
django22: django-mellon>=1.6.1
|
2018-04-26 13:27:49 +02:00
|
|
|
pytest-freezegun
|
2019-09-21 21:22:27 +02:00
|
|
|
django22: django>=2.2,<2.3
|
2021-06-17 08:50:01 +02:00
|
|
|
psycopg2-binary<2.9
|
2021-04-08 11:24:47 +02:00
|
|
|
codestyle: pre-commit
|
2022-05-05 14:51:37 +02:00
|
|
|
git+https://git.entrouvert.org/publik-django-templatetags.git
|
2017-04-24 13:58:51 +02:00
|
|
|
commands =
|
2019-09-21 21:22:27 +02:00
|
|
|
./getlasso3.sh
|
2020-11-02 16:08:27 +01:00
|
|
|
python3 setup.py compile_translations
|
2017-04-24 13:58:51 +02:00
|
|
|
py.test {env:COVERAGE:} {posargs:tests/}
|
2021-04-08 11:24:47 +02:00
|
|
|
codestyle: pre-commit run --all-files --show-diff-on-failure
|
2022-03-21 16:00:12 +01:00
|
|
|
|
|
|
|
[testenv:pylint]
|
|
|
|
deps =
|
|
|
|
pytest-django
|
|
|
|
pytest!=5.3.3
|
|
|
|
WebTest
|
|
|
|
mock<4
|
|
|
|
httmock
|
|
|
|
pylint
|
|
|
|
pylint-django
|
|
|
|
django-webtest
|
|
|
|
pytz
|
|
|
|
pyquery
|
|
|
|
django-mellon>=1.6.1
|
|
|
|
pytest-freezegun
|
|
|
|
psycopg2-binary<2.9
|
2022-05-05 14:51:37 +02:00
|
|
|
git+https://git.entrouvert.org/publik-django-templatetags.git
|
2022-03-21 16:00:12 +01:00
|
|
|
commands =
|
|
|
|
./getlasso3.sh
|
|
|
|
pylint: ./pylint.sh chrono/ tests/
|