[Pkg-javascript-commits] [node-coveralls] 108/332: Makefile gardening to allow for faster, cleaner running of test-cov etc.

Bastien Roucariès rouca at moszumanska.debian.org
Thu Nov 9 13:53:46 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-coveralls.

commit 5fba035487b73bb016b9e79df6a04643c92109d0
Author: Christophe Porteneuve <tdd at tddsworld.com>
Date:   Thu Nov 14 20:33:45 2013 +0100

    Makefile gardening to allow for faster, cleaner running of test-cov etc.
---
 Makefile | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 938b2c0..6d761a3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,10 @@
 REPORTER = spec
 test:
-	$(MAKE) lint
-	echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
+	@$(MAKE) lint
+	@echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
+	@$(MAKE) core_test
+
+core_test:
 	@NODE_ENV=test ./node_modules/.bin/mocha -b --require blanket --reporter $(REPORTER)
 
 lint:
@@ -9,11 +12,11 @@ lint:
 
 test-cov:
 	$(MAKE) test REPORTER=spec
-	$(MAKE) test REPORTER=html-cov 1> coverage.html
+	$(MAKE) core_test REPORTER=html-cov > coverage.html
 
 test-coveralls:
 	$(MAKE) test REPORTER=spec
-	$(MAKE) test REPORTER=mocha-lcov-reporter | ./bin/coveralls.js --verbose
+	$(MAKE) core_test REPORTER=mocha-lcov-reporter | ./bin/coveralls.js --verbose
 	rm -rf lib-cov
 
 .PHONY: test

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-coveralls.git



More information about the Pkg-javascript-commits mailing list