sudo: false language: node_js notifications: email: false node_js: - 'stable' - '6' - '4' before_install: # detect if the current build's node version is < 6 # if yes, use npm@^3.0.0 # if not, use the version that came with node - if [[ `node -v | sed 's/[^0-9\.]//g'` < 6 ]]; then npm i -g npm@^3.0.0; fi before_script: - npm prune script: - npm run validate after_success: - 'curl -Lo travis_after_all.py https://git.io/travis_after_all' - python travis_after_all.py - 'export $(cat .to_export_back) &> /dev/null' - npm run report-coverage branches: only: - master