forked from SAP/node-hdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (30 loc) · 838 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
35
36
37
38
39
REPORTER = spec
test:
@NODE_ENV=test ./node_modules/.bin/mocha \
-R $(REPORTER) -b --recursive
test-unit:
@NODE_ENV=test ./node_modules/.bin/mocha \
-R $(REPORTER) -b
test-acceptance:
@NODE_ENV=test ./node_modules/.bin/mocha \
-R $(REPORTER) -b test/acceptance/*.js
test-mock:
@HDB_MOCK=1 $(MAKE) -s test
test-lcov:
@NODE_ENV=test ./node_modules/.bin/istanbul cover \
--report lcov \
./node_modules/mocha/bin/_mocha -- \
-R spec -b --recursive
test-coveralls:
@NODE_ENV=test ./node_modules/.bin/istanbul cover \
--report lcovonly \
./node_modules/mocha/bin/_mocha -- \
-R spec -b --recursive \
&& cat ./coverage/lcov.info | node ./bin/coveralls.js \
&& rm -rf ./coverage
clean:
@rm -rf ./coverage \
@rm -f hdb.js
chromify:
@browserify -r buffer -r ./lib:hdb -o ./hdb.js
.PHONY: test clean