Try to fix jenkinsfile inside stages
ci-tests/python-test/pipeline/head There was a failure building this commit
ci-tests/python-test/pipeline/head There was a failure building this commit
This commit is contained in:
Vendored
+21
-19
@@ -4,26 +4,28 @@ pipeline {
|
||||
parallelsAlwaysFailFast()
|
||||
}
|
||||
stages {
|
||||
matrix {
|
||||
agent none
|
||||
axes {
|
||||
axis {
|
||||
name 'PY_VERSION'
|
||||
values '3.6-alpine', '3.7-alpine', '3.8-alpine', '3.9-alpine'
|
||||
stage('BuildAndTest') {
|
||||
matrix {
|
||||
agent none
|
||||
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/'
|
||||
sh 'python -m xmlrunner discover -p *_test.py'
|
||||
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/'
|
||||
sh 'python -m xmlrunner discover -p *_test.py'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user