diff options
author | Iury Gregory Melo Ferreira <imelofer@redhat.com> | 2019-03-11 15:36:35 +0100 |
---|---|---|
committer | Iury Gregory Melo Ferreira <imelofer@redhat.com> | 2019-03-15 17:43:19 +0100 |
commit | 9b881cb973bc2219df90c2b71e2a1d0e18dcd98a (patch) | |
tree | b791399aaeedafab83be3bdeda8800af63b04eba /zuul.d | |
parent | 66392a90df2d61adf780f3a95a7da37d639d227c (diff) | |
download | python-ironicclient-9b881cb973bc2219df90c2b71e2a1d0e18dcd98a.tar.gz |
Run jobs under python2 and python3
-Switch functional job to run under python3
-Create a functional job to run under python2
-Create a tempest job to run under python2
-Create tox env to run functional tests under python3
-Validate if `USE_PYTHON3` is set to `True` to call
the correct env for tests
-Remove hardcoded path for client when running functional tests
- Update tests failures to work for python2 and python3
Change-Id: I55abc999f6f397b171d05fd9e9b39d833ca95e55
Diffstat (limited to 'zuul.d')
-rw-r--r-- | zuul.d/ironicclient-jobs.yaml | 19 | ||||
-rw-r--r-- | zuul.d/project.yaml | 4 |
2 files changed, 21 insertions, 2 deletions
diff --git a/zuul.d/ironicclient-jobs.yaml b/zuul.d/ironicclient-jobs.yaml index 12e6ced..8a98384 100644 --- a/zuul.d/ironicclient-jobs.yaml +++ b/zuul.d/ironicclient-jobs.yaml @@ -20,11 +20,11 @@ vars: tox_environment: PYTHONUNBUFFERED: 'true' - tox_envlist: functional + tox_envlist: functionalpy3 devstack_plugins: ironic: git://git.openstack.org/openstack/ironic devstack_localrc: - USE_PYTHON3: False + USE_PYTHON3: True EBTABLES_RACE_FIX: True IRONIC_ENABLED_NETWORK_INTERFACES: noop IRONIC_DHCP_PROVIDER: none @@ -35,6 +35,14 @@ mysql: True rabbit: True +- job: + name: ironicclient-functional-python2 + parent: ironicclient-functional + post-run: playbooks/functional/run.yaml + vars: + tox_envlist: functional + devstack_localrc: + USE_PYTHON3: False - job: name: ironicclient-tempest @@ -46,3 +54,10 @@ devstack_localrc: USE_PYTHON3: True EBTABLES_RACE_FIX: True + +- job: + name: ironicclient-tempest-python2 + parent: ironicclient-tempest + vars: + devstack_localrc: + USE_PYTHON3: False diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml index f5a5f52..0d54bbe 100644 --- a/zuul.d/project.yaml +++ b/zuul.d/project.yaml @@ -13,9 +13,13 @@ check: jobs: - ironicclient-functional + - ironicclient-functional-python2 - ironicclient-tempest + - ironicclient-tempest-python2 gate: queue: ironic jobs: - ironicclient-functional + - ironicclient-functional-python2 - ironicclient-tempest + - ironicclient-tempest-python2 |