Drop Travis CI support
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
bd87a18ae1
commit
29a73c8a9e
31
.travis.yml
31
.travis.yml
@ -1,31 +0,0 @@
|
||||
---
|
||||
language: python
|
||||
python: "2.7"
|
||||
|
||||
env:
|
||||
global:
|
||||
- ANSIBLE_CONFIG=tests/ansible.cfg
|
||||
matrix:
|
||||
- SITE=test001.yaml
|
||||
- SITE=test002.yaml
|
||||
|
||||
before_install:
|
||||
- sudo apt-get update -qq
|
||||
|
||||
install:
|
||||
# Install Ansible.
|
||||
- pip install ansible
|
||||
|
||||
script:
|
||||
# Check the role/playbook's syntax.
|
||||
- "ansible-playbook -i tests/inventory tests/$SITE --syntax-check"
|
||||
|
||||
# Run the role/playbook with ansible-playbook.
|
||||
- "ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo"
|
||||
|
||||
# Run the role/playbook again, checking to make sure it's idempotent.
|
||||
- >
|
||||
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)
|
Loading…
x
Reference in New Issue
Block a user