json-parser/Jenkinsfile

31 lines
512 B
Plaintext
Raw Permalink Normal View History

2020-02-12 09:54:14 -05:00
pipeline {
agent {
docker {
image 'rust:latest'
2020-02-20 13:08:13 -05:00
args '-u root --privileged'
2020-02-12 09:54:14 -05:00
}
}
stages {
stage('Check') {
steps {
sh "cargo check"
}
2020-02-12 09:54:14 -05:00
}
stage('Test') {
steps {
sh "cargo test"
}
2020-02-12 09:54:14 -05:00
}
2020-02-20 13:08:13 -05:00
stage('Coverage') {
steps {
sh "cargo install cargo-tarpaulin"
sh "make generate-coverage"
}
}
}
post {
always {
cobertura coberturaReportFile: 'cobertura.xml'
}
2020-02-12 09:54:14 -05:00
}
}