Files
AlbertoPMDM 71764164e0 push test
2026-09-09 20:56:35 -06:00

37 lines
937 B
Groovy

pipeline {
agent any
options {
skipStagesAfterUnstable()
}
triggers {
githubPush() // comment
}
stages {
stage('Build') {
steps {
sh 'python3 -m py_compile sources/add2vals.py sources/calc.py'
stash(name: 'compiled-results', includes: 'sources/*.py*')
}
}
stage('Test') {
steps {
sh 'py.test --junit-xml test-reports/results.xml sources/test_calc.py'
}
post {
always {
junit 'test-reports/results.xml'
}
}
}
stage('Deliver') {
steps {
sh "python3 -m PyInstaller --onefile sources/add2vals.py"
}
post {
success {
archiveArtifacts 'dist/add2vals'
}
}
}
}
}