1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00

Split build & test, add integration tests

This commit is contained in:
Dennis Kuhnert 2018-03-21 08:10:50 +01:00
parent b8c589da20
commit a432b059c6

22
Jenkinsfile vendored
View file

@ -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 {