added test phase to jenkinsfile

This commit is contained in:
Naim Salameh 2020-04-17 11:02:19 +03:00
parent 0cfa2f5e5e
commit af1154d036

16
Jenkinsfile vendored
View file

@ -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'
}
}
}
}