2016-07-26 12:28:52 +02:00
|
|
|
---
|
|
|
|
notifications:
|
|
|
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
|
|
|
language: python
|
|
|
|
python: "2.7"
|
|
|
|
|
|
|
|
env:
|
|
|
|
- ANSIBLE_VERSION=latest
|
|
|
|
- ANSIBLE_VERSION=1.9.4
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- sudo apt-get update -qq
|
2016-07-26 16:30:59 +02:00
|
|
|
- sudo apt-get install -qq python-apt python-pycurl
|
2016-07-26 12:28:52 +02:00
|
|
|
install:
|
|
|
|
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible; else pip install ansible==$ANSIBLE_VERSION; fi
|
|
|
|
- echo -e 'localhost ansible_connection=local' > spec/inventory
|
|
|
|
- echo -e '[defaults]\nroles_path = ../\nhostfile = ./spec/inventory' > ansible.cfg
|
|
|
|
|
|
|
|
script:
|
2016-07-26 16:30:59 +02:00
|
|
|
- ansible-galaxy install -r requirements.yml
|
2016-07-26 12:28:52 +02:00
|
|
|
- ansible-playbook --syntax-check spec/travis.yml
|
|
|
|
- ansible-playbook --sudo -v --diff spec/travis.yml
|
2016-07-26 12:58:35 +02:00
|
|
|
- ansible-playbook --sudo -v --diff spec/travis.yml --extra-vars "nginx_remove_default_site=false"
|