language: python

env:
  matrix:
    - TEST=code-smell

matrix:
  include:
    - env: TEST=sanity INSTALL_DEPS=1 TOXENV=py24
      python: 2.7
    - env: TEST=sanity INSTALL_DEPS=1 TOXENV=py26
      python: 2.6
    - env: TEST=sanity INSTALL_DEPS=1 TOXENV=py27
      python: 2.7
    - env: TEST=sanity INSTALL_DEPS=1 TOXENV=py34
      python: 3.4
    - env: TEST=sanity INSTALL_DEPS=1 TOXENV=py35
      python: 3.5
    - env: TEST=integration IMAGE=ansible/ansible:centos6
    - env: TEST=integration IMAGE=ansible/ansible:centos7
    - env: TEST=integration IMAGE=ansible/ansible:fedora24
    - env: TEST=integration IMAGE=ansible/ansible:fedora25
    - env: TEST=integration IMAGE=ansible/ansible:ubuntu1204 PRIVILEGED=true
    - env: TEST=integration IMAGE=ansible/ansible:ubuntu1404 PRIVILEGED=true
    - env: TEST=integration IMAGE=ansible/ansible:ubuntu1604
build:
  pre_ci:
    - docker images drydock/u16pytall
  pre_ci_boot:
    image_name: drydock/u16pytall
    image_tag: master
    pull: false
    options: "--privileged=false --net=bridge"
  ci:
    - test/utils/shippable/ci.sh

integrations:
  notifications:
    - integrationName: email
      type: email
      on_success: never
      on_failure: never
      on_start: never
      on_pull_request: never
    - integrationName: irc
      type: irc
      recipients:
      - "chat.freenode.net#ansible-notices"
      on_success: change
      on_failure: always
      on_start: never
      on_pull_request: always
    - integrationName: slack
      type: slack
      recipients:
      - "#shippable"
      on_success: change
      on_failure: always
      on_start: never
      on_pull_request: never