Attempt to generate CI coverage
Some checks failed
timw4mail/gilo/pipeline/head There was a failure building this commit
Some checks failed
timw4mail/gilo/pipeline/head There was a failure building this commit
This commit is contained in:
parent
1a4f6809fb
commit
c64b52ffe1
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@ -25,8 +25,20 @@ pipeline {
|
|||||||
|
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
steps {
|
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'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user