language: node_js
node_js:
  - "6"
  - "8"
env:
  - CXX=g++-4.8
addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - g++-4.8
before_install:
  - sh -e /etc/init.d/xvfb start
env:
  global:
    - DISPLAY=:99.0
  matrix:
    - CXX=g++-4.8 TEST_SUITE=test:node
matrix:
  fast_finish: true
  include:
    - os: linux
      node_js: "6"
      env: CXX=g++-4.8 TEST_SUITE=coveralls
    - os: linux
      node_js: "6"
      env: CXX=g++-4.8 TEST_SUITE=lint
    - os: linux
      node_js: "8"
      env: CXX=g++-4.8 TEST_SUITE=coveralls
    - os: linux
      node_js: "8"
      env: CXX=g++-4.8 TEST_SUITE=lint
    # - os: linux
    #   node_js: "4"
    #   env: CXX=g++-4.8 TEST_SUITE=test:browser
script: npm run $TEST_SUITE

language: node_js
node_js:
  - "8"
  - "10"
env:
  - CXX=g++-4.8
addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - g++-4.8
before_install:
  - sh -e /etc/init.d/xvfb start
env:
  global:
    - DISPLAY=:99.0
  matrix:
    - CXX=g++-4.8 TEST_SUITE=test:node
matrix:
  fast_finish: true
  include:
    - os: linux
      node_js: "8"
      env: CXX=g++-4.8 TEST_SUITE=coveralls
    - os: linux
      node_js: "8"
      env: CXX=g++-4.8 TEST_SUITE=lint
    - os: linux
      node_js: "10"
      env: CXX=g++-4.8 TEST_SUITE=coveralls
    - os: linux
      node_js: "10"
      env: CXX=g++-4.8 TEST_SUITE=lint
    # - os: linux
    #   node_js: "4"
    #   env: CXX=g++-4.8 TEST_SUITE=test:browser
script: npm run $TEST_SUITE

Update Travis CI to run on node v8, v10
Update Travis CI to run on node v8, v10
