added test phase to jenkinsfile
This commit is contained in:
parent
0cfa2f5e5e
commit
af1154d036
1 changed files with 16 additions and 0 deletions
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
|
@ -13,4 +13,20 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue