18 env: "NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly"
20 env: "NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly"
22 # Allow the nightly installs to fail
23 - env: "NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly"
31 # Skip updating shrinkwrap / lock
32 npm config set shrinkwrap false
33 # Remove all non-test dependencies
35 # Remove example dependencies
36 npm rm --silent --save-dev connect-redis
37 # Setup Node.js version-specific dependencies
40 # - use 3.x for Node.js < 6
41 if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then
42 npm install --silent --save-dev mocha@3.5.3
45 # supertest for http calls
46 # - use 2.0.0 for Node.js < 4
47 if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 4 ]]; then
48 npm install --silent --save-dev supertest@2.0.0
50 # Update Node.js modules
52 # Prune and rebuild node_modules
53 if [[ -d node_modules ]]; then
64 # Upload coverage to coveralls
65 npm install --save-dev coveralls@2.12.0
66 coveralls < ./coverage/lcov.info