bundlewrap/Jenkinsfile

50 lines
1.3 KiB
Text
Raw Normal View History

2020-05-09 11:15:19 +00:00
pipeline {
agent any
stages {
stage('install_requirements') {
steps {
sh """
[ -d venv ] && rm -rf venv
2021-02-17 12:08:59 +00:00
2020-05-09 11:15:19 +00:00
virtualenv -p python3 venv
. venv/bin/activate
2021-02-17 12:08:59 +00:00
2020-05-09 11:15:19 +00:00
pip install --upgrade pip
pip install -r requirements.txt
"""
}
}
2020-05-16 08:14:40 +00:00
stage('bw test') {
parallel {
2021-02-17 12:08:59 +00:00
stage('config and metadata determinism') {
steps {
sh """
. venv/bin/activate
2021-02-17 12:08:59 +00:00
export BW_VAULT_DUMMY_MODE=1
bw test --metadata-determinism 3 --config-determinism 3
"""
}
}
2021-02-17 12:08:59 +00:00
stage('other tests') {
2020-05-16 08:14:40 +00:00
steps {
sh """
. venv/bin/activate
2021-02-17 12:08:59 +00:00
2020-05-16 08:14:40 +00:00
bw test --ignore-missing-faults
2021-02-17 12:08:59 +00:00
2020-05-16 08:14:40 +00:00
export BW_VAULT_DUMMY_MODE=1
bw test
"""
}
}
2020-05-09 11:15:19 +00:00
}
}
2020-05-17 17:15:43 +00:00
}
post {
always {
sh 'rm -rf venv'
2020-05-09 11:15:19 +00:00
}
}
}