language: node_js

dist: trusty

sudo: required

cache:
  apt: true
  yarn: true
  ccache: true

addons:
  apt:
    sources: ['ubuntu-toolchain-r-test']
    packages: ['g++-6', 'libbz2-dev', 'libstxxl-dev', 'libstxxl1', 'libxml2-dev', 'libzip-dev', 'lua5.1', 'liblua5.1-0-dev', 'libtbb-dev', 'libgdal-dev', 'libluabind-dev', 'libboost-all-dev']

env: CCOMPILER='gcc-6' CXXCOMPILER='g++-6'

branches:
  except:
    - /^v[0-9]/

node_js:
  - "6"
  - "8"

before_install: yarn global add greenkeeper-lockfile@1
install: yarn

before_script: greenkeeper-lockfile-update
script: make test
after_script: greenkeeper-lockfile-upload

language: node_js

dist: trusty

sudo: required

cache:
  apt: true
  yarn: true
  ccache: true

addons:
  apt:
    sources: ['ubuntu-toolchain-r-test']
    packages: ['g++-6', 'libbz2-dev', 'libstxxl-dev', 'libstxxl1', 'libxml2-dev', 'libzip-dev', 'lua5.1', 'liblua5.1-0-dev', 'libtbb-dev', 'libgdal-dev', 'libluabind-dev', 'libboost-all-dev']

env: CCOMPILER='gcc-6' CXXCOMPILER='g++-6'

branches:
  except:
    - /^v[0-9]/

node_js:
  - "6"

before_install: yarn global add greenkeeper-lockfile@1
install: yarn

before_script: greenkeeper-lockfile-update
script: make test
after_script: greenkeeper-lockfile-upload

Remove Node 8 from Travis test matrix
Remove Node 8 from Travis test matrix

It looks like osrm-backend only supports Node 4 and 6 (see
[here](https://github.com/Project-OSRM/osrm-backend/blob/a3257ff6512357a8598543bf8bdd709803ca03b0/.travis.yml#L10-L12))

There is also [this
comment](https://github.com/Project-OSRM/osrm-backend/issues/3945#issuecomment-294029691)
which would explain the 403 error on the Node 8 build
