Third Part

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

23
Jenkinsfile vendored
View file

@ -11,18 +11,33 @@ pipeline {
sh 'python -m py_compile sources/add2vals.py sources/calc.py'
}
}
stage('Test') {
stage('Test') {
agent {
docker {
image 'qnib/pytest'
image 'qnib/pytest'
}
}
steps {
sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_calc.py'
sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_calc.py'
}
post {
always {
junit 'test-reports/results.xml'
junit 'test-reports/results.xml'
}
}
}
stage('Deliver') {
agent {
docker {
image 'cdrx/pyinstaller-linux:python2'
}
}
steps {
sh 'pyinstaller --onefile sources/add2vals.py'
}
post {
success {
archiveArtifacts 'dist/add2vals'
}
}
}