Import .zuul.yaml for testing

Move job configuration for zuul intree.

Change-Id: I8158fb6d219d6f8fde5e766adb76a3c7b8d4d5c2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-02-13 11:35:10 -05:00
parent 2aea7ee54c
commit 519057ecdf
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
2 changed files with 32 additions and 10 deletions

30
.zuul.yaml Normal file
View File

@ -0,0 +1,30 @@
- job:
name: ansible-role-logrotate
run: tests/test.yaml
roles:
- zuul: openstack/ansible-role-logrotate
- job:
name: ansible-role-logrotate-fedora-27
parent: ansible-role-logrotate
nodeset: fedora-27
- job:
name: ansible-role-logrotate-ubuntu-xenial
parent: ansible-role-logrotate
nodeset: ubuntu-xenial
- project:
templates:
- windmill-jobs-fedora-27
- windmill-jobs-xenial
check:
jobs:
- ansible-role-logrotate-fedora-27
- ansible-role-logrotate-ubuntu-xenial
- tox-linters
gate:
jobs:
- ansible-role-logrotate-fedora-27
- ansible-role-logrotate-ubuntu-xenial
- tox-linters

View File

@ -12,17 +12,9 @@
# License for the specific language governing permissions and limitations
# under the License.
---
- hosts: localhost
- 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'
rolename: ansible-role-logrotate
roles:
- "{{ rolename }}"