Skip to content

Commit 4451733

Browse files
committed
build: improve make test-npm
1 parent 30b7349 commit 4451733

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

Makefile

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -140,17 +140,15 @@ test-debugger: all
140140
test-npm: $(NODE_EXE)
141141
rm -rf npm-cache npm-tmp npm-prefix
142142
mkdir npm-cache npm-tmp npm-prefix
143-
cd deps/npm ; npm_config_cache="$(shell pwd)/npm-cache" \
144-
npm_config_prefix="$(shell pwd)/npm-prefix" \
145-
npm_config_tmp="$(shell pwd)/npm-tmp" \
146-
../../$(NODE_EXE) cli.js install --ignore-scripts
147-
cd deps/npm ; npm_config_cache="$(shell pwd)/npm-cache" \
148-
npm_config_prefix="$(shell pwd)/npm-prefix" \
149-
npm_config_tmp="$(shell pwd)/npm-tmp" \
150-
../../$(NODE_EXE) cli.js run-script test-all && \
151-
../../$(NODE_EXE) cli.js prune --prod && \
152-
cd ../.. && \
153-
rm -rf npm-cache npm-tmp npm-prefix
143+
cd deps/npm ; npm_config_cache="$(CURDIR)/npm-cache" \
144+
npm_config_prefix="$(CURDIR)/npm-prefix" \
145+
npm_config_tmp="$(CURDIR)/npm-tmp" \
146+
../../$(NODE_EXE) cli.js install --ignore-scripts && \
147+
../../$(NODE_EXE) cli.js run-script test-all && \
148+
../../$(NODE_EXE) cli.js prune --prod && \
149+
rm -rf node_modules/.bin && \
150+
cd ../.. && \
151+
rm -rf npm-cache npm-tmp npm-prefix
154152

155153
test-npm-publish: $(NODE_EXE)
156154
npm_package_config_publishtest=true ./$(NODE_EXE) deps/npm/test/run.js

0 commit comments

Comments
 (0)