tox.ini: simplify (#72941)

This commit is contained in:
Benjamin Dauvergne 2023-01-11 12:20:07 +01:00
parent d373c915e2
commit 7db34d6b26
1 changed files with 5 additions and 11 deletions

16
tox.ini
View File

@ -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/}