tox.ini: allow running without coverage

This commit is contained in:
Benjamin Dauvergne 2016-03-10 14:05:24 +01:00
parent fa5491ec40
commit a78c25499d
1 changed files with 7 additions and 5 deletions

12
tox.ini
View File

@ -1,11 +1,13 @@
[tox]
envlist = django17,django18
envlist = coverage-{django17,django18}
[testenv]
usedevelop = True
usedevelop =
coverage: True
setenv =
DJANGO_SETTINGS_MODULE=passerelle.settings
PASSERELLE_SETTINGS_FILE=tests/settings.py
DJANGO_SETTINGS_MODULE=passerelle.settings
PASSERELLE_SETTINGS_FILE=tests/settings.py
coverage: COVERAGE=--junitxml=test_results.xml --cov-report xml --cov=passerelle/ --cov-config .coveragerc
deps =
django17: django>1.7,<1.8
django18: django>=1.8,<1.9
@ -26,4 +28,4 @@ deps =
gadjo
commands =
./getmagic.sh
py.test --junitxml=test_results.xml --cov-report xml --cov=passerelle/ --cov-config .coveragerc tests/
py.test {env:COVERAGE:} tests/