jenkinsfile: try publishing coverage as an html artifact

This commit is contained in:
Frédéric Péters 2018-04-25 22:56:59 +02:00
parent 61b4cb431a
commit d5bc502f9b
1 changed files with 2 additions and 1 deletions

3
Jenkinsfile vendored
View File

@ -7,7 +7,7 @@ pipeline {
parallel {
stage('Python 2') {
steps {
sh 'tox -r -e py2-django111 -- --junitxml=test_results.xml --cov-report xml --cov=bidon/ tests/'
sh 'tox -r -e py2-django111 -- --junitxml=test_results.xml --cov-report xml --cov-report html --cov=bidon/ tests/'
}
}
stage('Python 3') {
@ -31,6 +31,7 @@ pipeline {
post {
always {
junit 'test_results.xml'
archiveArtifacts '**/htmlcov'
script {
utils = new Utils()
utils.publish_cobertura_report('**/coverage.xml')