feature/kjug
added test step
This commit is contained in:
parent
83a400beba
commit
d50c9cdc39
1 changed files with 16 additions and 0 deletions
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
|
@ -12,5 +12,21 @@ pipeline{
|
||||||
sh 'python -m py_compile sources/webapp.py'
|
sh 'python -m py_compile sources/webapp.py'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Tests') {
|
||||||
|
agent {
|
||||||
|
docker {
|
||||||
|
image 'qnib/pytest'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
sh 'pip install flask'
|
||||||
|
sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_webapp.py || true'
|
||||||
|
}
|
||||||
|
post {
|
||||||
|
always {
|
||||||
|
junit 'test-reports/results.xml'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue