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'
|
|
|
|
args '-v cargo-cache:/cargocache:rw -e "CARGO_HOME=/cargocache"'
|
|
|
|
}
|
|
|
|
}
|
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-21 23:38:45 +00:00
|
|
|
stage('Test') {
|
|
|
|
steps {
|
|
|
|
sh 'cargo test --verbose --all'
|
|
|
|
sh 'cargo test --verbose --all --release'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-02-14 01:09:18 +00:00
|
|
|
}
|