---
# This is an example .travis.
# If you've forked this repo, please make sure  to change the notifications section
language: python
sudo: required
services: docker
os:
  - centos6
  - u1404
before_install:
  - docker pull aaroc/code-rade-sl6-ansible
  - docker pull aaroc/code-rade-u1404-ansible

install:
  - docker run -v $PWD:$PWD -w $PWD aaroc/code-rade-sl6-ansible ansible-playbook -c local -i handson/inventory.localhost handson/lesson1.yml
  - docker run -v $PWD:$PWD -w $PWD aaroc/code-rade-u1404-ansible ansible-playbook -c local -i handson/inventory.localhost handson/lesson3.yml
  - sudo pip install ansible

script:
  - cd course-preparation/Ansible
  - ansible localhost -C training-lab.yml
  - ansible localhost training-lab.yml -e site_name=testing

notifications:
  slack:
    rooms:
      - ansible4devops2015:It5SDeYANNXDtXh6YmbmO6Rh#testing
    on_success: always
    on_failure: always
    on_start: always

---
# This is an example .travis.
# If you've forked this repo, please make sure  to change the notifications section
language: python
sudo: required
services: docker
os:
  - centos6
  - u1404
before_install:
  - docker pull aaroc/code-rade-sl6-ansible
  - docker pull aaroc/code-rade-u1404-ansible

install:
  - docker run -v $PWD:$PWD -w $PWD aaroc/code-rade-sl6-ansible ansible-playbook -c local -i handson/inventory.localhost handson/lesson1.yml
  - docker run -v $PWD:$PWD -w $PWD aaroc/code-rade-u1404-ansible ansible-playbook -c local -i handson/inventory.localhost handson/lesson3.yml
  - sudo pip install ansible

script:
  - cd course-preparation/Ansible
  - ansible-playbook -c local -i localhost, -C training-lab.yml
  - ansible-playbook -c local -i localhost, training-lab.yml -e site_name=testing

notifications:
  slack:
    rooms:
      - ansible4devops2015:It5SDeYANNXDtXh6YmbmO6Rh#testing
    on_success: always
    on_failure: always
    on_start: always

USe localhost inventory during testing
USe localhost inventory during testing
