tox.ini: restrict django-webtest for testing dj17, and add coverage of dj18, dj19 and dj110

This commit is contained in:
Benjamin Dauvergne 2017-03-10 11:37:35 +01:00
parent 6d3f6c7716
commit cc83abb261
1 changed files with 7 additions and 2 deletions

View File

@ -5,6 +5,7 @@
[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/bijoe/
envlist = dj17,dj18
[testenv]
usedevelop = true
@ -12,13 +13,17 @@ setenv =
DJANGO_SETTINGS_MODULE=bijoe.settings
coverage: COVERAGE=--junit-xml=test_results.xml --cov=bijoe --cov-report xml
deps =
django>=1.7,<1.8
dj17: django>=1.7,<1.8
dj18: django>=1.8,<1.9
dj19: django>=1.9,<1.10
dj110: django>=1.10,<1.11
coverage
pytest
pytest-cov
pytest-random
pytest-django
WebTest
django-webtest
dj17: django-webtest<1.9
dj18,dj19,dj110: django-webtest
commands =
py.test {env:COVERAGE:} {posargs:--nomigrations --random tests}