Skip to content

Commit

Permalink
sanity test uses npm 1.4.x (experimental)
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Dec 2, 2016
1 parent 4c0294f commit 6b4d566
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/travis-before-install.sh
@@ -1,5 +1,7 @@
#!/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.
# avoids our mocha.opts (and thus devDependencies) in a roundabout way
npm install npm@~1.4 && \
./node_modules/.bin/npm install --production && \
./bin/mocha --opts /dev/null --reporter spec test/sanity/sanity.spec.js

0 comments on commit 6b4d566

Please sign in to comment.