Merge branch 'master' of https://github.com/xiaojias/simple-python-pyinstaller-app
This commit is contained in:
commit
6743c07bfd
1 changed files with 49 additions and 42 deletions
21
Jenkinsfile
vendored
21
Jenkinsfile
vendored
|
@ -6,6 +6,7 @@ pipeline {
|
|||
docker {
|
||||
image 'python:2-alpine'
|
||||
}
|
||||
|
||||
}
|
||||
steps {
|
||||
sh 'python -m py_compile sources/add2vals.py sources/calc.py'
|
||||
|
@ -16,14 +17,17 @@ pipeline {
|
|||
docker {
|
||||
image 'richardx/pytest'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_calc.py'
|
||||
|
||||
}
|
||||
post {
|
||||
always {
|
||||
junit 'test-reports/results.xml'
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
steps {
|
||||
sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_calc.py'
|
||||
}
|
||||
}
|
||||
stage('Deliver') {
|
||||
|
@ -31,14 +35,17 @@ pipeline {
|
|||
docker {
|
||||
image 'richardx/pyinstaller-linux:python2'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'pyinstaller --onefile sources/add2vals.py'
|
||||
|
||||
}
|
||||
post {
|
||||
success {
|
||||
archiveArtifacts 'dist/add2vals'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
steps {
|
||||
sh 'pyinstaller --onefile sources/add2vals.py'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue