Add Jenkinsfile

This commit is contained in:
Samira Ouaaz 2021-11-17 00:08:16 -05:00
parent bfb0f7ff4d
commit 6135c6756d

13
Jenkinsfile vendored
View file

@ -7,8 +7,19 @@ pipeline {
image 'python:2-alpine' //3
}
}
stage('Test') {
agent {
docker {
image 'qnib/pytest'
}
}
steps {
sh 'python -m py_compile sources/add2vals.py sources/calc.py' //4
sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_calc.py'
}
post {
always {
junit 'test-reports/results.xml'
}
}
}
}