summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSimon Brewster <ssbrewster@gmail.com>2017-09-05 11:40:27 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2017-09-08 00:26:19 -0300
commit9168b8cf4725069d52beea96c1d8a8f698f0def1 (patch)
tree0dac2c5ee4fcd02bf066e3e24188e405322b1556 /Makefile
parent703a3b53884a2751e1b881b388e7a6e66c1f9aff (diff)
downloadnode-new-9168b8cf4725069d52beea96c1d8a8f698f0def1.tar.gz
test: use no-save and no-package-lock flags
Use these flags when running make coverage so that a package-lock.json file is not generated and npm does not attempt to save the deps to a non-existent package.json file. PR-URL: https://github.com/nodejs/node/pull/15196 Refs: https://github.com/nodejs/node/pull/15190/files#r136932786 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 547d93dc15..7087fc655e 100644
--- a/Makefile
+++ b/Makefile
@@ -139,8 +139,9 @@ coverage: coverage-test
coverage-build: all
mkdir -p node_modules
if [ ! -d node_modules/istanbul-merge ]; then \
- $(NODE) ./deps/npm install istanbul-merge; fi
- if [ ! -d node_modules/nyc ]; then $(NODE) ./deps/npm install nyc; fi
+ $(NODE) ./deps/npm install istanbul-merge --no-save --no-package-lock; fi
+ if [ ! -d node_modules/nyc ]; then \
+ $(NODE) ./deps/npm install nyc --no-save --no-package-lock; fi
if [ ! -d gcovr ]; then git clone --depth=1 \
--single-branch git://github.com/gcovr/gcovr.git; fi
if [ ! -d testing ]; then git clone --depth=1 \