Split build & test, add integration tests
This commit is contained in:
parent
b8c589da20
commit
a432b059c6
1 changed files with 20 additions and 2 deletions
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
|
@ -3,18 +3,36 @@
|
|||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Build & Test') {
|
||||
stage('Build') {
|
||||
steps {
|
||||
withDockerContainer('kyroy/zokrates-test') {
|
||||
sh 'RUSTFLAGS="-D warnings" cargo build'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Test') {
|
||||
steps {
|
||||
withDockerContainer('kyroy/zokrates-test') {
|
||||
sh 'RUSTFLAGS="-D warnings" cargo test'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Integration Test') {
|
||||
when {
|
||||
expression { env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'develop' }
|
||||
}
|
||||
steps {
|
||||
withDockerContainer('kyroy/zokrates-test') {
|
||||
sh 'RUSTFLAGS="-D warnings" cargo test -- --ignored'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Docker Build & Push') {
|
||||
when {
|
||||
environment name: 'BRANCH_NAME', value: 'master'
|
||||
expression { env.BRANCH_NAME == 'master' }
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
|
|
Loading…
Reference in a new issue