tripleo-ansible/zuul.d/molecule.yaml
Kevin Carter 7c23a01bd7
Enforce testing consistency
The upstream OpenStack gate installs docker using the "install-docker"
from within the zuul-jobs repository. To ensure we're able to test role
consistently this change removes our internal docker install tasks
and simply uses the role as provided by zuul.

All of the requirements we were installing for molecule via built in
tox configuration  have all been moved to the unmanaged requirements
file, "molecule-requirements.txt". This file will ensure anything we
install in a virtual-environment is consistent throughout our stack.

The `run-local-test` script has been added to the scripts directory
allowing local development to be setup and executed with minimal,
to no, pre-configuration or setup. This script and its usage has
been documented in the contributing guide.

Change-Id: If7d1ba7e59a1d6918d9606c9df8bfad21c0c47da
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2019-07-01 19:48:38 -05:00

142 lines
4.9 KiB
YAML

---
- project-template:
check:
jobs:
- tripleo-ansible-centos-7-molecule-aide
- tripleo-ansible-centos-7-molecule-test_deps
- tripleo-ansible-centos-7-molecule-test_json_error_callback
- tripleo-ansible-centos-7-molecule-test_package_action
- tripleo-ansible-centos-7-molecule-tripleo-bootstrap
- tripleo-ansible-centos-7-molecule-tuned
- tripleo-ansible-centos-7-role-addition
- tripleo-ansible-centos-7-molecule-tripleo-create-admin
- tripleo-ansible-centos-7-molecule-tripleo-module-load
- tripleo-ansible-centos-7-molecule-tripleo-ssh-known-hosts
- tripleo-ansible-centos-7-molecule-tripleo-container-tag
- tripleo-ansible-centos-7-molecule-tripleo-container-rm
- tripleo-ansible-centos-7-molecule-tripleo-image-serve
- tripleo-ansible-centos-7-molecule-tripleo-transfer
gate:
jobs:
- tripleo-ansible-centos-7-molecule-aide
- tripleo-ansible-centos-7-molecule-test_deps
- tripleo-ansible-centos-7-molecule-test_json_error_callback
- tripleo-ansible-centos-7-molecule-test_package_action
- tripleo-ansible-centos-7-molecule-tripleo-bootstrap
- tripleo-ansible-centos-7-molecule-tuned
- tripleo-ansible-centos-7-role-addition
- tripleo-ansible-centos-7-molecule-tripleo-create-admin
- tripleo-ansible-centos-7-molecule-tripleo-module-load
- tripleo-ansible-centos-7-molecule-tripleo-ssh-known-hosts
- tripleo-ansible-centos-7-molecule-tripleo-container-tag
- tripleo-ansible-centos-7-molecule-tripleo-container-rm
- tripleo-ansible-centos-7-molecule-tripleo-image-serve
- tripleo-ansible-centos-7-molecule-tripleo-transfer
name: tripleo-ansible-molecule-jobs
- job:
files:
- ^tripleo_ansible/roles/aide/.*
name: tripleo-ansible-centos-7-molecule-aide
parent: tripleo-ansible-centos
vars:
tox_envlist: mol-aide
- job:
files:
- ^tripleo_ansible/roles/test_deps/.*
name: tripleo-ansible-centos-7-molecule-test_deps
parent: tripleo-ansible-centos
vars:
tox_envlist: mol-test_deps
- job:
files:
- ^tripleo_ansible/roles/test_json_error_callback/.*
name: tripleo-ansible-centos-7-molecule-test_json_error_callback
parent: tripleo-ansible-centos
vars:
tox_envlist: mol-test_json_error_callback
- job:
files:
- ^tripleo_ansible/ansible_plugins/action/package.py
- ^tripleo_ansible/roles/test_package_action/.*
name: tripleo-ansible-centos-7-molecule-test_package_action
parent: tripleo-ansible-centos
vars:
tox_envlist: mol-test_package_action
- job:
files:
- ^tripleo_ansible/roles/tripleo-bootstrap/.*
name: tripleo-ansible-centos-7-molecule-tripleo-bootstrap
parent: tripleo-ansible-centos
timeout: 1800
vars:
tox_envlist: mol-tripleo-bootstrap
- job:
files:
- ^tripleo_ansible/roles/tuned/.*
name: tripleo-ansible-centos-7-molecule-tuned
parent: tripleo-ansible-centos
vars:
tox_envlist: mol-tuned
- job:
files:
- ^_skeleton_role_/.*
- ^role-addition.yml
name: tripleo-ansible-centos-7-role-addition
parent: tripleo-ansible-centos
vars:
tox_envlist: role-addition
- job:
files:
- ^tripleo_ansible/roles/tripleo-create-admin/.*
name: tripleo-ansible-centos-7-molecule-tripleo-create-admin
parent: tripleo-ansible-centos
timeout: 1800
vars:
tox_envlist: mol-tripleo-create-admin
- job:
files:
- ^tripleo_ansible/roles/tripleo-module-load/.*
name: tripleo-ansible-centos-7-molecule-tripleo-module-load
parent: tripleo-ansible-centos
vars:
tox_envlist: mol-tripleo-module-load
- job:
files:
- ^tripleo_ansible/roles/tripleo-ssh-known-hosts/.*
name: tripleo-ansible-centos-7-molecule-tripleo-ssh-known-hosts
parent: tripleo-ansible-centos
vars:
tox_envlist: mol-tripleo-ssh-known-hosts
- job:
files:
- ^tripleo_ansible/roles/tripleo-container-tag/.*
name: tripleo-ansible-centos-7-molecule-tripleo-container-tag
parent: tripleo-ansible-centos-sudo
pre-run:
- tripleo_ansible/playbooks/prepare-test-host.yml
vars:
tox_envlist: mol-tripleo-container-tag
- job:
files:
- ^tripleo_ansible/roles/tripleo-container-rm/.*
name: tripleo-ansible-centos-7-molecule-tripleo-container-rm
parent: tripleo-ansible-centos-sudo
pre-run:
- tripleo_ansible/playbooks/prepare-test-host.yml
vars:
tox_envlist: mol-tripleo-container-rm
- job:
files:
- ^tripleo_ansible/roles/tripleo-image-serve/.*
name: tripleo-ansible-centos-7-molecule-tripleo-image-serve
parent: tripleo-ansible-centos
vars:
tox_envlist: mol-tripleo-image-serve
- job:
files:
- ^tripleo_ansible/roles/tripleo-transfer/.*
name: tripleo-ansible-centos-7-molecule-tripleo-transfer
parent: tripleo-ansible-centos
vars:
tox_envlist: mol-tripleo-transfer