2020-02-18 10:24:53 -05:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'rust:latest'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Check') {
|
|
|
|
steps {
|
|
|
|
sh "cargo check"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Test') {
|
|
|
|
steps {
|
|
|
|
sh "cargo test"
|
|
|
|
}
|
|
|
|
}
|
2020-02-20 11:35:04 -05:00
|
|
|
stage('Coverage') {
|
|
|
|
steps {
|
|
|
|
sh "cargo install cargo-tarpaulin"
|
|
|
|
sh "make coverage"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
cobertura coberturaReportFile: '*/.xml'
|
|
|
|
}
|
2020-02-18 10:24:53 -05:00
|
|
|
}
|
|
|
|
}
|