Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (19 sloc) 762 Bytes
---
language: objective-c
cache: pip
os: osx
rvm: 2.3.1
osx_image:
- xcode9
- xcode9.1
- xcode9.2
install:
- sudo -H easy_install pip
- sudo -H pip install -I ansible==2.4.0.0
- mkdir -p /tmp/roles
- "{ echo '[defaults]'; echo 'roles_path = ../:/tmp/roles'; echo 'hash_behaviour=merge'; } >> ansible.cfg"
#- ansible-galaxy install -f -r tests/requirements.yml -p /tmp/roles
script:
- "ansible-playbook -i tests/inventory tests/travis.yml --syntax-check"
- "ansible-playbook -i tests/inventory tests/travis.yml --connection=local"
- "ansible-playbook -i tests/inventory tests/travis.yml --connection=local | grep -q 'changed=0.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1)"