language: node_js
sudo: false
node_js:
  - "lts/*"
  - "node"
script:
  - npm test
  - npm run lint
branches:
  only:
    - master
    - stable

language: node_js
sudo: false
cache: npm
node_js:
  - "lts/*"
  - "node"
script:
  - npm test
  - npm run lint
branches:
  only:
    - master
    - stable

Enable npm cache on Travis
Enable npm cache on Travis

https://docs.travis-ci.com/user/languages/javascript-with-nodejs/#caching-with-npm
