Add Jenkinsfile
Some checks failed
Gitsokyo/bot-base/pipeline/head There was a failure building this commit

This commit is contained in:
Suwako Moriya 2020-04-25 16:56:52 +02:00
parent 80e31703b8
commit 06a36fda67
Signed by: SuwakoMmh
GPG Key ID: A27482B806F13CD5

22
Jenkinsfile vendored Normal file
View File

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