Add 'Test' stage
This commit is contained in:
父節點
0bd8abbd8a
當前提交
0942794d9e
共有 1 個文件被更改,包括 15 次插入 和 0 次删除
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
|
|
@ -11,5 +11,20 @@ pipeline {
|
|||
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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
載入中…
Reference in a new issue