From a6baf00e245275634175d827552ffde7d655ad4d Mon Sep 17 00:00:00 2001 From: John Dickinson Date: Wed, 26 Sep 2018 18:29:18 -0700 Subject: [PATCH] py2 functional testing Change-Id: I24ff8fb28969a0b074313bc9491b299afac3b49c --- .zuul.yaml | 10 ++++++++++ tox.ini | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/.zuul.yaml b/.zuul.yaml index 6c37f8c1..9eb1752f 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -24,6 +24,14 @@ # Override value from parent job to use swiftclient tests zuul_work_dir: "{{ zuul.projects['git.openstack.org/openstack/python-swiftclient'].src_dir }}" +- job: + name: swiftclient-functional-py2 + parent: swiftclient-functional + description: | + Run functional tests of python-swiftclient under Python 2 + vars: + tox_envlist: py2func + - project: templates: - openstack-python-jobs @@ -38,11 +46,13 @@ jobs: - swiftclient-swift-functional - swiftclient-functional + - swiftclient-functional-py2 - openstack-tox-lower-constraints gate: jobs: - swiftclient-swift-functional - swiftclient-functional + - swiftclient-functional-py2 - openstack-tox-lower-constraints post: jobs: diff --git a/tox.ini b/tox.ini index ec7d3442..ed8d772e 100644 --- a/tox.ini +++ b/tox.ini @@ -46,6 +46,12 @@ commands = coverage report -m rm -f .coverage +[testenv:py2func] +basepython=python2 +setenv = {[testenv:func]setenv} +whitelist_externals = {[testenv:func]whitelist_externals} +commands = {[testenv:func]commands} + [testenv:docs] basepython = python3 commands=