json-parser/Jenkinsfile
Timothy Warren 6fa2f100b4
All checks were successful
timw4mail/json-parser/pipeline/head This commit looks good
Add code coverage to Jenkins
2020-02-20 13:08:13 -05:00

31 lines
512 B
Groovy

pipeline {
agent {
docker {
image 'rust:latest'
args '-u root --privileged'
}
}
stages {
stage('Check') {
steps {
sh "cargo check"
}
}
stage('Test') {
steps {
sh "cargo test"
}
}
stage('Coverage') {
steps {
sh "cargo install cargo-tarpaulin"
sh "make generate-coverage"
}
}
}
post {
always {
cobertura coberturaReportFile: 'cobertura.xml'
}
}
}