rusty-numbers/Jenkinsfile

31 lines
512 B
Plaintext
Raw Normal View History

2020-02-18 10:24:53 -05:00
pipeline {
agent {
docker {
image 'rust:latest'
2020-02-20 11:42:53 -05:00
args '-u root --privileged'
2020-02-18 10:24:53 -05:00
}
}
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 generate-coverage"
2020-02-20 11:35:04 -05:00
}
}
}
post {
always {
2020-02-20 12:05:10 -05:00
cobertura coberturaReportFile: 'cobertura.xml'
2020-02-20 11:35:04 -05:00
}
2020-02-18 10:24:53 -05:00
}
}