Merge "Enable cross testing with python-jenkins"
This commit is contained in:
commit
3b120c3bab
14
.zuul.yaml
Normal file
14
.zuul.yaml
Normal file
@ -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
|
16
tox.ini
16
tox.ini
@ -1,5 +1,5 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 1.6
|
minversion = 2.2
|
||||||
envlist = docs, pep8, py34, py35, py36, py27, cover
|
envlist = docs, pep8, py34, py35, py36, py27, cover
|
||||||
skip_missing_interpreters = true
|
skip_missing_interpreters = true
|
||||||
|
|
||||||
@ -21,7 +21,19 @@ commands =
|
|||||||
- find . -type f -name "*.pyc" -delete
|
- find . -type f -name "*.pyc" -delete
|
||||||
- find . -type d -name "__pycache__" -delete
|
- find . -type d -name "__pycache__" -delete
|
||||||
python setup.py testr --slowest --testr-args='{posargs}'
|
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]
|
[testenv:cover]
|
||||||
commands =
|
commands =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user