forked from JMPerez/passport-spotify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (25 loc) · 901 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
29
30
31
32
33
34
35
# ==============================================================================
# Node Tests
# ==============================================================================
REPORTER = spec
test:
@NODE_ENV=test NODE_PATH=lib ./node_modules/.bin/mocha \
--reporter $(REPORTER)
coverage:
@NODE_ENV=test NODE_PATH=lib ./node_modules/.bin/mocha \
--require blanket \
--reporter html-cov > ./test/coverage.html
coveralls:
$(MAKE) test
@NODE_ENV=test NODE_PATH=lib ./node_modules/.bin/mocha \
--require blanket \
--reporter mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js
# ==============================================================================
# Static Analysis
# ==============================================================================
JSHINT = jshint
SOURCES = lib/passport-spotify
hint: lint
lint:
$(JSHINT) $(SOURCES)
.PHONY: test hint lint nyan