2016-07-27 00:53:08 +02:00
|
|
|
---
|
|
|
|
|
language: python
|
|
|
|
|
python: "2.7"
|
|
|
|
|
|
|
|
|
|
# Use the new container infrastructure
|
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
|
|
# Install ansible
|
|
|
|
|
addons:
|
|
|
|
|
apt:
|
|
|
|
|
packages:
|
|
|
|
|
- python-pip
|
|
|
|
|
|
|
|
|
|
install:
|
2018-09-17 15:12:03 +02:00
|
|
|
# Install requirements
|
|
|
|
|
- pip install -r requirements.txt -U
|
2016-07-27 00:53:08 +02:00
|
|
|
|
2018-09-03 21:00:51 +02:00
|
|
|
# Check ansible version
|
|
|
|
|
- ansible --version
|
2016-07-27 00:53:08 +02:00
|
|
|
|
2018-09-03 21:00:51 +02:00
|
|
|
# Create ansible.cfg with correct roles_path
|
|
|
|
|
- printf '[defaults]\nroles_path=../' >ansible.cfg
|
2016-07-27 00:53:08 +02:00
|
|
|
|
|
|
|
|
script:
|
2018-09-03 21:00:51 +02:00
|
|
|
# Basic role syntax check
|
|
|
|
|
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
|
2016-07-27 00:53:08 +02:00
|
|
|
|
|
|
|
|
notifications:
|
2018-09-17 15:12:03 +02:00
|
|
|
webhooks:
|
|
|
|
|
- https://galaxy.ansible.com/api/v1/notifications/
|