From 7c97c819e81ca2172bc5bc740cc1b4ddbad829d7 Mon Sep 17 00:00:00 2001 From: LukasK13 Date: Tue, 21 Jul 2020 15:18:34 +0200 Subject: [PATCH] tests added to pipeline --- Jenkinsfile | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3f1b524..d68d4a9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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"