language: cpp
script:
  - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
  - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 90
  - sudo apt-get install libstdc++-4.8-dev
  - cmake --version
  - ./build.sh
matrix:
  include:
    # Linux Clang
    - os: linux
      compiler: clang
      env: BUILD_TYPE='Release'
    - os: linux
      compiler: clang
      env: BUILD_TYPE='Debug'
    # Linux GCC
    - os: linux
      compiler: gcc
      addons: &gcc48
        apt:
         sources: ['ubuntu-toolchain-r-test']
         packages: ['g++-4.8']
      env: BUILD_TYPE='Release'
    - os: linux
      compiler: gcc
      addons: &gcc48
        apt:
         sources: ['ubuntu-toolchain-r-test']
         packages: ['g++-4.8']
      env: BUILD_TYPE='Debug'
    # OS X
    - os: osx
      compiler: clang
      env: BUILD_TYPE='Debug'
    - os: osx
      compiler: clang
      env: BUILD_TYPE='Release'

language: cpp
script:
  - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
  - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 90
  - sudo apt-get install libstdc++-4.8-dev
  - cmake --version
  - ./build.sh
matrix:
  include:
    # Linux Clang
    - os: linux
      compiler: clang
      env: BUILD_TYPE='Release'
    - os: linux
      compiler: clang
      env: BUILD_TYPE='Debug'
    # Linux GCC
    - os: linux
      compiler: gcc
      addons: &gcc48
        apt:
         sources: ['ubuntu-toolchain-r-test']
         packages: ['g++-4.8']
      env: BUILD_TYPE='Release'
    - os: linux
      compiler: gcc
      addons: &gcc48
        apt:
         sources: ['ubuntu-toolchain-r-test']
         packages: ['g++-4.8']
      env: BUILD_TYPE='Debug'
    # OS X
    - os: osx
      osx_image: xcode7
      compiler: clang
      env: BUILD_TYPE='Debug'
    - os: osx
      osx_image: xcode7
      compiler: clang
      env: BUILD_TYPE='Release'

Set Xcode 7 as an OSX build requirement
Set Xcode 7 as an OSX build requirement