make a template
This commit is contained in:
父節點
71dd518228
當前提交
2ac8d34dd7
共有 1 個文件被更改,包括 5 次插入 和 5 次删除
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
|
@ -4,25 +4,25 @@ pipeline {
|
|||
stage('Build') {
|
||||
agent {
|
||||
docker {
|
||||
image 'python:2-alpine'
|
||||
image ''
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'python -m py_compile sources/add2vals.py sources/calc.py'
|
||||
sh ''
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
agent {
|
||||
docker {
|
||||
image 'qnib/pytest'
|
||||
image ''
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_calc.py'
|
||||
sh ''
|
||||
}
|
||||
post {
|
||||
always {
|
||||
junit 'test-reports/results.xml'
|
||||
junit ''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
載入中…
Reference in a new issue