-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 748 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 748 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
REPORTER = spec
COMPONENT = ./node_modules/.bin/component
build: components index.js
@$(COMPONENT) build --dev -o ./test
build-cov: components index.js
@$(COMPONENT) build --dev --use component-jscoverage -o ./test
components: component.json
@$(COMPONENT) install --dev
test: build
@./node_modules/.bin/mocha-phantomjs ./test/index.html
test-cov: build-cov
@./node_modules/.bin/mocha-phantomjs -R json-cov ./test/index.html > coverage.json
test-coveralls: build-cov
echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
./node_modules/.bin/mocha-phantomjs -R json-cov | ./node_modules/.bin/json2lcov | ./node_modules/.bin/coveralls
clean:
@rm -fr ./build ./components
@rm -f ./coverage.json
@rm -f ./test/build.js
.PHONY: clean test test-coveralls