From 7a66fa22798d12057539d9af592a8b39fac795d2 Mon Sep 17 00:00:00 2001 From: "shikhar.s" Date: Fri, 30 Aug 2019 19:02:29 +0530 Subject: [PATCH] chage in unit test add dependency --- Jenkinsfile | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d1d6adc7..379ce05d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -184,21 +184,22 @@ pipeline { } } - // stage('Unit tests') { - // steps { - // sh ''' export PATH=${VIRTUAL_ENV}/bin:${PATH} - // pip install pytest - // pip install psutil - // python -m pytest --verbose --junit-xml results.xml - // ''' - // } - // post { - // always { - // // Archive unit tests for the future - // junit allowEmptyResults: true, testResults: 'results.xml' - // } - // } - // } + stage('Unit tests') { + steps { + sh ''' export PATH=${VIRTUAL_ENV}/bin:${PATH} + pip install pytest + pip install psutil + pip install python-prctl==1.5.0 + python -m pytest --verbose --junit-xml results.xml + ''' + } + post { + always { + // Archive unit tests for the future + junit allowEmptyResults: true, testResults: 'results.xml' + } + } + } // stage('Unit tests') { // steps { // sh ''' source activate ${BUILD_TAG}