tox.ini: factorize

This commit is contained in:
Benjamin Dauvergne 2016-03-18 14:26:10 +01:00
parent a6d8bf0bda
commit f36d527932
1 changed files with 9 additions and 12 deletions

21
tox.ini
View File

@ -4,22 +4,19 @@
# and then run "tox" from this directory.
[tox]
envlist = coverage, nocoverage, package
envlist = {coverage,},package
[testenv:coverage]
usedevelop = true
deps = pytest
pytest-cov
pytest-random
setenv =
coverage: COVERAGE=--junit-xml=junit.xml --cov=src --cov-report xml
deps =
coverage
pytest
pytest-cov
pytest-random
commands =
py.test --junit-xml=junit.xml --cov=src --cov-report xml {posargs} tests
[testenv:nocoverage]
deps = pytest
pytest-cov
pytest-random
commands =
py.test {posargs} tests
py.test {env:COVERAGE:} {posargs:--random tests}
[testenv:package]
# eobuilder is not on pypi, too bad