-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 765 Bytes
/
Makefile
File metadata and controls
34 lines (24 loc) · 765 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
28
29
30
31
32
33
34
# Inspired by https://raw.githubusercontent.com/visionmedia/mocha/master/Makefile
REPORTER ?= list
SRC = $(shell find lib -name "*.js" -type f | sort)
clean:
rm -rf coverage
rm -rf docs/lib
cover:
istanbul cover ./node_modules/mocha/bin/_mocha \
--report lcovonly -- --recursive -R spec --compilers js:mocha-traceur && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
doc:
@jsdoc --verbose --destination docs/lib lib/*.js
report:
istanbul cover ./node_modules/mocha/bin/_mocha && \
istanbul report
test: test-unit
test-unit:
@./node_modules/.bin/mocha --recursive \
--reporter $(REPORTER) \
--growl \
--compilers js:mocha-traceur \
test/
all: clean doc test
ci: clean cover
.PHONY: clean cover doc test test-unit