language: node_js
node_js:
  - 4
  - 6
  - 8
sudo: false
script: "npm run test-travis"
after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/06b722b9c1ca92dd4d75

language: node_js
node_js:
  - 4
  - 6
  - 8
sudo: false
before_install: "npm install --global npm"
script: "npm run test-travis"
after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/06b722b9c1ca92dd4d75

Update npm before installing build dependencies
Update npm before installing build dependencies

This could theoretically fix build issues by forcing older versions of Node to use npm 5+, which supports the lock file.