diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..5179147 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,22 @@ +pipeline { + agent none + stages { + stage('Test') { + agent { + docker { + image 'python:3.7' + } + } + steps { + sh "pip install pipenv" + sh "pipenv sync" + sh 'pipenv run pytest -p no:warnings --junit-xml test-reports/results.xml' + } + post { + always { + junit 'test-reports/results.xml' + } + } + } + } +}