Add Jenkinsfile
This commit is contained in:
parent
bfb0f7ff4d
commit
6135c6756d
1 changed files with 12 additions and 1 deletions
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
|
@ -7,8 +7,19 @@ pipeline {
|
|||
image 'python:2-alpine' //3
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
agent {
|
||||
docker {
|
||||
image 'qnib/pytest'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'python -m py_compile sources/add2vals.py sources/calc.py' //4
|
||||
sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_calc.py'
|
||||
}
|
||||
post {
|
||||
always {
|
||||
junit 'test-reports/results.xml'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue