minimal tox.ini

This commit is contained in:
Emmanuel Cazenave 2018-04-24 19:05:45 +02:00
parent 834c958d8b
commit c4f98f8a61
2 changed files with 3 additions and 4 deletions

2
Jenkinsfile vendored
View File

@ -3,7 +3,7 @@ pipeline {
stages{
stage('unit test'){
steps{
sh 'tox -r'
sh 'tox -r -- --junitxml=test_results.xml --cov-report xml --cov=bidon/ tests/'
}
}
stage('packaging'){

View File

@ -1,12 +1,11 @@
[tox]
envlist = coverage-{django18,django111}-pylint
envlist = django18,django111
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/bidon/
[testenv]
usedevelop = True
setenv =
DJANGO_SETTINGS_MODULE=bidon.settings
coverage: COVERAGE=--junitxml=test_results.xml --cov-report xml --cov=bidon/
deps =
django18: django>=1.8,<1.9
django111: django>=1.11,<1.12
@ -14,4 +13,4 @@ deps =
pytest-django
pytest
commands =
py.test {env:COVERAGE:} {posargs:tests/}
py.test {posargs:tests/}