sudo: false

language: cpp

os:
  - linux

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - libxerces-c-dev
      - gcc-4.8
      - g++-4.8
      - gcc-5
      - g++-5

before_install:
  - git clone https://github.com/appleseedhq/travis-linux-deps.git

install:
  - if [ -n "$GCC_VERSION" ]; then export CC="${CC}-${GCC_VERSION}"; fi
  - if [ -n "$GCC_VERSION" ]; then export CXX="${CXX}-${GCC_VERSION}"; fi

compiler:
  - gcc

env:
  - GCC_VERSION=4.8 USE_CPP11=OFF

matrix:
    include:
        - os: linux
          compiler: gcc
          env: GCC_VERSION= USE_CPP11=OFF

        - os: linux
          compiler: gcc
          env: GCC_VERSION=5 USE_CPP11=OFF

        - os: linux
          compiler: gcc
          env: GCC_VERSION=4.8 USE_CPP11=ON

        - os: linux
          compiler: gcc
          env: GCC_VERSION=5 USE_CPP11=ON

script:
  - ./travis/build.sh

sudo: false

language: cpp

os:
  - linux

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - libxerces-c-dev
      - gcc-4.8
      - g++-4.8
      - gcc-5
      - g++-5

before_install:
  - git clone https://github.com/appleseedhq/travis-linux-deps.git

install:
  - if [ -n "$GCC_VERSION" ]; then export CC="${CC}-${GCC_VERSION}"; fi
  - if [ -n "$GCC_VERSION" ]; then export CXX="${CXX}-${GCC_VERSION}"; fi

compiler:
  - gcc

env:
  - GCC_VERSION=4.8 USE_CPP11=OFF

matrix:
    include:
        - os: linux
          compiler: gcc
          env: GCC_VERSION= USE_CPP11=OFF

        - os: linux
          compiler: gcc
          env: GCC_VERSION=5 USE_CPP11=OFF

        - os: linux
          compiler: gcc
          env: GCC_VERSION=4.8 USE_CPP11=ON

        - os: linux
          compiler: gcc
          env: GCC_VERSION=5 USE_CPP11=ON

script:
  - ./travis/build.sh

notifications:
  slack: appleseedhq:H9o3XAC4e05O0yE4upX1FNkW

Enable Travis notifications in Slack
Enable Travis notifications in Slack
