Skip to content

Commit 50ec4bb

Browse files
committed
sanity test uses npm v1.4.x under Node.js v0.10 (experimental)
1 parent 4c0294f commit 50ec4bb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

scripts/travis-before-install.sh

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/usr/bin/env bash
22

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
3+
# install [email protected] locally, and try to install production dependencies w/ it.
4+
[[ ${TRAVIS_NODE_VERSION} =~ 'v0.10' ]] && {
5+
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

Comments
 (0)