Files
Rack/Jenkinsfile
Cameron Cordes e80af99d18
Some checks are pending
Core Repos/Rack/pipeline/head This commit looks good
Core Repos/Rack/pipeline/pr-master Build started...
Fail on lint warnings
2020-06-17 14:08:53 -04:00

34 lines
528 B
Groovy

pipeline {
agent {
docker { image 'rust:1.44.0-alpine' }
}
stages {
stage('setup') {
steps {
sh 'rustup component add clippy'
}
}
stage('build') {
steps {
sh 'cargo build --release'
}
}
stage('lint') {
steps {
sh 'cargo clippy -- -D warnings'
}
}
stage('test') {
steps {
sh 'cargo test'
}
}
}
post {
always {
archiveArtifacts artifacts: 'target/release/rack', fingerprint: true
}
}
}