aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: b818d8bb47bae9e505c74f9009750fa2df2de52b (plain)
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
BASE = .

ISTANBUL = ./node_modules/.bin/istanbul
TEST_COMMAND = NODE_ENV=test ./node_modules/.bin/mocha
COVERAGE_OPTS = --lines 95 --statements 90 --branches 80 --functions 90
BUSTER = ./node_modules/.bin/buster test

main: lint test

build:
	cd BUILD && node BUILD.js

cover:
	$(ISTANBUL) cover test/run.js --root ./lib -- -T unit,functional

check-coverage:
	$(ISTANBUL) check-coverage $(COVERAGE_OPTS)

test: cover check-coverage

test-cov: cover check-coverage
	open coverage/lcov-report/index.html

lint:
	./node_modules/jshint/bin/hint ./lib --config $(BASE)/.jshintrc


.PHONY: test, build