Add test stage to Jenkinsfile

這個提交存在於:
Monica Del Rio 2021-11-30 14:46:00 -04:00
父節點 971d6db14d
當前提交 a57602918d

21
Jenkinsfile vendored
查看文件

@ -12,6 +12,25 @@ pipeline {
stash(name: 'compiled-results', includes: 'sources/*.py*')
}
}
stage('Test') {
agent {
docker {
image 'qnib/pytest'
}
}
steps {
sh 'py.test --junit-xml test-reports/results.xml sources/test_calc.py'
}
post {
always {
junit 'test-reports/results.xml'
}
}
}
}
}