Browse Source

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>
canary-base
Simon Brewster 7 years ago
committed by Ruben Bridgewater
parent
commit
9168b8cf47
No known key found for this signature in database GPG Key ID: F07496B3EB3C1762
  1. 5
      Makefile

5
Makefile

@ -139,8 +139,9 @@ coverage: coverage-test
coverage-build: all coverage-build: all
mkdir -p node_modules mkdir -p node_modules
if [ ! -d node_modules/istanbul-merge ]; then \ if [ ! -d node_modules/istanbul-merge ]; then \
$(NODE) ./deps/npm install istanbul-merge; fi $(NODE) ./deps/npm install istanbul-merge --no-save --no-package-lock; fi
if [ ! -d node_modules/nyc ]; then $(NODE) ./deps/npm install nyc; 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 \ if [ ! -d gcovr ]; then git clone --depth=1 \
--single-branch git://github.com/gcovr/gcovr.git; fi --single-branch git://github.com/gcovr/gcovr.git; fi
if [ ! -d testing ]; then git clone --depth=1 \ if [ ! -d testing ]; then git clone --depth=1 \

Loading…
Cancel
Save