21 lines
538 B
INI
21 lines
538 B
INI
[tox]
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/bidon/{env:BRANCH_NAME:}
|
|
envlist = py2-django111-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 =
|
|
django111: django>=1.11,<1.12
|
|
psycopg2
|
|
pytest-cov
|
|
pytest-django
|
|
pytest
|
|
commands =
|
|
py.test {posargs: {env:COVERAGE:} {env:JUNIT:} tests/}
|