Attmpt to generate coverge
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
26f3decced
commit
5e17c5b931
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -25,14 +25,15 @@ pipeline {
|
||||
|
||||
stage('Test') {
|
||||
steps {
|
||||
sh "go test -coverprofile=cover.out ./... -v"
|
||||
sh "go test ./... -v"
|
||||
}
|
||||
}
|
||||
|
||||
stage('Test Coverage') {
|
||||
steps {
|
||||
sh "go get github.com/t-yuki/gocover-cobertura"
|
||||
sh "go run gocover-cobertura < cover.out > coverage.xml"
|
||||
sh "go get github.com/axw/gocov/..."
|
||||
sh "go get github.com/AlekSi/gocov-xml"
|
||||
sh "gocov test github.com/gorilla/mux | gocov-xml > coverage.xml"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user