From d3b34063a19d7ecd598bafbcd0e60dd9a5f13136 Mon Sep 17 00:00:00 2001 From: openstack Date: Wed, 13 Feb 2019 08:51:20 +0000 Subject: [PATCH] Run all jobs by default using python3 This patch implements the community wide goal to run all jobs by default using python3. See the python3-first goal document for details: https://governance.openstack.org/tc/goals/stein/python3-first.html Change-Id: I4e62491ac9a9996cfd910e7d69897b92072bb1eb --- .zuul.yaml | 6 ++++-- tox.ini | 17 ++++++++++++++++- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.zuul.yaml b/.zuul.yaml index e3043f7..ddcff71 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -1,5 +1,7 @@ - project: templates: - - openstack-python-jobs - - openstack-python35-jobs-nonvoting - check-requirements + - openstack-python-jobs + - openstack-python35-jobs + - openstack-python36-jobs + - release-notes-jobs-python3 diff --git a/tox.ini b/tox.ini index 7c5b553..f379d09 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py35,py27,pep8 +envlist = pep8,py27,py35,py36 minversion = 2.0 skipsdist = True @@ -23,6 +23,21 @@ commands = python manage.py test {posargs} --settings=masakaridashboard.test.set basepython = python3 commands = flake8 {posargs} +[testenv:py27] +basepython = python2.7 +commands = + {[testenv]commands} + +[testenv:py35] +basepython = python3.5 +commands = + {[testenv]commands} + +[testenv:py36] +basepython = python3.6 +commands = + {[testenv]commands} + [testenv:venv] basepython = python3 commands = {posargs}