dist: trusty
sudo: false

language: node_js

node_js:
  - "4"
  - "5"
  - "6"
  - "7"
  - "8"

git:
  depth: 1

branches:
  only:
    - master
    - /^greenkeeper/.*$/

cache:
  directories:
    - $HOME/.npm
    - node_modules

before_script:
  - node --version
  - npm --version

script:
  - npm test

matrix:
  fast_finish: true

dist: trusty
sudo: false

language: node_js

node_js:
  - "9"
  - "8"
  - "7"
  - "6"
  - "5"
  - "4"

git:
  depth: 1

branches:
  only:
    - master
    - /^greenkeeper/.*$/

cache:
  directories:
    - $HOME/.npm
    - node_modules

before_script:
  - node --version
  - npm --version

script:
  - npm test

matrix:
  fast_finish: true

Add Node 9 to Travis
Add Node 9 to Travis

Reorder the Node versions while we're at it to fail faster if something's wrong (because newer Node versions are faster than old)
