language: python

before_script:
- pip install tox
- pip2 install --force-reinstall 'ansible===1.9.4'
- ansible-galaxy install --role-file=ansible-role-requirements.yml --force --roles-path=/home/travis/build/rcbops/rpc-openstack/rpcd/playbooks/roles

script: tox

notifications:
    email: false

matrix:
  include:
    - python: 2.7
      env: TOXENV=flake8
    - python: 2.7
      env: TOXENV=ansible-lint
    - python: 2.7
      env: TOXENV=ansible-lint ANSIBLE_VERSION='>=2.0'

sudo: false

language: python

before_script:
- pip install tox
- pip2 install --force-reinstall 'ansible===1.9.4'
- ansible-galaxy install --role-file=ansible-role-requirements.yml --force --roles-path=/home/travis/build/rcbops/rpc-openstack/rpcd/playbooks/roles

script: tox

notifications:
    email: false

matrix:
  include:
    - python: 2.7
      env: TOXENV=flake8
    - python: 2.7
      env: TOXENV=ansible-lint

sudo: false

Remove Travis CI testing support for Ansible>2.0
Remove Travis CI testing support for Ansible>2.0

With the release of Ansible 2.1 the Travis CI job to run ansible-lint on
RPCO with ansible>2 is now failing. Due to RPCO currently only
supporting Ansible versions less than 2 the job will be removed.

openstack-ansible is currently looking to make ansible>=2 a requirement
for Newton and therefore ansible-lint support will need updating in a
future release.

Issue: https://github.com/rcbops/rpc-openstack/issues/1105
