sudo: false
language: node_js
node_js:
  - 0.12
  - 4
  - 6
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - g++-4.8
env:
  global:
    - CXX=g++-4.8
  matrix:
    - TARGET=test
    - TARGET=travis-coverage
script:
  - npm run $TARGET

sudo: false
language: node_js
node_js:
  - 4
  - 6
  - 8
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - g++-6
env:
  global:
    - CXX=g++-6
  matrix:
    - TARGET=test
    - TARGET=travis-coverage
script:
  - npm run $TARGET

Use G++ 6 on Travis
Use G++ 6 on Travis
