2019-02-14 01:09:18 +00:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
filename 'Dockerfile'
|
2019-03-25 05:13:46 +00:00
|
|
|
args '-v cargo-cache:/cargocache:rw -e "CARGO_HOME=/cargocache"'
|
2019-02-14 01:09:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stages {
|
2019-03-12 11:26:01 +00:00
|
|
|
stage('Build') {
|
2019-03-12 08:45:58 +00:00
|
|
|
steps {
|
2019-03-12 11:26:01 +00:00
|
|
|
sh 'cargo build'
|
2019-03-12 08:45:58 +00:00
|
|
|
}
|
|
|
|
}
|
2019-03-12 11:26:01 +00:00
|
|
|
stage('Check') {
|
2019-02-14 01:09:18 +00:00
|
|
|
steps {
|
2019-03-12 11:26:01 +00:00
|
|
|
sh 'cargo fmt --all -- --check'
|
2019-03-21 05:08:14 +00:00
|
|
|
// No clippy until later...
|
|
|
|
//sh 'cargo clippy'
|
2019-02-14 01:09:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Test') {
|
|
|
|
steps {
|
|
|
|
sh 'cargo test --all'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|