Add test stage to Jenkinsfile

This commit is contained in:
Monica Del Rio 2021-11-30 14:46:00 -04:00
parent 971d6db14d
commit a57602918d

21
Jenkinsfile vendored
View file

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