We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c0294f commit 50ec4bbCopy full SHA for 50ec4bb
scripts/travis-before-install.sh
@@ -1,5 +1,9 @@
1
#!/usr/bin/env bash
2
3
-npm install --production
4
-# this avoids our mocha.opts (and thus devDependencies) in a roundabout way
5
-./bin/mocha --opts /dev/null --reporter spec test/sanity/sanity.spec.js
+# install [email protected] locally, and try to install production dependencies w/ it.
+[[ ${TRAVIS_NODE_VERSION} =~ 'v0.10' ]] && {
+ npm install npm@~1.4
6
+}
7
+# avoids our mocha.opts (and thus devDependencies) in a roundabout way
8
+./node_modules/.bin/npm install --production && \
9
+ ./bin/mocha --opts /dev/null --reporter spec test/sanity/sanity.spec.js
0 commit comments