-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (23 loc) · 823 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
REPORTER = spec
test: lint
@TZ=UTC NODE_ENV=test ./node_modules/.bin/mocha -b --reporter $(REPORTER)
lint:
./node_modules/.bin/jshint ./lib ./test ./app.js
test-cov: test
@TZ=UTC NODE_ENV=test ./node_modules/.bin/mocha \
--require blanket \
--reporter html-cov > coverage.html.new \
&& cat coverage.html.new > coverage.html \
&& rm coverage.html.new
@# avoiding an empty (hardlinked) coverage file between runs
test-cov-coveralls: test
@echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
@TZ=UTC NODE_ENV=test ./node_modules/.bin/mocha \
--require blanket \
--reporter mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js
test-cov-travis: test-cov-coveralls
@echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
@TZ=UTC NODE_ENV=test ./node_modules/.bin/mocha \
--require blanket \
--reporter travis-cov
.PHONY: test