bundlewrap/Jenkinsfile
Franzi 6118e6a530
All checks were successful
bundlewrap/pipeline/head This commit looks good
Jenkinsfile: use less steps
2021-02-17 13:14:21 +01:00

50 lines
1.3 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('config and metadata determinism') {
steps {
sh """
. venv/bin/activate
export BW_VAULT_DUMMY_MODE=1
bw test --metadata-determinism 3 --config-determinism 3
"""
}
}
stage('other tests') {
steps {
sh """
. venv/bin/activate
bw test --ignore-missing-faults
export BW_VAULT_DUMMY_MODE=1
bw test
"""
}
}
}
}
}
post {
always {
sh 'rm -rf venv'
}
}
}