chrono/tox.ini

43 lines
1.1 KiB
INI

[tox]
envlist = py3-django111-pg-codestyle-coverage-pylint, py3-django22-pg
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/
pg: DB_ENGINE=django.db.backends.postgresql_psycopg2
deps =
pytest-cov
pytest-django
pytest!=5.3.3
WebTest
mock<4
httmock
pylint
pylint-django
django-webtest
pytz
pyquery
django111: django-mellon>=1.2.35,!=1.6
django22: django-mellon>=1.6.1
pytest-freezegun
django111: django>=1.11,<1.12
django22: django>=2.2,<2.3
django111: djangorestframework<3.12.0
psycopg2-binary<2.9
django111: django-filter<2.3
codestyle: pre-commit
commands =
./getlasso3.sh
python3 setup.py compile_translations
py.test {env:COVERAGE:} {posargs:tests/}
pylint: ./pylint.sh chrono/
codestyle: pre-commit run --all-files --show-diff-on-failure