Initial commit for zuulv3 support

Change-Id: Icf4a7437bcb31194227d2b48a90e00ef7dae97e7
Depends-On: I7683b6f715a1395aa0cee03b4191c180719cd177
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-10-21 16:10:43 -04:00
parent 6ffd2b691f
commit 6fea31eaaf
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
5 changed files with 47 additions and 15 deletions

40
.zuul.yaml Normal file
View File

@ -0,0 +1,40 @@
- job:
name: ansible-role-shade
run: tests/test
required-projects:
- name: openstack-infra/shade
roles:
- zuul: openstack/ansible-role-shade
- job:
name: ansible-role-shade-centos-7
parent: ansible-role-shade
nodeset: centos-7
- job:
name: ansible-role-shade-fedora-26
parent: ansible-role-shade
nodeset: fedora-26
- job:
name: ansible-role-shade-ubuntu-xenial
parent: ansible-role-shade
nodeset: ubuntu-xenial
- project:
name: openstack/ansible-role-shade
templates:
- windmill-jobs-fedora-26
- windmill-jobs-xenial
check:
jobs:
- ansible-role-shade-centos-7
- ansible-role-shade-fedora-26
- ansible-role-shade-ubuntu-xenial
- tox-linters
gate:
jobs:
- ansible-role-shade-centos-7
- ansible-role-shade-fedora-26
- ansible-role-shade-ubuntu-xenial
- tox-linters

View File

@ -1,2 +0,0 @@
[defaults]
roles_path = ../..

View File

@ -1,2 +1 @@
[all]
localhost ansible_connection=ssh
localhost

View File

@ -12,16 +12,11 @@
# License for the specific language governing permissions and limitations
# under the License.
---
- hosts: test
- hosts: all
vars:
rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}"
pre_tasks:
# Make sure OS does not have a stale package cache.
- name: Update apt cache.
become: yes
apt:
update_cache: yes
when: ansible_os_family == 'Debian'
shade_git_dest: "{{ ansible_user_dir }}/src/git.openstack.org/openstack-infra/shade"
shade_git_update: false
rolename: ansible-role-shade
roles:
- "{{ rolename }}"
@ -29,7 +24,7 @@
post_tasks:
- name: Register shade_git_dest_stat.
stat:
path: /opt/ansible-role-shade/git/openstack-infra/shade
path: /home/zuul/src/git.openstack.org/openstack-infra/shade
register: shade_git_dest_stat
- name: Assert shade_git_dest tests.

View File

@ -31,7 +31,7 @@ exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
[testenv:linters]
setenv =
ANSIBLE_CONFIG = tests/ansible.cfg
ANSIBLE_ROLES_PATH = ..
whitelist_externals = bash
commands =
# PEP8 Lint Check