1
0
Fork 0

Attempt to generate CI coverage
timw4mail/gilo/pipeline/head There was a failure building this commit Details

This commit is contained in:
Timothy Warren 2021-04-01 17:21:37 -04:00
parent 1a4f6809fb
commit c64b52ffe1
1 changed files with 13 additions and 1 deletions

14
Jenkinsfile vendored
View File

@ -25,8 +25,20 @@ pipeline {
stage('Test') {
steps {
sh "go test ./... -v"
sh "go test -coverprofile=cover.out ./... -v"
}
}
stage('Test Coverage') {
steps {
sh "go get github.com/t-yuki/gocover-cobertura"
sh "gocover-cobertura < cover.out > coverage.xml"
}
}
}
post {
always {
cobertura coberturaReportFile: 'coverage.xml'
}
}
}