forked from paixaop/node-sodium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·42 lines (33 loc) · 893 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
40
41
42
MOCHA_OPTS= --check-leaks
REPORTER = tap
BINDIR = ./node_modules/.bin
sodium:
$(BINDIR)/node-gyp rebuild
test: test-unit
test-unit:
@NODE_ENV=test $(BINDIR)/mocha \
--reporter $(REPORTER) \
--globals setImmediate,clearImmediate
instrument: clean
$(BINDIR)/istanbul instrument --output lib-cov --no-compact --variable global.__coverage__ lib
test-cov: clean instrument
@echo Run make test for simple tests with no coverage reports
@COVERAGE=1 NODE_ENV=test $(BINDIR)/mocha \
-R mocha-istanbul \
--globals setImmediate,clearImmediate
@$(BINDIR)/istanbul report
@rm -rf lib-cov
@echo
@echo Open html-report/index.html file in your browser
git-pull:
git pull
git submodule init
git submodule update
git submodule status
clean:
-rm -fr lib-cov
-rm -fr covershot
-rm -fr html-report
-rm -fr coverage
-rm -fr coverage.html
.PHONY: test-cov site docs test docclean