tox.ini: simplify (#72941)
This commit is contained in:
parent
d373c915e2
commit
7db34d6b26
16
tox.ini
16
tox.ini
|
@ -5,21 +5,15 @@
|
||||||
|
|
||||||
[tox]
|
[tox]
|
||||||
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/zoo/{env:BRANCH_NAME:}
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/zoo/{env:BRANCH_NAME:}
|
||||||
envlist = py3-dj22-coverage
|
envlist = py3-dj22
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
# django.contrib.auth is not tested it does not work with our templates
|
|
||||||
whitelist_externals =
|
|
||||||
/bin/mv
|
|
||||||
setenv =
|
setenv =
|
||||||
DJANGO_SETTINGS_MODULE=zoo.settings
|
DJANGO_SETTINGS_MODULE=zoo.settings
|
||||||
SETUPTOOLS_USE_DISTUTILS=stdlib
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
||||||
coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=zoo/
|
JUNIT={tty::--junitxml=junit-{envname}.xml}
|
||||||
fast: FAST=--nomigrations
|
COVERAGE={tty::--cov-report xml --cov-report html --cov=zoo/}
|
||||||
flakes: FLAKES=--flakes
|
usedevelop = true
|
||||||
usedevelop =
|
|
||||||
coverage: True
|
|
||||||
nocoverage: False
|
|
||||||
deps =
|
deps =
|
||||||
dj22: django<2.3
|
dj22: django<2.3
|
||||||
djangorestframework>=3.9.2,<3.10
|
djangorestframework>=3.9.2,<3.10
|
||||||
|
@ -43,4 +37,4 @@ deps =
|
||||||
faker
|
faker
|
||||||
pytest-freezegun
|
pytest-freezegun
|
||||||
commands =
|
commands =
|
||||||
py.test {env:FAST:} {env:COVERAGE:} {env:FLAKES:} {posargs:tests}
|
py.test {posargs:{env:JUNIT:} {env:COVERAGE:} {env:FLAKES:} tests/}
|
||||||
|
|
Loading…
Reference in New Issue