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 { pipeline {
agent { agent {
dockerfile { dockerfile {
filename 'Dockerfile' filename 'Dockerfile'
args '-v cargo-cache:/cargocache:rw -e "CARGO_HOME=/cargocache"' args '-v cargo-cache:/cargocache:rw -e "CARGO_HOME=/cargocache"'
} }
} }
stages { stages {
stage('Build') { stage('Build') {
steps {
sh 'cargo build'
}
}
stage('Test') {
steps { 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'
}
}
}
} }