language: python

env:
  matrix:
    - TEST=none

matrix:
  exclude:
    - env: TEST=none
  include:
    - env: TEST=remote TARGET=all PLATFORM=osx VERSION=10.11

    - env: TEST=remote TARGET=all PLATFORM=freebsd VERSION=10.4 PRIVILEGED=true

    - env: TEST=remote TARGET=ci_win1 PLATFORM=windows VERSION=2012-R2_RTM
    - env: TEST=remote TARGET=ci_win2 PLATFORM=windows VERSION=2012-R2_RTM
    - env: TEST=remote TARGET=ci_win3 PLATFORM=windows VERSION=2012-R2_RTM

    - env: TEST=integration TARGET=destructive IMAGE=ansible/ansible:centos6
    - env: TEST=integration TARGET=destructive IMAGE=ansible/ansible:centos7
    - env: TEST=integration TARGET=destructive IMAGE=ansible/ansible:fedora24
    - env: TEST=integration TARGET=destructive IMAGE=ansible/ansible:fedora25
    - env: TEST=integration TARGET=destructive IMAGE=ansible/ansible:opensuse42.3
    - env: TEST=integration TARGET=destructive IMAGE=ansible/ansible:ubuntu1204 PRIVILEGED=true
    - env: TEST=integration TARGET=destructive IMAGE=ansible/ansible:ubuntu1404 PRIVILEGED=true
    - env: TEST=integration TARGET=destructive IMAGE=ansible/ansible:ubuntu1604
    - env: TEST=integration TARGET=destructive IMAGE=ansible/ansible:ubuntu1604py3 PYTHON3=1

    - env: TEST=integration TARGET=non_destructive IMAGE=ansible/ansible:centos6
    - env: TEST=integration TARGET=non_destructive IMAGE=ansible/ansible:centos7 PRIVILEGED=true
    - env: TEST=integration TARGET=non_destructive IMAGE=ansible/ansible:fedora24 PRIVILEGED=true
    - env: TEST=integration TARGET=non_destructive IMAGE=ansible/ansible:fedora25 PRIVILEGED=true
    - env: TEST=integration TARGET=non_destructive IMAGE=ansible/ansible:opensuse42.3 PRIVILEGED=true
    - env: TEST=integration TARGET=non_destructive IMAGE=ansible/ansible:ubuntu1204 PRIVILEGED=true
    - env: TEST=integration TARGET=non_destructive IMAGE=ansible/ansible:ubuntu1404 PRIVILEGED=true
    - env: TEST=integration TARGET=non_destructive IMAGE=ansible/ansible:ubuntu1604 PRIVILEGED=true
    - env: TEST=integration TARGET=non_destructive IMAGE=ansible/ansible:ubuntu1604py3 PYTHON3=1 PRIVILEGED=true

    - env: TEST=integration TARGET=other IMAGE=ansible/ansible:centos6
    - env: TEST=integration TARGET=other IMAGE=ansible/ansible:centos7
    - env: TEST=integration TARGET=other IMAGE=ansible/ansible:fedora24
    - env: TEST=integration TARGET=other IMAGE=ansible/ansible:fedora25
    - env: TEST=integration TARGET=other IMAGE=ansible/ansible:opensuse42.3
    - env: TEST=integration TARGET=other IMAGE=ansible/ansible:ubuntu1204
    - env: TEST=integration TARGET=other IMAGE=ansible/ansible:ubuntu1404
    - env: TEST=integration TARGET=other IMAGE=ansible/ansible:ubuntu1604
    - env: TEST=integration TARGET=other IMAGE=ansible/ansible:ubuntu1604py3 PYTHON3=1

    - 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=py35
      python: 3.5

    - env: TEST=code-smell INSTALL_DEPS=1
      python: 2.7
build:
  pre_ci_boot:
    image_name: drydock/u16pytall
    image_tag: v5.4.1
    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
