add deliver

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

47
Jenkinsfile vendored
View file

@ -1,4 +1,4 @@
pipeline {
pipeline {
agent none
stages {
stage('Build') {
@ -11,20 +11,35 @@
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'
}
}
}
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'
}
}
}
stage('Deliver') {
agent {
docker {
image 'cdrx/pyinstaller-linux:python2'
}
}
steps {
sh 'pyinstaller --onefile sources/add2vals.py'
}
post {
success {
archiveArtifacts 'dist/add2vals'
}
}
}
}
}