-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 808 Bytes
/
Makefile
File metadata and controls
34 lines (25 loc) · 808 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
TESTS = test/*.test.js
REPORTER = dot
browser: node_modules lib/* components
@./node_modules/.bin/component-build -s inherits -o .
@mv build.js super.js
components: node_modules component.json
@./node_modules/.bin/component-install --dev
build: components lib/*
@./node_modules/.bin/component-build --dev
test: test-node test-browser
test-node:
@NODE_ENV=test ./node_modules/.bin/mocha \
--require test/bootstrap/node \
--reporter $(REPORTER) \
$(TESTS)
test-browser: build
@./node_modules/karma/bin/karma start \
--single-run --browsers PhantomJS,Chrome,Firefox
test-travisci:
@echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
@make test-node
coverage:
@./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha test/*.test.js \
-- --require test/bootstrap/node
.PHONY: all test coverage