2020-02-18 10:24:53 -05:00
|
|
|
pipeline {
|
2020-02-20 17:13:46 -05:00
|
|
|
agent {
|
2020-02-21 08:34:50 -05:00
|
|
|
dockerfile {
|
2020-03-04 16:12:25 -05:00
|
|
|
image 'rust:latest'
|
2020-03-04 15:39:32 -05:00
|
|
|
args '--privileged'
|
2020-02-20 17:13:46 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Check') {
|
|
|
|
steps {
|
|
|
|
sh "cargo check"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Test') {
|
|
|
|
steps {
|
|
|
|
sh "cargo test"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Coverage') {
|
|
|
|
steps {
|
2020-03-04 16:12:25 -05:00
|
|
|
sh "cargo install cargo-tarpaulin"
|
2020-02-20 17:13:46 -05:00
|
|
|
sh "make generate-coverage"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
cobertura coberturaReportFile: 'cobertura.xml'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|