rusty-numbers/Jenkinsfile

42 lines
828 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 '--privileged'
2020-02-20 17:13:46 -05:00
}
}
stages {
stage('Check') {
steps {
sh "cargo check"
}
}
stage('Test') {
steps {
sh "cargo test"
}
}
2020-04-16 14:07:12 -04:00
stage('Check no_std') {
steps {
sh "cargo check --no-default-features --features alloc"
}
}
stage('Test no_std') {
steps {
sh "cargo test --no-default-features --features alloc"
}
}
2020-02-20 17:13:46 -05:00
stage('Coverage') {
steps {
2020-03-05 16:24:33 -05:00
sh "cargo clean"
sh "cargo install cargo-tarpaulin"
2020-02-20 17:13:46 -05:00
sh "make generate-coverage"
}
}
}
post {
always {
cobertura coberturaReportFile: 'cobertura.xml'
}
}
}