import zuul job settings from project-config

This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ide16ea00e3978f63e40b17f3e5173d34dc8f10b2
Story: #2002586
Task: #24294
This commit is contained in:
Nguyen Hai 2018-08-29 21:28:06 +09:00
parent 304120e6aa
commit 1bca953ac0
3 changed files with 54 additions and 31 deletions

49
.zuul.yaml Normal file
View File

@ -0,0 +1,49 @@
- project:
templates:
- openstack-python-jobs-neutron
- check-requirements
- publish-openstack-sphinx-docs
- openstack-python35-jobs-neutron
check:
jobs:
- build-openstack-sphinx-docs:
required-projects:
- openstack/networking-sfc
- openstack/neutron-dynamic-routing
- openstack-tox-pep8:
required-projects:
- openstack/networking-sfc
- openstack/neutron-dynamic-routing
- openstack-tox-py27:
required-projects:
- openstack/networking-sfc
- openstack/neutron-dynamic-routing
- openstack-tox-py35:
required-projects:
- openstack/networking-sfc
- openstack/neutron-dynamic-routing
gate:
jobs:
- build-openstack-sphinx-docs:
required-projects:
- openstack/networking-sfc
- openstack/neutron-dynamic-routing
- openstack-tox-pep8:
required-projects:
- openstack/networking-sfc
- openstack/neutron-dynamic-routing
- openstack-tox-py27:
required-projects:
- openstack/networking-sfc
- openstack/neutron-dynamic-routing
- openstack-tox-py35:
required-projects:
- openstack/networking-sfc
- openstack/neutron-dynamic-routing
post:
jobs:
- publish-openstack-python-branch-tarball:
required-projects:
- openstack/networking-sfc
- openstack/neutron-dynamic-routing

View File

@ -1,29 +0,0 @@
#!/usr/bin/env bash
# Many of neutron's repos suffer from the problem of depending on neutron,
# but it not existing on pypi.
# This wrapper for tox's package installer will use the existing package
# if it exists, else use zuul-cloner if that program exists, else grab it
# from neutron master via a hard-coded URL. That last case should only
# happen with devs running unit tests locally.
# From the tox.ini config page:
# install_command=ARGV
# default:
# pip install {opts} {packages}
set -ex
DIR=$(dirname $0)
${DIR}/tox_install_project.sh neutron neutron $*
${DIR}/tox_install_project.sh networking-sfc networking_sfc $*
CONSTRAINTS_FILE=$1
shift
install_cmd="pip install"
if [ $CONSTRAINTS_FILE != "unconstrained" ]; then
install_cmd="$install_cmd -c$CONSTRAINTS_FILE"
fi
$install_cmd -U $*
exit $?

View File

@ -10,9 +10,12 @@ setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
PYTHONWARNINGS=default::DeprecationWarning
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}
deps = -r{toxinidir}/requirements.txt
install_command = pip install {opts} {packages}
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/pike}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
https://tarballs.openstack.org/neutron/neutron-11.0.0.tar.gz#egg=neutron
https://tarballs.openstack.org/networking-sfc/networking-sfc-5.0.0.tar.gz#egg=networking-sfc
whitelist_externals = sh /bin/rm
commands = /bin/rm -f .testrepository/times.dbm
ostestr '{posargs}'