chage in unit test add dependency

This commit is contained in:
shikhar.s 2019-08-30 19:02:29 +05:30
parent c7a4876e06
commit 7a66fa2279
1 changed files with 16 additions and 15 deletions

31
Jenkinsfile vendored
View File

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