From 7fae67c0af2a6219a109be39253f6b658bc9594e Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Wed, 13 Jun 2018 00:25:10 +0900 Subject: [PATCH] Add python3 django 1.11 job instead of django 2.0 job Django 2.0 is now used in tox py35 job, so there is no need for py35dj20 job. Instead, Django 1.11 with python3 is not covered. - py35dj20 job is dropped from tox.ini. - python3-django111 is added to tox.ini. python3 is specified to basepython to avoid a specific python version. - .zuul.yaml is updated to consume horizon-openstack-tox-python3-django111 and drop horizon-openstack-tox-py35dj20. Change-Id: I437d90d2e8d7395cd7b6ca39d3c23c886c0f02b7 --- .zuul.yaml | 8 ++------ tox.ini | 14 +++++++------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/.zuul.yaml b/.zuul.yaml index 24c288d..e45dfbe 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -1,9 +1,7 @@ - project: check: jobs: - - horizon-openstack-tox-py35dj20: - required-projects: - openstack/horizon + - horizon-openstack-tox-python3-django111 - nodejs-npm-run-lint: vars: node_version: 4 @@ -19,9 +17,7 @@ openstack/horizon gate: jobs: - - horizon-openstack-tox-py35dj20: - required-projects: - openstack/horizon + - horizon-openstack-tox-python3-django111 - nodejs-npm-run-lint: vars: node_version: 4 diff --git a/tox.ini b/tox.ini index 7b9c0f2..b32f182 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = pep8,py27-local,py35-local,py35dj20-local,eslint,karma-local,docs-local,releasenotes,lower-constraints-local +envlist = pep8,py27-local,py35-local,py3-dj111-local,eslint,karma-local,docs-local,releasenotes,lower-constraints-local minversion = 2.3.2 skipsdist = True @@ -61,17 +61,17 @@ commands = {[testenv:hz-local]commands} {[testenv]commands} -[testenv:py35dj20] -basepython = python3.5 +[testenv:py3-dj111] +basepython = python3 commands = - {[testenv:hz-local]commands} + pip install django>=1.11,<2 {[testenv]commands} -[testenv:py35dj20-local] -basepython = python3.5 +[testenv:py3-dj111-local] +basepython = python3 commands = {[testenv:hz-local]commands} - pip install -U django>=2.0,<2.1 + pip install django>=1.11,<2 {[testenv]commands} [testenv:eslint]