tests added to pipeline
Some checks failed
esbo_ds/ESBO-ETC/pipeline/head There was a failure building this commit
Some checks failed
esbo_ds/ESBO-ETC/pipeline/head There was a failure building this commit
This commit is contained in:
parent
9bf7d23bcc
commit
7c97c819e8
21
Jenkinsfile
vendored
21
Jenkinsfile
vendored
@ -6,7 +6,26 @@ pipeline {
|
||||
SOURCE_DIR = 'source'
|
||||
}
|
||||
stages {
|
||||
stage('Build') {
|
||||
stage('Test') {
|
||||
agent {
|
||||
label 'lunjaserv'
|
||||
}
|
||||
steps {
|
||||
// Install dependencies
|
||||
sh '''
|
||||
virtualenv pyenv
|
||||
. pyenv/bin/activate
|
||||
pip3 install -r requirements.txt
|
||||
'''
|
||||
sh '''
|
||||
export PYTHONPATH=`pwd`
|
||||
cd tests
|
||||
../pyenv/bin/python3 -m unittest discover .
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build Docs') {
|
||||
agent {
|
||||
dockerfile {
|
||||
filename "Dockerfile"
|
||||
|
Loading…
Reference in New Issue
Block a user