parallel py2/3

This commit is contained in:
Frédéric Péters 2018-04-25 21:11:28 +02:00
parent 1f745944e6
commit 8739f50522
2 changed files with 14 additions and 5 deletions

17
Jenkinsfile vendored
View File

@ -3,12 +3,21 @@
pipeline {
agent any
stages{
stage('unit test'){
steps{
sh 'tox -r -- --junitxml=test_results.xml --cov-report xml --cov=bidon/ tests/'
stage('Unit tests'){
parallel {
stage('Python 2') {
steps {
sh 'tox -r -e py2-django111 -- --junitxml=test_results.xml --cov-report xml --cov=bidon/ tests/'
}
}
stage('Python 3') {
steps {
sh 'tox -r -e py3-django111 -- --junitxml=test_results.xml --cov-report xml --cov=bidon/ tests/'
}
}
}
}
stage('packaging'){
stage('Packaging'){
steps{
script {
if (env.BRANCH_NAME == 'master') {

View File

@ -1,5 +1,5 @@
[tox]
envlist = py3-django111
envlist = {py2,py3}-django111
[testenv]
usedevelop = True