adding virtual enviros
ci-tests/python-test/pipeline/head There was a failure building this commit

This commit is contained in:
2022-03-01 15:13:30 +02:00
parent 048d12cb98
commit b92fa8f03c
Vendored
+6 -3
View File
@@ -29,9 +29,12 @@ pipeline {
args '-e DJANGO_SETTINGS_MODULE="locallibrary.settings"'}
}
steps {
sh 'pip install -r requirements.txt'
sh 'python -m pytest catalog/tests/'
sh 'python -m xmlrunner discover -p *_test.py'
sh '''
cd /tmp/; virtualenv pitestenv; source ./pitestenv/bin/activate
pip install -r requirements.txt; cd -
python -m pytest catalog/tests/
python -m xmlrunner discover -p *_test.py
'''
}
}
}