Add support for testing roles

Change-Id: I451c4851cf26e4cc08109683209aef01e2d187a8
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2020-05-01 11:27:18 -04:00
parent 081decef02
commit fdd90ed6cf
2 changed files with 49 additions and 2 deletions

View File

@ -1,8 +1,55 @@
---
- job:
name: ansible-role-boto3-base
parent: unittests
pre-run: tests/playbooks/pre.yaml
run: tests/playbooks/run.yaml
roles:
- zuul: windmill/ansible-role-boto3
# Testing for boto3_install_method: pip
- job:
name: ansible-role-boto3
parent: ansible-role-boto3-base
- job:
name: ansible-role-boto3-fedora-latest
parent: ansible-role-boto3
nodeset: fedora-latest
- job:
name: ansible-role-boto3-ubuntu-bionic
parent: ansible-role-boto3
nodeset: ubuntu-bionic
# Testing for boto3_install_method: git
- job:
name: ansible-role-boto3-src
parent: ansible-role-boto3-base
vars:
boto3_install_method: git
- job:
name: ansible-role-boto3-src-fedora-latest
parent: ansible-role-boto3-src
nodeset: fedora-latest
- job:
name: ansible-role-boto3-src-ubuntu-bionic
parent: ansible-role-boto3-src
nodeset: ubuntu-bionic
- project:
check:
jobs:
- ansible-role-boto3-fedora-latest
- ansible-role-boto3-ubuntu-bionic
- ansible-role-boto3-src-fedora-latest
- ansible-role-boto3-src-ubuntu-bionic
- tox-linters
gate:
jobs:
- ansible-role-boto3-fedora-latest
- ansible-role-boto3-ubuntu-bionic
- ansible-role-boto3-src-fedora-latest
- ansible-role-boto3-src-ubuntu-bionic
- tox-linters

View File

@ -6,4 +6,4 @@ libffi-devel [platform:rpm]
libffi-dev [platform:dpkg]
libssl-dev [platform:dpkg]
openssl-devel [platform:rpm]
python2-dnf [platform:fedora]
python3-dnf [platform:fedora]