summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSorin Sbarnea <ssbarnea@redhat.com>2018-03-06 15:01:58 +0100
committerSorin Sbarnea <ssbarnea@redhat.com>2018-04-04 18:32:55 +0100
commit7fea75e6fb8a8d64db636ffd84479c2a162125cc (patch)
treea95abb39d1ce1dc49c265ac71bc1e9ef8b1de342
parentefc5fbe0fd0f4d91ee73bde22aeced756f0fc3c8 (diff)
downloadpython-jenkins-job-builder-7fea75e6fb8a8d64db636ffd84479c2a162125cc.tar.gz
python-jenkins-job-builder-7fea75e6fb8a8d64db636ffd84479c2a162125cc.tar.xz
python-jenkins-job-builder-7fea75e6fb8a8d64db636ffd84479c2a162125cc.zip
Enable cross testing with python-jenkins
This allows us to spot things that may be broken by changes made to dependencies. Adds zull job that tests tips of both projects. Adds 'tips' tox environment that can be used by developers to perform the same kind of testing locally. Change-Id: I35dbdf6acab1062109dc4b1f1474decd75932504 Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
-rw-r--r--.zuul.yaml14
-rw-r--r--tox.ini16
2 files changed, 28 insertions, 2 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
new file mode 100644
index 00000000..0a604cc9
--- /dev/null
+++ b/.zuul.yaml
@@ -0,0 +1,14 @@
+- job:
+ name: jjb-tox-cross-python-jenkins
+ description: Tests compatibility with master branch of python-jenkins
+ parent: tox-py27
+ required-projects:
+ - openstack/python-jenkins
+ - openstack-infra/jenkins-job-builder
+ voting: false
+ failure-message: WARNING
+
+- project:
+ check:
+ jobs:
+ - jjb-tox-cross-python-jenkins
diff --git a/tox.ini b/tox.ini
index e23a6aa3..e6fc39fe 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-minversion = 1.6
+minversion = 2.2
envlist = docs, pep8, py34, py35, py36, py27, cover
skip_missing_interpreters = true
@@ -21,7 +21,19 @@ commands =
- find . -type f -name "*.pyc" -delete
- find . -type d -name "__pycache__" -delete
python setup.py testr --slowest --testr-args='{posargs}'
-whitelist_externals = find
+whitelist_externals =
+ bash
+ find
+
+[testenv:tips]
+# tests what happens with unreleased version of dependencies, like python-jenkins
+install_command = pip install -U {opts} {packages}
+ignore_outcome = true
+commands =
+ bash -c "if [ -d {toxinidir}/../python-jenkins ]; then \
+ pip install -q -U -e 'git+file://{toxinidir}/../python-jenkins#egg=python-jenkins' ; else \
+ pip install -q -U -e 'git+https://git.openstack.org/openstack/python-jenkins@master#egg=python-jenkins' ; fi "
+ python setup.py testr --slowest --testr-args='{posargs}'
[testenv:cover]
commands =