2017-03-09 17:17:13 +01:00
|
|
|
---
|
|
|
|
language: python
|
|
|
|
python: "2.7"
|
2017-03-09 17:47:18 +01:00
|
|
|
dist: trusty
|
2017-03-09 17:49:53 +01:00
|
|
|
cache:
|
|
|
|
bundler: true
|
|
|
|
pip: true
|
2017-03-09 17:17:13 +01:00
|
|
|
|
|
|
|
# Use the new container infrastructure
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
# Install ansible
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- python-pip
|
|
|
|
|
|
|
|
install:
|
|
|
|
# Install ansible
|
2017-03-09 17:49:53 +01:00
|
|
|
- pip install -U ansible
|
2017-03-09 17:17:13 +01:00
|
|
|
|
|
|
|
# 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:
|
2017-03-09 17:47:18 +01:00
|
|
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|