aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 938b2c08e4aa04dc4ebbf6691d0abb6e2ce93722 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
REPORTER = spec
test:
	$(MAKE) lint
	echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
	@NODE_ENV=test ./node_modules/.bin/mocha -b --require blanket --reporter $(REPORTER)

lint:
	./node_modules/.bin/jshint ./lib ./test ./index.js

test-cov:
	$(MAKE) test REPORTER=spec
	$(MAKE) test REPORTER=html-cov 1> coverage.html

test-coveralls:
	$(MAKE) test REPORTER=spec
	$(MAKE) test REPORTER=mocha-lcov-reporter | ./bin/coveralls.js --verbose
	rm -rf lib-cov

.PHONY: test