lighthouse/Jenkinsfile
Luke Anderson 6bc977b9e6
Moved rustfmt commands after build, so that it passes.
Also added clippy into CI checks, but allowing warnings to pass for now.
2019-03-12 22:26:01 +11:00

27 lines
454 B
Groovy

pipeline {
agent {
dockerfile {
filename 'Dockerfile'
args '-v cargo-cache:/cargocache:rw'
}
}
stages {
stage('Build') {
steps {
sh 'cargo build'
}
}
stage('Check') {
steps {
sh 'cargo fmt --all -- --check'
sh 'cargo clippy'
}
}
stage('Test') {
steps {
sh 'cargo test --all'
}
}
}
}