Added the release and debug build/tests to Jenkins, as well as Travis.

This commit is contained in:
Luke Anderson 2019-03-22 10:38:45 +11:00
parent 7cbee46227
commit 13872dfbb9
No known key found for this signature in database
GPG Key ID: 44408169EC61E228

22
Jenkinsfile vendored
View File

@ -1,20 +1,22 @@
pipeline {
agent {
agent {
dockerfile {
filename 'Dockerfile'
args '-v cargo-cache:/cargocache:rw -e "CARGO_HOME=/cargocache"'
}
}
stages {
stage('Build') {
steps {
sh 'cargo build'
}
}
stage('Test') {
stages {
stage('Build') {
steps {
sh 'cargo test --all'
sh 'cargo build --verbose --all'
sh 'cargo build --verbose --all --release'
}
}
}
stage('Test') {
steps {
sh 'cargo test --verbose --all'
sh 'cargo test --verbose --all --release'
}
}
}
}