6bc977b9e6
Also added clippy into CI checks, but allowing warnings to pass for now.
27 lines
454 B
Groovy
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'
|
|
}
|
|
}
|
|
}
|
|
}
|