Add test stage to Jenkinsfile
這個提交存在於:
父節點
971d6db14d
當前提交
a57602918d
共有 1 個檔案被更改,包括 20 行新增 和 1 行删除
21
Jenkinsfile
vendored
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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
載入中…
新增問題並參考