summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Cazenave <ecazenave@entrouvert.com>2020-02-04 16:29:30 (GMT)
committerEmmanuel Cazenave <ecazenave@entrouvert.com>2020-02-04 17:35:08 (GMT)
commit4aa84aed420a81767d233a1d0b2d4ce74fa77b5a (patch)
treef7d9ba5e858a3aec3993557391c7e062ef7696c3
parentab0785164234306b6dfcc21b46542107564abce5 (diff)
downloadpasserelle-atreal-openads-3.zip
passerelle-atreal-openads-3.tar.gz
passerelle-atreal-openads-3.tar.bz2
run tests against python3 (#39533)v3
-rw-r--r--Jenkinsfile2
-rw-r--r--tox.ini11
2 files changed, 7 insertions, 6 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index eee39f9..661cdae 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -34,7 +34,7 @@ pipeline {
utils.publish_coverage_native('index.html')
utils.publish_pylint('pylint.out')
}
- junit '*_results.xml'
+ mergeJunitResults()
}
}
}
diff --git a/tox.ini b/tox.ini
index bc2217e..5db8361 100644
--- a/tox.ini
+++ b/tox.ini
@@ -16,7 +16,7 @@
; along with this program. If not, see <http://www.gnu.org/licenses/>.
[tox]
-envlist = py2-coverage-pylint
+envlist = py2-junit, py3-junit-coverage
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/passerelle-atreal-openads/{env:BRANCH_NAME:}
[testenv]
@@ -26,12 +26,13 @@ usedevelop =
setenv =
DJANGO_SETTINGS_MODULE=passerelle.settings
PASSERELLE_SETTINGS_FILE=tests/settings.py
- coverage: COVERAGE=--junitxml=test_results.xml --cov-report xml --cov-report html --cov=atreal_openads/
+ coverage: COVERAGE=--cov-report xml --cov-report html --cov=atreal_openads/
+ junit: JUNIT=--junitxml=junit-{envname}.xml
deps =
http://git.entrouvert.org/passerelle.git/snapshot/passerelle-master.tar.gz
pytest-cov
pytest-django
- pytest>=3.3.0,<4
+ pytest>=3.3.0
WebTest
mock
httmock
@@ -40,5 +41,5 @@ deps =
django-webtest<1.9.3
xmlschema<1.1
commands =
- py.test {env:COVERAGE:} {posargs:tests/}
- pylint: ./pylint.sh atreal_openads/
+ py.test {posargs: {env:COVERAGE:} {env:JUNIT:} tests/}
+ coverage: ./pylint.sh atreal_openads/