Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pipeline {
- agent { docker { image 'python:3.7.3-slim' } }
- stages {
- stage('build') {
- steps {
- sh 'pip install -r requirements.txt'
- }
- }
- stage('test') {
- steps {
- sh 'pytest --junitxml=report.xml --cov-config=.coveragerc --cov=./ --cov-report html:cov_html'
- }
- post {
- always {
- junit 'report.xml'
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement