language: node_js
node_js:
  - "6"
  - "7"
  - "8"

os:
  - linux
  - osx

matrix:
  include:
    - os: osx
      osx_image: xcode8
      env:
        - MATRIX_EVAL="brew install gcc5 && CC=gcc-5 && CXX=g++-5"
    - os: linux
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - g++-5
      env:
         - MATRIX_EVAL="CC=gcc-5 && CXX=g+5"

before_install:
    - eval "${MATRIX_EVAL}"
language: node_js

node_js:
  - "6"
  - "7"
  - "8"
  
os:
  - linux
  - osx

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

before_install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update         ; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gcc@5  ; fi      

 
Install gcc5 on os x
Install gcc5 on os x
