sudo: false language: node_js node_js: - "0.12" - "4" - "6" - "7" cache: directories: $HOME/.npm before_install: # prevent the npm loading indicator - npm config --global set spin false # if npm version is less 3.0.0 (lets say 1.x or 2.x) we should attempt to upgrade to 3 - if [[ $(npm -v | cut -d '.' -f 1) -lt 3 ]]; then npm i -g npm@^3; fi install: - travis_retry npm install script: - npm run test