rusty-numbers/Jenkinsfile

31 lines
542 B
Plaintext
Raw Normal View History

2020-02-18 10:24:53 -05:00
pipeline {
2020-02-20 17:13:46 -05:00
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'
}
}
}