bundlewrap/Jenkinsfile

33 lines
798 B
Plaintext
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
virtualenv -p python3 venv
. venv/bin/activate
pip install --upgrade pip
"""
sh """
. venv/bin/activate
pip install -r requirements.txt
"""
}
}
stage('bw_test') {
steps {
sh """
. venv/bin/activate
bw test --ignore-missing-faults
"""
}
}
stage('cleanup') {
steps {
sh 'rm -rf venv'
}
}
}
}