48 lines
1.1 KiB
INI
48 lines
1.1 KiB
INI
[tox]
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/wcs/{env:BRANCH_NAME:}
|
|
envlist = py3-django111-pylint-coverage, py3-django22
|
|
|
|
[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
|
|
django111: django>=1.11,<1.12
|
|
django22: django>=2.2,<2.3
|
|
django-ratelimit<3
|
|
pyproj
|
|
pylint<1.8
|
|
Quixote>=3.0,<3.2
|
|
commands =
|
|
py.test -v {env:COVERAGE:} --junitxml=junit-{envname}.xml {posargs:tests/}
|
|
pylint: ./pylint.sh wcs/
|