Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
---
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/