---
language: python
python: "2.7"

env:
  - ANSIBLE_VERSION=latest
  - ANSIBLE_VERSION=2.0.0.0

sudo: required
services:
  - docker

before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -qq python-apt ruby

install:
  - if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible; else pip install ansible==$ANSIBLE_VERSION; fi
  - sudo gem install busser --no-ri --no-rdoc
  - sudo busser plugin install busser-bats

script:
  - echo localhost > inventory
  # Show gathered facts
  - ansible -i inventory --connection=local -m setup localhost
  # Run syntax check
  - ansible-playbook -i inventory --syntax-check test/integration/default/default.yml
  # Run playbook locally
  - ansible-playbook -i inventory --connection=local --sudo -vvvv test/integration/default/default.yml
  # Run the Test Kitchen tests.
  # - sudo /opt/busser/vendor/bats/bin/bats ./test/integration/default/bats/*.bats

---
language: python
python: "2.7"

env:
  - ANSIBLE_VERSION=latest
  - ANSIBLE_VERSION=2.0.0.0

sudo: required
services:
  - docker

before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -qq python-apt ruby

install:
  - if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible; else pip install ansible==$ANSIBLE_VERSION; fi
  - sudo gem install busser --no-ri --no-rdoc
  - sudo busser plugin install busser-bats

script:
  - ansible-galaxy install -r requirements.yml
  - echo localhost > inventory
  # Show gathered facts
  - ansible -i inventory --connection=local -m setup localhost
  # Run syntax check
  - ansible-playbook -i inventory --syntax-check test/integration/default/default.yml
  # Run playbook locally
  - ansible-playbook -i inventory --connection=local --sudo -vvvv test/integration/default/default.yml
  # Run the Test Kitchen tests.
  # - sudo /opt/busser/vendor/bats/bin/bats ./test/integration/default/bats/*.bats

Add an command to install requirements
Add an command to install requirements
