Second Step

This commit is contained in:
DaWilliam 2018-03-04 00:08:08 -05:00 committed by GitHub
parent 14aba6cb17
commit 1dd3187a36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

23
Jenkinsfile vendored
View file

@ -1,14 +1,29 @@
pipeline {
agent none
agent none
stages {
stage('Build') {
stage('Build') {
agent {
docker {
image 'python:2-alpine'
image 'python:2-alpine'
}
}
steps {
sh 'python -m py_compile sources/add2vals.py sources/calc.py'
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'
}
}
}
}