
language: generic

env:
  global:
    - CMAKE_GENERATOR="Unix Makefiles" CMAKE_OPTIONS=" "

matrix:
  include:
    - os: linux
      dist: trusty
      sudo: required
      env: BUILD_PLATFORM="Linux-x64"
    - os: osx
      osx_image: xcode7.3
      env: BUILD_PLATFORM="Darwin-x64"

install:
  - buildscripts/1-install-deps-travis.sh
  - export PATH="/data/bin:$PATH"

script:
  - CMAKE_BUILD_TYPE=Debug buildscripts/2-build-travis.sh
  - CMAKE_BUILD_TYPE=Release buildscripts/2-build-travis.sh

after_success:
  - CMAKE_BUILD_TYPE=Debug buildscripts/3-release-travis.sh
  - CMAKE_BUILD_TYPE=Release buildscripts/3-release-travis.sh




language: generic

env:
  global:
    - CMAKE_GENERATOR="Unix Makefiles" CMAKE_OPTIONS=" "

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - gcc-4.9
    - g++-4.9

matrix:
  include:
    - os: linux
      dist: trusty
      sudo: required
      env: BUILD_PLATFORM="Linux-x64"
    - os: osx
      osx_image: xcode7.3
      env: BUILD_PLATFORM="Darwin-x64"

install:
  - buildscripts/1-install-deps-travis.sh
  - export PATH="/data/bin:$PATH"
  - if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi

script:
  - CMAKE_BUILD_TYPE=Debug buildscripts/2-build-travis.sh
  - CMAKE_BUILD_TYPE=Release buildscripts/2-build-travis.sh

after_success:
  - CMAKE_BUILD_TYPE=Debug buildscripts/3-release-travis.sh
  - CMAKE_BUILD_TYPE=Release buildscripts/3-release-travis.sh

Update Travis file to request GCC 4.9
Update Travis file to request GCC 4.9

The JSON library requires at least GCC 4.9
