2019-02-14 01:09:18 +00:00
|
|
|
pipeline {
|
2019-03-21 23:38:45 +00:00
|
|
|
agent {
|
2019-02-14 01:09:18 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|
2019-03-21 23:38:45 +00:00
|
|
|
stages {
|
|
|
|
stage('Build') {
|
2019-02-14 01:09:18 +00:00
|
|
|
steps {
|
2019-03-21 23:38:45 +00:00
|
|
|
sh 'cargo build --verbose --all'
|
|
|
|
sh 'cargo build --verbose --all --release'
|
2019-02-14 01:09:18 +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
|
|
|
}
|
|
|
|
}
|
2019-03-21 23:38:45 +00:00
|
|
|
stage('Test') {
|
2019-02-14 01:09:18 +00:00
|
|
|
steps {
|
2019-03-21 23:38:45 +00:00
|
|
|
sh 'cargo test --verbose --all'
|
|
|
|
sh 'cargo test --verbose --all --release'
|
2019-02-14 01:09:18 +00:00
|
|
|
}
|
|
|
|
}
|
2019-03-21 23:38:45 +00:00
|
|
|
}
|
2019-02-14 01:09:18 +00:00
|
|
|
}
|