add Jenkinsfile
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2020-05-09 13:15:19 +02:00
parent 34703b6eba
commit daaa040985
Signed by: kunsi
GPG key ID: 12E3D2136B818350

32
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,32 @@
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'
}
}
}
}