-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (25 loc) · 856 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
REPORTER = spec
COMPONENT = ./node_modules/.bin/component
build: components index.js
@$(COMPONENT) build --dev -o ./test
components: component.json
@$(COMPONENT) install --dev
test:
@NODE_ENV=test ./node_modules/.bin/mocha --reporter $(REPORTER) \
./test/index.js
test-phantom: build
@./node_modules/.bin/mocha-phantomjs ./test/index.html
test-cov: lib-cov
@FENDJS_ROUTER=1 $(MAKE) test REPORTER=html-cov > ./coverage.html
@rm -rf ./lib-cov
test-coveralls: lib-cov
echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
@FENDJS_ROUTER=1 $(MAKE) test REPORTER=mocha-lcov-reporter | ./node_modules/.bin/coveralls
@rm -rf ./lib-cov
lib-cov: index.js
@./node_modules/.bin/jscoverage ./index.js ./lib-cov/index.js
clean:
@rm -fr build components
@rm -f ./test/build.js
@rm -f ./coverage.html
.PHONY: test test-phantom test-cov test-coveralls lib-cov clean