tests added to pipeline
Some checks failed
esbo_ds/ESBO-ETC/pipeline/head There was a failure building this commit

This commit is contained in:
Lukas Klass 2020-07-21 15:18:34 +02:00
parent 9bf7d23bcc
commit 7c97c819e8

21
Jenkinsfile vendored
View File

@ -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"