adding test stage

This commit is contained in:
Jonathan Ross Claytor 2019-01-30 14:55:34 -06:00 committed by GitHub
parent 1d6a2b7a7a
commit 2304da7da3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

17
Jenkinsfile vendored
View file

@ -11,5 +11,20 @@
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'
}
}
}
}
}
}