wcs/tox.ini

45 lines
1010 B
INI

[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/wcs/{env:BRANCH_NAME:}
envlist = py3-django111-pylint-coverage, py3-django22
[testenv]
sitepackages = true
setenv =
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
requests
vobject
qrcode
Pillow
python-magic
docutils
git+https://git.entrouvert.org/debian/django-ckeditor.git
django111: django>=1.11,<1.12
django22: django>=2.2,<2.3
django-ratelimit<3
pyproj
pylint<1.8
Quixote>=3.0
commands =
py.test -v {env:COVERAGE:} --junitxml=junit-{envname}.xml {posargs:tests/}
pylint: ./pylint.sh wcs/