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