Skip to content
Permalink
Browse files

build: minor improvement to coverage-build

Do not install tests etc. when installing `nyc` for code coverage
reporting. (In other words, use the `--production` flag with `npm`.)
  • Loading branch information...
Trott committed Jun 15, 2018
1 parent dcad7c9 commit 7551de1fc2fbf24e3b9848e76e317adcee9c2856
Showing with 1 addition and 1 deletion.
  1. +1 −1 Makefile
@@ -165,7 +165,7 @@ coverage: coverage-test ## Run the tests and generate a coverage report.
coverage-build: all
mkdir -p node_modules
if [ ! -d node_modules/nyc ]; then \
$(NODE) ./deps/npm install nyc --no-save --no-package-lock; fi
$(NODE) ./deps/npm install nyc --no-save --no-package-lock --production; fi
if [ ! -d gcovr ]; then git clone -b 3.4 --depth=1 \
--single-branch git://github.com/gcovr/gcovr.git; fi
if [ ! -d build ]; then git clone --depth=1 \

0 comments on commit 7551de1

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.