Jenkinsfile: use less steps
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-02-17 13:08:59 +01:00
parent 3517facfc0
commit 6118e6a530
Signed by: kunsi
GPG key ID: 12E3D2136B818350

31
Jenkinsfile vendored
View file

@ -5,8 +5,10 @@ pipeline {
steps {
sh """
[ -d venv ] && rm -rf venv
virtualenv -p python3 venv
. venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
"""
@ -14,47 +16,28 @@ pipeline {
}
stage('bw test') {
parallel {
stage('determinism') {
stage('config and metadata determinism') {
steps {
sh """
. venv/bin/activate
export BW_VAULT_DUMMY_MODE=1
bw test --metadata-determinism 3 --config-determinism 3
"""
}
}
stage('ignore missing vaults') {
stage('other tests') {
steps {
sh """
. venv/bin/activate
bw test --ignore-missing-faults
"""
}
}
stage('dummy mode') {
when {
branch 'main'
}
steps {
sh """
. venv/bin/activate
export BW_VAULT_DUMMY_MODE=1
bw test
"""
}
}
stage('reactor.provides') {
when {
branch 'main'
}
steps {
sh """
. venv/bin/activate
export BW_VAULT_DUMMY_MODE=1
bw test -p
"""
}
}
}
}
}