language: node_js
node_js:
  - "8"
  - "7"
  - "6"
cache: yarn
script: yarn lint

language: node_js
node_js:
  - node
  - lts
  - 8
  - 7
  - 6

Replace yarn with npm in Travis CI file
Replace yarn with npm in Travis CI file