.travis.yml 535 Bytes
Newer Older
Themis Zamani's avatar
Themis Zamani committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
---
language: python
python: "2.7"

before_install:
  # Make sure everything's up to date.
  - sudo apt-get update -qq

install:
  # Install Ansible.
  - pip install ansible

  # Add ansible.cfg to pick up roles path.
  - "printf '[defaults]\nroles_path = ../' > ansible.cfg"

script:
  # We'll add some commands to test the role here.
Themis Zamani's avatar
Themis Zamani committed
18 19
  - cd ansible &&  ansible-playbook -i tests/inventory tests/test.yml  --syntax-check
  #- "ansible-playbook -i ansible/roles/tests/inventory ansible/roles/tests/test.yml --connection=local --sudo"
Themis Zamani's avatar
Themis Zamani committed
20