Skip to content

Commit

Permalink
tools: update npm test tooling for 3.3.10+
Browse files Browse the repository at this point in the history
PR-URL: #3599
Reviewed-By: Jeremiah Senkpiel <[email protected]>
  • Loading branch information
iarna authored and rvagg committed Nov 6, 2015
1 parent 5667369 commit e40d282
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tools/test-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@ export npm_config_tmp="$(pwd)/npm-tmp"

# ensure npm always uses the local node
export PATH="$(../$NODE -p 'require("path").resolve("..")'):$PATH"
unset NODE

# make sure the binaries from the non-dev-deps are available
node cli.js rebuild
# install npm devDependencies and run npm's tests
../$NODE cli.js install --ignore-scripts
../$NODE test/run.js
../$NODE cli.js run-script tap -- "test/tap/*.js"
node cli.js install --ignore-scripts
# run the tests
node cli.js run-script test-node

# clean up everything one single shot
cd .. && rm -rf test-npm

0 comments on commit e40d282

Please sign in to comment.