rusty-numbers/Jenkinsfile
Timothy Warren 3f6071d196
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
Add no_std support and testing
2020-04-16 14:07:12 -04:00

42 lines
828 B
Groovy

pipeline {
agent {
docker {
image 'rust:latest'
args '--privileged'
}
}
stages {
stage('Check') {
steps {
sh "cargo check"
}
}
stage('Test') {
steps {
sh "cargo test"
}
}
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"
}
}
stage('Coverage') {
steps {
sh "cargo clean"
sh "cargo install cargo-tarpaulin"
sh "make generate-coverage"
}
}
}
post {
always {
cobertura coberturaReportFile: 'cobertura.xml'
}
}
}