Repository URL to install this package:
|
Version:
4.1.142 ▾
|
tvault_configurator
/
tvault_configurator
/
ansible-play
/
roles
/
ansible-apt-sources
/
.travis.yml
|
|---|
---
language: python
python: "2.7"
# Use the new container infrastructure
sudo: required
# Install ansible
addons:
apt:
packages:
- python-pip
env:
- SKIP_LIST=ANSIBLE0016
install:
# Install ansible tools
- pip install ansible ansible-lint
# Check ansible version
- ansible --version
# Create ansible.cfg with correct roles_path
- printf '[defaults]\nroles_path=../' >ansible.cfg
script:
# Ansible lint check
- ansible-lint tests/setup.yml -x $SKIP_LIST
# Basic role syntax check
- ansible-playbook tests/setup.yml -i tests/inventory --syntax-check
# Execute
- ansible-playbook tests/setup.yml -i tests/inventory
# Check idempotence
- "ansible-playbook tests/setup.yml -i tests/inventory | grep -q 'changed=0.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1)"
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/