This commit is contained in:
jeanvisser 2018-05-22 12:03:49 +00:00 committed by GitHub
commit 8e3a4a34b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

30
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,30 @@
pipeline {
agent none
stages {
stage('Build') {
agent {
docker {
image 'python:2-alpine'
}
}
steps {
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'
}
}
}
}
}