jenkins: publish consolidated junit file (#38296)
This commit is contained in:
parent
e80f55d694
commit
fa926506f8
|
@ -4,9 +4,9 @@ pipeline {
|
|||
agent any
|
||||
options { disableConcurrentBuilds() }
|
||||
stages {
|
||||
stage('Unit Tests (Python 2)') {
|
||||
stage('Unit Tests') {
|
||||
steps {
|
||||
sh 'tox -r -e py2-pylint-coverage'
|
||||
sh 'tox -rv'
|
||||
}
|
||||
post {
|
||||
always {
|
||||
|
@ -16,15 +16,10 @@ pipeline {
|
|||
utils.publish_coverage_native('index.html')
|
||||
utils.publish_pylint('pylint.out')
|
||||
}
|
||||
junit '*_results.xml'
|
||||
mergeJunitResults()
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Unit Tests (Python 3)') {
|
||||
steps {
|
||||
sh 'tox -r -e py3'
|
||||
}
|
||||
}
|
||||
stage('Packaging') {
|
||||
steps {
|
||||
script {
|
||||
|
|
4
tox.ini
4
tox.ini
|
@ -12,7 +12,7 @@ setenv =
|
|||
LC_ALL=C
|
||||
LC_TIME=C
|
||||
LANG=C
|
||||
coverage: COVERAGE=--junitxml=test_results.xml --cov-report xml --cov-report html --cov=wcs/ --cov-config .coveragerc -v
|
||||
coverage: COVERAGE=--cov-report xml --cov-report html --cov=wcs/ --cov-config .coveragerc -v
|
||||
passenv =
|
||||
USER
|
||||
deps =
|
||||
|
@ -39,5 +39,5 @@ deps =
|
|||
pylint<1.8
|
||||
py3: Quixote>=3.0
|
||||
commands =
|
||||
py.test -v {env:COVERAGE:} {posargs:tests/}
|
||||
py.test -v {env:COVERAGE:} --junitxml=junit-{envname}.xml {posargs:tests/}
|
||||
pylint: ./pylint.sh wcs/
|
||||
|
|
Loading…
Reference in New Issue