aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorcainus <[email protected]>2013-04-07 19:57:24 -0700
committercainus <[email protected]>2013-04-07 19:57:37 -0700
commit83ad58daf61975a9edef9f391da2539ee014f1f9 (patch)
treee8a470ec4286d50e2f423f376de1878c48621480 /Makefile
parent3b0c6fdc358ea3899ba4c660bc19db16082a210f (diff)
downloadnode-coveralls-83ad58daf61975a9edef9f391da2539ee014f1f9.tar.xz
node-coveralls-83ad58daf61975a9edef9f391da2539ee014f1f9.zip
added the missing Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3675272
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+REPORTER = spec
+test:
+ echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
+ @NODE_ENV=test ./node_modules/.bin/mocha -b --reporter $(REPORTER)
+
+lib-cov:
+ ./node_modules/jscoverage/bin/jscoverage lib lib-cov
+
+test-cov: lib-cov
+ echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
+ @PERCOLATOR_COVERAGE=1 $(MAKE) test REPORTER=html-cov 1> coverage.html
+ rm -rf lib-cov
+
+.PHONY: test