---
language: python

python: "2.7"

env:
  - ANSIBLE_VERSION=1.9.2

install:
  # Install Ansible.
  - pip install ansible==$ANSIBLE_VERSION

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

script:
  # TODO: once travis-ci includes an option to use CentOS, run the playbook for real.

  # Check the role/playbook's syntax.
  - ansible-playbook .tests/test.yaml -i .tests/inventory --syntax-check

notifications:
  irc:
    channels:
      - "chat.freenode.net##phatypus"
    template:
      - "(%{repository_name}) %{build_number}: %{branch}@%{commit} %{author} -> %{message} %{build_url}"
    use_notice: true

---
language: python

python: "2.7"

env:
  - ANSIBLE_VERSION=2.1.2.0

install:
  # Install Ansible.
  - pip install ansible==$ANSIBLE_VERSION

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

script:
  # TODO: once travis-ci includes an option to use CentOS, run the playbook for real.

  # Check the role/playbook's syntax.
  - ansible-playbook .tests/test.yaml -i .tests/inventory --syntax-check

notifications:
  irc:
    channels:
      - "chat.freenode.net##phatypus"
    template:
      - "(%{repository_name}) %{build_number}: %{branch}@%{commit} %{author} -> %{message} %{build_url}"
    use_notice: true

Update the version of ansible used to test.
Update the version of ansible used to test.
