You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.4 KiB
INI
66 lines
1.4 KiB
INI
[tox]
|
|
envlist =
|
|
py3-django32-codestyle-coverage,
|
|
pylint
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/chrono/{env:BRANCH_NAME:}
|
|
|
|
[testenv]
|
|
usedevelop =
|
|
coverage: True
|
|
nocoverage: False
|
|
setenv =
|
|
DJANGO_SETTINGS_MODULE=chrono.settings
|
|
CHRONO_SETTINGS_FILE=tests/settings.py
|
|
BRANCH_NAME={env:BRANCH_NAME:}
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
|
coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=chrono/ --cov-config .coveragerc
|
|
|
|
deps =
|
|
pytest-cov
|
|
pytest-django
|
|
pytest-xdist
|
|
pytest!=5.3.3
|
|
WebTest
|
|
mock<4
|
|
httmock
|
|
pylint
|
|
pylint-django
|
|
django-webtest
|
|
pytz
|
|
pyquery
|
|
django-mellon>=1.6.1
|
|
pytest-freezegun
|
|
django-filter>=2.4,<2.5
|
|
django32: django>=3.2,<3.3
|
|
django32: psycopg2-binary>=2.9
|
|
codestyle: pre-commit
|
|
git+https://git.entrouvert.org/publik-django-templatetags.git
|
|
commands =
|
|
./getlasso3.sh
|
|
python3 setup.py compile_translations
|
|
py.test {env:COVERAGE:} {posargs:tests/}
|
|
codestyle: pre-commit run --all-files --show-diff-on-failure
|
|
|
|
[testenv:pylint]
|
|
setenv =
|
|
NUMPROCESSES={env:NUMPROCESSES:6}
|
|
|
|
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
|
|
git+https://git.entrouvert.org/publik-django-templatetags.git
|
|
commands =
|
|
./getlasso3.sh
|
|
pylint: ./pylint.sh chrono/ tests/
|