Franziska Kunsmann
3517facfc0
All checks were successful
bundlewrap/pipeline/head This commit looks good
66 lines
1.9 KiB
Groovy
66 lines
1.9 KiB
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('install_requirements') {
|
|
steps {
|
|
sh """
|
|
[ -d venv ] && rm -rf venv
|
|
virtualenv -p python3 venv
|
|
. venv/bin/activate
|
|
pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
"""
|
|
}
|
|
}
|
|
stage('bw test') {
|
|
parallel {
|
|
stage('determinism') {
|
|
steps {
|
|
sh """
|
|
. venv/bin/activate
|
|
export BW_VAULT_DUMMY_MODE=1
|
|
bw test --metadata-determinism 3 --config-determinism 3
|
|
"""
|
|
}
|
|
}
|
|
stage('ignore missing vaults') {
|
|
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
|
|
"""
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
always {
|
|
sh 'rm -rf venv'
|
|
}
|
|
}
|
|
}
|