Skip to content

Commit

Permalink
test: more thorough tests for npm
Browse files Browse the repository at this point in the history
  • Loading branch information
othiym23 authored and tjfontaine committed Nov 5, 2014
1 parent 3589a62 commit 272aa58
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,19 @@ test-debugger: all
$(PYTHON) tools/test.py debugger

test-npm: node
./node deps/npm/test/run.js
rm -rf npm-cache npm-tmp npm-prefix
mkdir npm-cache npm-tmp npm-prefix
cd deps/npm ; npm_config_cache="$(shell pwd)/npm-cache" \
npm_config_prefix="$(shell pwd)/npm-prefix" \
npm_config_tmp="$(shell pwd)/npm-tmp" \
../../node cli.js install
cd deps/npm ; npm_config_cache="$(shell pwd)/npm-cache" \
npm_config_prefix="$(shell pwd)/npm-prefix" \
npm_config_tmp="$(shell pwd)/npm-tmp" \
../../node cli.js run-script test-all && \
../../node cli.js prune --prod && \
cd ../.. && \
rm -rf npm-cache npm-tmp npm-prefix

test-npm-publish: node
npm_package_config_publishtest=true ./node deps/npm/test/run.js
Expand Down

0 comments on commit 272aa58

Please sign in to comment.