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

language: node_js

dist: trusty

sudo: required

cache:
  apt: true
  yarn: true
  ccache: true

addons:
  apt:
    sources: ['ubuntu-toolchain-r-test']
    packages: ['g++-6', 'gcc-6', 'build-essential', 'git', 'wget', 'cmake3', 'pkg-config', 'libbz2-dev', 'libstxxl-dev', 'libstxxl1', 'libxml2-dev', 'libzip-dev', 'libboost-all-dev', 'lua5.2', 'liblua5.2-dev', 'libtbb-dev']

env: CPP=cpp-6 CC=gcc-6 CXX=g++-6

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

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

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

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

Support Node 7 and 8
Support Node 7 and 8

* Node 7 should be supported since it is what urbica/galton uses

* Node 8 was previously tested but was removed in 8d264b2

Node 4 and 6 install OSRM from prebuilt binaries. Other versions of Node
are fine but OSRM needs to be built from source. We just need to ensure
the necessary dependencies to build it are installed.
