Corrected commands to test python app
This commit is contained in:
parent
fb260a0f6d
commit
925af7d314
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -17,8 +17,9 @@ pipeline {
|
||||
dir('api') {
|
||||
sh '''
|
||||
python3 -m venv env
|
||||
env/bin/pip install -r requirements.txt pytest
|
||||
env/bin/pytest . --junit-xml=pytest_junit.xml
|
||||
source env/bin/activate
|
||||
pip install -r requirements.txt pytest
|
||||
python3 -m pytest --junit-xml=pytest_junit.xml
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user