Add Test Stage

This commit is contained in:
Samir Si-Mohammed 2019-12-28 16:29:02 +01:00
parent c7afd3f28c
commit d9f76257a3

15
Jenkinsfile vendored
View file

@ -11,5 +11,20 @@ pipeline {
sh 'python -m py_compile sources/add2vals.py sources/calc.py'
}
}
stage('Test') {
agent {
docker {
image 'qnib/pytest'
}
}
steps {
sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_calc.py'
}
post {
always {
junit 'test-reports/results.xml'
}
}
}
}
}