Projet

Général

Profil

0001-tox.ini-simplify-72941.patch

Benjamin Dauvergne, 11 janvier 2023 12:21

Télécharger (1,33 ko)

Voir les différences:

Subject: [PATCH 1/5] tox.ini: simplify (#72941)

 tox.ini | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)
tox.ini
5 5

  
6 6
[tox]
7 7
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/zoo/{env:BRANCH_NAME:}
8
envlist = py3-dj22-coverage
8
envlist = py3-dj22
9 9

  
10 10
[testenv]
11
# django.contrib.auth is not tested it does not work with our templates
12
whitelist_externals =
13
  /bin/mv
14 11
setenv =
15 12
  DJANGO_SETTINGS_MODULE=zoo.settings
16 13
  SETUPTOOLS_USE_DISTUTILS=stdlib
17
  coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=zoo/
18
  fast: FAST=--nomigrations
19
  flakes: FLAKES=--flakes
20
usedevelop =
21
  coverage: True
22
  nocoverage: False
14
  JUNIT={tty::--junitxml=junit-{envname}.xml}
15
  COVERAGE={tty::--cov-report xml --cov-report html --cov=zoo/}
16
usedevelop = true
23 17
deps =
24 18
  dj22: django<2.3
25 19
  djangorestframework>=3.9.2,<3.10
......
43 37
  faker
44 38
  pytest-freezegun
45 39
commands =
46
  py.test {env:FAST:} {env:COVERAGE:} {env:FLAKES:} {posargs:tests}
40
  py.test {posargs:{env:JUNIT:} {env:COVERAGE:} {env:FLAKES:} tests/}
47
-