Move zuul config to repo

Moves the zuul config for ospurge that now
is in project-config in to the repo.

Change-Id: I21d83eaa8575a4c59cd65c8527243f05662ec024
This commit is contained in:
Tobias Urdin 2018-09-08 13:34:36 +02:00
parent ebb02fde0a
commit 8b9262207e
4 changed files with 97 additions and 1 deletions

33
.zuul.yaml Normal file
View File

@ -0,0 +1,33 @@
- job:
name: ospurge-functional
parent: legacy-dsvm-base
run: playbooks/ospurge-functional/run.yaml
post-run: playbooks/ospurge-functional/post.yaml
timeout: 3600
required-projects:
- openstack-infra/devstack-gate
- openstack/ospurge
irrelevant-files: &dsvm-irrelevant-files
- ^(test-|)requirements.txt$
- ^.*\.rst$
- ^.git.*$
- ^\.testr.conf$
- ^LICENSE$
- ^doc/.*$
- ^releasenotes/.*$
- ^setup.cfg$
- ^tox.ini$
- project:
templates:
- openstack-python35-jobs
- openstack-cover-jobs
- build-openstack-docs-pti
check:
jobs:
- openstack-tox-pep8
- ospurge-functional
gate:
jobs:
- openstack-tox-pep8
- ospurge-functional

View File

@ -0,0 +1,15 @@
- hosts: primary
tasks:
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
synchronize:
src: '{{ ansible_user_dir }}/workspace/'
dest: '{{ zuul.executor.log_root }}'
mode: pull
copy_links: true
verify_host: true
rsync_opts:
- --include=/logs/**
- --include=*/
- --exclude=*
- --prune-empty-dirs

View File

@ -0,0 +1,48 @@
- hosts: all
tasks:
- name: Ensure legacy workspace directory
file:
path: '{{ ansible_user_dir }}/workspace'
state: directory
- shell:
cmd: |
set -e
set -x
cat > clonemap.yaml << EOF
clonemap:
- name: openstack-infra/devstack-gate
dest: devstack-gate
EOF
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
git://git.openstack.org \
openstack-infra/devstack-gate
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- shell:
cmd: |
set -e
set -x
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TEMPEST=0
export DEVSTACK_GATE_NEUTRON=1
export BRANCH_OVERRIDE=default
export PROJECTS="openstack/ospurge $PROJECTS"
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
function post_test_hook {
bash -xe $BASE/new/ospurge/tools/post_test_hook.sh
}
export -f post_test_hook
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'

View File

@ -3,7 +3,7 @@ coverage>=4.0 # Apache-2.0
doc8 # Apache-2.0
hacking>=0.12.0,<0.13 # Apache-2.0
openstackdocstheme>=1.5.0 # Apache-2.0
sphinx>=1.2.1,!=1.3b1,<1.4 # BSD
sphinx>=1.6.2 # BSD
testrepository>=0.0.18 # Apache-2.0/BSD
python-openstackclient>=3.16.1