summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Dickinson <me@not.mn>2018-09-26 18:29:18 -0700
committerJohn Dickinson <me@not.mn>2018-09-27 13:28:05 -0700
commita6baf00e245275634175d827552ffde7d655ad4d (patch)
tree10bf010cfb86c9527de1df4addf109d3b17c9a97
parent2fca5dc390f8d7b4ed2320b2f3dd9e505c690e6a (diff)
downloadpython-swiftclient-a6baf00e245275634175d827552ffde7d655ad4d.tar.gz
py2 functional testing
Change-Id: I24ff8fb28969a0b074313bc9491b299afac3b49c
-rw-r--r--.zuul.yaml10
-rw-r--r--tox.ini6
2 files changed, 16 insertions, 0 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index 6c37f8c..9eb1752 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 ec7d344..ed8d772 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=