summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: ebfe693e3a9b05769c9f8e20cdc02ff8683affed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
language: python
python: "2.7"

# Use the new container infrastructure
sudo: required

# Install ansible

before_install:
 - sudo apt-get update -qq
 - sudo apt-get install -qq python-apt python-pycurl python-pip

install:
  # Install ansible
  - pip install ansible

  # Check ansible version
  - ansible --version

  # Create ansible.cfg with correct roles_path
  - printf '[defaults]\nroles_path=../' >ansible.cfg

script:
  # Basic role syntax check
  - ansible-playbook tests/test.yml -i tests/inventory --syntax-check

notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/