bot-base/Jenkinsfile

23 lines
733 B
Plaintext
Raw Normal View History

2020-04-25 16:56:52 +02:00
pipeline {
agent none
stages {
stage('Test') {
agent {
docker {
2020-04-26 00:01:34 +02:00
image 'python:3.8'
2020-04-25 16:56:52 +02:00
}
}
steps {
2020-04-26 00:01:34 +02:00
sh "pip install --no-cache-dir -t python pipenv"
sh "PYTHONPATH=\$(pwd)/python PIPENV_VENV_IN_PROJECT=true python/bin/pipenv sync --sequential --dev"
sh "export PYTHONPATH=\$(pwd)/python && cd src && PIPENV_VENV_IN_PROJECT=true \${PYTHONPATH}/bin/pipenv run pytest -p no:warnings --junit-xml test-reports/results.xml"
2020-04-25 16:56:52 +02:00
}
post {
always {
2020-04-26 00:01:34 +02:00
junit 'src/test-reports/results.xml'
2020-04-25 16:56:52 +02:00
}
}
}
}
}