21 lines
538 B
INI
21 lines
538 B
INI
[tox]
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/bidon/{env:BRANCH_NAME:}
|
|
envlist = py3-django22-coverage-junit
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv =
|
|
DJANGO_SETTINGS_MODULE=bidon.settings
|
|
BIDON_SETTINGS_FILE=tests/settings.py
|
|
BRANCH_NAME={env:BRANCH_NAME:}
|
|
coverage: COVERAGE=--cov-report xml --cov-report html --cov=bidon/
|
|
junit: JUNIT=--junitxml=junit-{envname}.xml
|
|
deps =
|
|
django22: django>=2.2,<2.3
|
|
psycopg2<2.9
|
|
pytest-cov
|
|
pytest-django
|
|
pytest
|
|
commands =
|
|
py.test {posargs: {env:COVERAGE:} {env:JUNIT:} tests/}
|