summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2017-11-01 04:18:41 +0000
committerGerrit Code Review <review@openstack.org>2017-11-01 04:18:41 +0000
commit2c14b4b2ee2aa104b21c1517537eaf3897727b93 (patch)
tree56eef88063307a6e825915b1ac6f24a548c2be61
parenta51ac0a8894d677a326281bcb62d8f58fce348c1 (diff)
parent90230c3766ddf2a17d1aa9dacf74a6cfce1d81b6 (diff)
downloadpython-openstackclient-2c14b4b2ee2aa104b21c1517537eaf3897727b93.tar.gz
Merge "Zuul job updates"
-rw-r--r--.zuul.yaml40
-rw-r--r--tox.ini17
2 files changed, 51 insertions, 6 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index 66db2fce..9b22ace0 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -1,4 +1,24 @@
- job:
+ name: osc-tox-unit-tips
+ parent: openstack-tox
+ description: |
+ Run unit tests for OpenStackClient with master branch of important libs.
+
+ Uses tox with the ``unit-tips`` environment and master branch of
+ the required-projects below.
+ irrelevant-files:
+ - ^.*\.rst$
+ - ^doc/.*$
+ - ^releasenotes/.*$
+ required-projects:
+ - openstack/os-client-config
+ - openstack/osc-lib
+ - openstack/python-openstackclient
+ - openstack/python-openstacksdk
+ vars:
+ tox_envlist: unit-tips
+
+- job:
name: osc-functional-devstack-base
parent: devstack
description: |
@@ -11,6 +31,10 @@
roles:
- zuul: openstack-infra/devstack
timeout: 9000
+ irrelevant-files:
+ - ^.*\.rst$
+ - ^doc/.*$
+ - ^releasenotes/.*$
vars:
devstack_localrc:
SWIFT_HASH: '1234123412341234'
@@ -114,13 +138,17 @@
- openstackclient-plugin-jobs
check:
jobs:
+ - osc-tox-unit-tips:
+ # The functional-tips job only tests the latest and shouldn't be run
+ # on the stable branches
+ branches: ^(?!stable)
- osc-functional-devstack
- - osc-functional-devstack-n-net:
- voting: false
- # The job testing nova-network no longer works before Pike, and
- # should be disabled until the New Way of testing against old clouds
- # is ready and backported
- branches: ^(?!stable/(newton|ocata)).*$
+ # - osc-functional-devstack-n-net:
+ # voting: false
+ # # The job testing nova-network no longer works before Pike, and
+ # # should be disabled until the New Way of testing against old clouds
+ # # is ready and backported
+ # branches: ^(?!stable/(newton|ocata)).*$
- osc-functional-devstack-tips:
voting: false
# The functional-tips job only tests the latest and shouldn't be run
diff --git a/tox.ini b/tox.ini
index ca19862e..5a7850eb 100644
--- a/tox.ini
+++ b/tox.ini
@@ -53,6 +53,23 @@ commands =
commands =
bandit -r openstackclient -x tests -s B105,B106,B107,B401,B404,B603,B606,B607,B110,B605,B101
+[testenv:unit-tips]
+usedevelop = True
+install_command =
+ {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
+setenv = VIRTUAL_ENV={envdir}
+ OS_STDOUT_CAPTURE=1
+ OS_STDERR_CAPTURE=1
+ OS_TEST_TIMEOUT=60
+deps = -r{toxinidir}/test-requirements.txt
+commands =
+ pip install -q -U -e "git+file://{toxinidir}/../osc-lib#egg=osc_lib"
+ pip install -q -U -e "git+file://{toxinidir}/../os-client-config#egg=os_client_config"
+ pip install -q -U -e "git+file://{toxinidir}/../python-openstacksdk#egg=openstacksdk"
+ pip freeze
+ ostestr {posargs}
+whitelist_externals = ostestr
+
[testenv:functional]
setenv = OS_TEST_PATH=./openstackclient/tests/functional
passenv = OS_*