updated jenkinsfile for a parallel matrix build
ci-tests/python-test/pipeline/head There was a failure building this commit

This commit is contained in:
2021-02-02 12:24:04 +02:00
parent 9bf877f169
commit 9a1e350bbc
Vendored
+18 -4
View File
@@ -1,10 +1,24 @@
pipeline {
agent { docker { image 'python:3-alpine' } }
stages {
stage('test') {
steps {
agent none
matrix {
axes {
axis {
name 'PY_VERSION'
values '3.6-alpine', '3.7-alpine', '3.8-alpine', '3.9-alpine'
}
}
stages {
agent {
docker { image "python:$PY_VERSION"
args '-e DJANGO_SETTINGS_MODULE: "locallibrary.settings"'}
}
stage('build') {
sh 'python --version'
}
stage('test') {
sh 'pip3 install -r requirements.txt'
sh 'python -m pytest catalog/tests/'
}
}
}
}