-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (23 loc) · 842 Bytes
/
Makefile
File metadata and controls
27 lines (23 loc) · 842 Bytes
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
REPORTER = spec
test: lint
@TZ=UTC NODE_ENV=test ./node_modules/.bin/mocha -r should -b --reporter $(REPORTER)
lint:
./node_modules/.bin/jshint ./lib ./test ./c-base-pos.js
test-cov-html: test
@TZ=UTC NODE_ENV=test ./node_modules/.bin/mocha \
--require blanket \
--require should \
--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: test
@echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
@TZ=UTC NODE_ENV=test ./node_modules/.bin/mocha \
--require blanket \
--require should \
--reporter mocha-lcov-reporter > lcov.info
@ ./node_modules/coveralls/bin/coveralls.js < lcov.info
@ ./node_modules/.bin/codacy-coverage < lcov.info
@ ./node_modules/.bin/codeclimate-test-reporter < lcov.info
.PHONY: test