wcs/tox.ini

51 lines
1.2 KiB
INI

[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/wcs/{env:BRANCH_NAME:main}/{env:EXECUTOR_NUMBER:}
envlist = py3-django22-codestyle-pylint-coverage
[testenv]
sitepackages = true
setenv =
SETUPTOOLS_USE_DISTUTILS=stdlib
PYTHONPATH={toxinidir}{:}{env:PYTHONPATH:}
PYTHONHASHSEED=0
DJANGO_SETTINGS_MODULE=wcs.settings
WCS_SETTINGS_FILE=tests/settings.py
LC_ALL=C
LC_TIME=C
LANG=C
coverage: COVERAGE=--cov-report xml --cov-report html --cov=wcs/ --cov-config .coveragerc -v
passenv =
USER
deps =
pytest>=3.6
pytest-mock
pytest-cov
pytest-django
pytest-freezegun
WebTest
mechanize
gadjo
pyquery
mock<4
requests
vobject
qrcode
Pillow
workalendar
python-magic
docutils
langdetect
git+https://git.entrouvert.org/debian/django-ckeditor.git
django22: django>=2.2,<2.3
django-ratelimit<3
pyproj
astroid!=2.5.7
pylint
Quixote>=3.0,<3.2
pre-commit
pyzbar
commands =
py.test -v {env:COVERAGE:} --junitxml=junit-{envname}.xml {posargs:tests/}
pylint: ./pylint.sh wcs/ tests/
codestyle: pre-commit run --all-files --show-diff-on-failure