This commit is contained in:
parent
34703b6eba
commit
daaa040985
1 changed files with 32 additions and 0 deletions
32
Jenkinsfile
vendored
Normal file
32
Jenkinsfile
vendored
Normal 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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue