From 7db34d6b26047eb36774d33570c7e72c814d9444 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 11 Jan 2023 12:20:07 +0100 Subject: [PATCH] tox.ini: simplify (#72941) --- tox.ini | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/tox.ini b/tox.ini index a65fd48..ee70fe9 100644 --- a/tox.ini +++ b/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/}