Initial commit for zuulv3 support
Change-Id: Icf4a7437bcb31194227d2b48a90e00ef7dae97e7 Depends-On: I7683b6f715a1395aa0cee03b4191c180719cd177 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
6ffd2b691f
commit
6fea31eaaf
40
.zuul.yaml
Normal file
40
.zuul.yaml
Normal 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
|
@ -1,2 +0,0 @@
|
||||
[defaults]
|
||||
roles_path = ../..
|
@ -1,2 +1 @@
|
||||
[all]
|
||||
localhost ansible_connection=ssh
|
||||
localhost
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user