---
language: python
python: 
  - "2.7"
  - "3.5"

# This role needs sudo, thus we can't use the new container infrastructure
sudo: false
# sudo: required

# Install ansible
addons:
  apt:
    packages:
    - python-pip

install:
  - pip install cookiecutter

script:
  - cookiecutter --version

---
language: python
python: 
  - "2.7"
  - "3.5"

# This role needs sudo, thus we can't use the new container infrastructure
sudo: false
# sudo: required

# Install ansible
addons:
  apt:
    packages:
    - python-pip

install:
  - pip install cookiecutter

script:
  - cookiecutter --version
  - cookiecutter --replay --config-file tests/cookiecutterrc .
  - cd test_project
  - ansible-playbook tests/test.yml -i tests/inventory -l localhost --connection=local -vvvv
  - bundle install
  - bundle exec rake spec SPEC_TARGET=localhost

Check Ansible role works well.
Check Ansible role works well.
