Test Stage

This commit is contained in:
Zaman 2020-03-02 18:46:22 +05:00
parent 0df668c39e
commit 97323c5b23

15
Jenkinsfile vendored
View file

@ -11,5 +11,20 @@ pipeline {
sh 'python -m py_compile sources/add2vals.py sources/calc.py' 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'
}
}
}
} }
} }