branches:
  only:
    - master

language: cpp

sudo: true

matrix:
  allow_failures:
    - os: osx

  include:
    - language: python
      sudo: false
      python: 2.7
      env: TASKS="clang-format"

      os: linux
      dist: trusty
      addons:
        apt:
          sources:
          - ubuntu-toolchain-r-test
          - llvm-toolchain-trusty-6.0
          packages:
          - clang-format-6.0

    - compiler: gcc
      os: linux
      addons:
        apt:
          sources: ubuntu-toolchain-r-test
          packages: g++-4.9
      env:
        - TASKS="ctest gcc-4.9"
        - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"

    - compiler: gcc
      os: linux
      addons:
        apt:
          sources: ubuntu-toolchain-r-test
          packages: g++-6
      env:
        - TASKS="ctest gcc-6.3"
        - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"

    - compiler: clang
      os: linux
      env: TASKS="ctest clang-3.9"

    - os: osx

install:
  - . ./scripts/travis/install.sh

script:
  - ./scripts/travis/build.sh

branches:
  only:
    - master

language: cpp

sudo: true

matrix:
  allow_failures:
    - os: osx

  include:
    - language: python
      sudo: false
      python: 2.7
      env: TASKS="clang-format"

      os: linux
      dist: trusty
      addons:
        apt:
          sources:
          - ubuntu-toolchain-r-test
          - llvm-toolchain-trusty-6.0
          packages:
          - clang-format-6.0

    - compiler: gcc
      os: linux
      addons:
        apt:
          sources: ubuntu-toolchain-r-test
          packages: g++-4.9
      env:
        - TASKS="ctest gcc-4.9"
        - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"

    - compiler: gcc
      os: linux
      addons:
        apt:
          sources: ubuntu-toolchain-r-test
          packages: g++-6
      env:
        - TASKS="ctest gcc-6.3"
        - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"

    - compiler: clang
      os: linux
      env: TASKS="ctest clang-3.9"

    - os: osx
      env: TASKS="Mac clang"

install:
  - . ./scripts/travis/install.sh

script:
  - ./scripts/travis/build.sh

Add a TASK marker as suggested by Marcus.
Add a TASK marker as suggested by Marcus.

Signed-off-by: Geoff Hutchison <9cf35bacc9f8512ca007341c9e919cf5dc03e0c7@gmail.com>
