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') {
|
dir('api') {
|
||||||
sh '''
|
sh '''
|
||||||
python3 -m venv env
|
python3 -m venv env
|
||||||
env/bin/pip install -r requirements.txt pytest
|
source env/bin/activate
|
||||||
env/bin/pytest . --junit-xml=pytest_junit.xml
|
pip install -r requirements.txt pytest
|
||||||
|
python3 -m pytest --junit-xml=pytest_junit.xml
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user