Skip to content

Commit

Permalink
sanity test uses npm v1.4.x under Node.js v0.10 (experimental)
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Dec 2, 2016
1 parent 4c0294f commit 50ec4bb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/travis-before-install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

npm install --production
# this avoids our mocha.opts (and thus devDependencies) in a roundabout way
./bin/mocha --opts /dev/null --reporter spec test/sanity/sanity.spec.js
# install npm@1.4 locally, and try to install production dependencies w/ it.
[[ ${TRAVIS_NODE_VERSION} =~ 'v0.10' ]] && {
npm install npm@~1.4
}
# avoids our mocha.opts (and thus devDependencies) in a roundabout way
./node_modules/.bin/npm install --production && \
./bin/mocha --opts /dev/null --reporter spec test/sanity/sanity.spec.js

0 comments on commit 50ec4bb

Please sign in to comment.