branches:
  only:
    - master

language: node_js

os:
  - linux

sudo: false

node_js:
  - "8"
  - "6"
  - "4"

matrix:
  fast_finish: true

git:
  depth: 1

before_install:
  - nvm install $NODE_VERSION

install:
  - npm install

script:
  - npm run build;
  - npm test;

branches:
  only:
    - master

language: node_js

os:
  - linux

sudo: false

node_js:
  - "8"
  - "6"
  - "4"

matrix:
  fast_finish: true

git:
  depth: 1

install:
  - npm install

script:
  - npm run build;
  - npm test;

Fix Travis build by removing an unnecessary step
Fix Travis build by removing an unnecessary step

There is no need to rely on environment variables because we've
defined the desired versions of Node.js directly in the yaml file.