2017-10-10 06:03:19 +00:00
|
|
|
---
|
|
|
|
language: python
|
|
|
|
python: "2.7"
|
|
|
|
|
|
|
|
# Use the new container infrastructure
|
2018-10-11 18:43:30 +00:00
|
|
|
dist: trusty
|
2017-10-10 06:03:19 +00:00
|
|
|
sudo: false
|
|
|
|
|
2018-10-17 16:40:15 +00:00
|
|
|
# Install ansible
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- python-pip
|
|
|
|
|
2017-10-10 06:03:19 +00:00
|
|
|
install:
|
2018-10-17 16:40:15 +00:00
|
|
|
# Install ansible
|
2017-10-10 06:03:19 +00:00
|
|
|
- pip install ansible
|
|
|
|
|
2018-10-11 18:43:30 +00:00
|
|
|
# Create ansible.cfg with correct roles_path and local_tmp
|
2018-10-17 16:40:15 +00:00
|
|
|
- "{ echo '[defaults]'; echo 'roles_path = ../'; } >> ansible.cfg"
|
2017-10-10 06:03:19 +00:00
|
|
|
|
|
|
|
script:
|
2018-10-17 16:40:15 +00:00
|
|
|
# Basic role syntax check
|
|
|
|
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
|
2017-10-10 06:03:19 +00:00
|
|
|
|
|
|
|
#notifications:
|
2018-10-17 16:40:15 +00:00
|
|
|
# webhooks: https://galaxy.ansible.com/api/v1/notifications/
|