
This patch: - adds a basic skeleton role for tripleo_ipa generated from molecule - trivial additions to .gitignore - adds molecule-requirements.txt - invokes molecule using tox - adds basic plumbing so that we can invoke tests using zuul and locally with some handy scripts Each entry above was originally its own patch. We're consolidating them into a single patch so that we can introduce zuul, which needs to verify patches before we can merge them. If you want to run tests locally, you can use the `scripts/run-local-test` script: $ bash scripts/run-local-test Which will setup dependencies from zuul, install a virtualenv, and invoke tox. Change-Id: If9446f5597d0150a2694e655dbb45475ce38a426
29 lines
539 B
YAML
29 lines
539 B
YAML
---
|
|
language: python
|
|
python: "2.7"
|
|
|
|
# Use the new container infrastructure
|
|
sudo: false
|
|
|
|
# Install ansible
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- python-pip
|
|
|
|
install:
|
|
# Install ansible
|
|
- pip install ansible
|
|
|
|
# Check ansible version
|
|
- ansible --version
|
|
|
|
# Create ansible.cfg with correct roles_path
|
|
- printf '[defaults]\nroles_path=../' >ansible.cfg
|
|
|
|
script:
|
|
# Basic role syntax check
|
|
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
|
|
|
|
notifications:
|
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/ |