123456789101112131415161718192021222324252627282930313233343536 |
- ---
- language: python
- python: "2.7"
- env:
- - SITE=test.yml
- before_install:
- - sudo apt-get update -qq
- install:
-
- - pip install ansible
-
- - "{ echo '[defaults]'; echo 'roles_path = ../'; } >> ansible.cfg"
-
- - ansible-galaxy install geerlingguy.git
- script:
-
- - "ansible-playbook -i tests/inventory tests/$SITE --syntax-check"
-
- - "ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo"
-
- - >
- ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo
- | grep -q 'changed=0.*failed=0'
- && (echo 'Idempotence test: pass' && exit 0)
- || (echo 'Idempotence test: fail' && exit 1)
-
- - curl http://localhost:3000/install
|