mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
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'
|
|
}
|
|
}
|
|
}
|
|
}
|