Add Jenkinsfile
Some checks failed
Gitsokyo/bot-base/pipeline/head There was a failure building this commit
Some checks failed
Gitsokyo/bot-base/pipeline/head There was a failure building this commit
This commit is contained in:
parent
80e31703b8
commit
06a36fda67
22
Jenkinsfile
vendored
Normal file
22
Jenkinsfile
vendored
Normal 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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user