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 3, 2016
1 parent 4c0294f commit 9d17bca
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scripts/travis-before-install.sh
@@ -1,5 +1,13 @@
#!/usr/bin/env bash

npm install --production
# this avoids our mocha.opts (and thus devDependencies) in a roundabout way
# install npm@1.4 locally, and try to install production dependencies w/ it.
if [[ ${TRAVIS_NODE_VERSION} =~ 'v0.10' ]]
then
npm install npm@~1.4
./node_modules/.bin/npm install --production
else
npm install --production
fi

# avoids our mocha.opts (and thus devDependencies) in a roundabout way
./bin/mocha --opts /dev/null --reporter spec test/sanity/sanity.spec.js

0 comments on commit 9d17bca

Please sign in to comment.