-
Notifications
You must be signed in to change notification settings - Fork 56
/
Makefile.win
46 lines (33 loc) · 1.58 KB
/
Makefile.win
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
43
44
45
46
ifdef GREP
GREPARG = -g $(GREP)
endif
REPORTER ?= spec
TESTS = test
NPM_BIN = .\node_modules\.bin
_MOCHA = node_modules\mocha\bin\_mocha.cmd
UNIT_TESTS = .\test\unit
QPID_INTEGRATION_TESTS = .\test\integration\qpid
SERVICEBUS_INTEGRATION_TESTS = .\test\integration\servicebus
TIMEOUT = 30000
jshint:
$(NPM_BIN)\jshint.cmd lib test tools examples
fixjsstyle:
fixjsstyle -r lib -r test --strict --jslint_error=all
coverage: jshint
$(NPM_BIN)\istanbul.cmd cover $(_MOCHA) --report lcovonly -- --recursive -t 10000 --ui tdd $(TESTS)
coverage-report: jshint
$(NPM_BIN)\istanbul.cmd cover $(_MOCHA) -- -t 10000 --ui tdd $(TESTS)
codeclimate-send:
CODECLIMATE_REPO_TOKEN=2612b6d4b7bed06760320154f22eba4e348e53055c0eaf9a9a00e3b05ef3b37d codeclimate < coverage\lcov.info
test-unit: jshint
$(NPM_BIN)\mocha.cmd --globals setImmediate,clearImmediate --recursive --check-leaks --colors -t $(TIMEOUT) --reporter $(REPORTER) $(UNIT_TESTS) $(GREPARG)
test-qpid: jshint
$(NPM_BIN)\mocha.cmd --globals setImmediate,clearImmediate --recursive --check-leaks --colors -t $(TIMEOUT) --reporter $(REPORTER) $(QPID_INTEGRATION_TESTS) $(GREPARG)
test-servicebus: jshint
$(NPM_BIN)\mocha.cmd --recursive --globals setImmediate,clearImmediate --recursive --check-leaks --colors -t $(TIMEOUT) --reporter $(REPORTER) $(SERVICEBUS_INTEGRATION_TESTS) $(GREPARG)
test: test-unit test-qpid test-servicebus
changelog:
${NPM_BIN}/conventional-changelog -p angular -i CHANGELOG.md -s
apidoc: jshint
$(NPM_BIN)\jsdoc2md.cmd --src lib/**/*.js > api\README.md
.PHONY: jshint fixjsstyle coverage codeclimate-send test changelog apidoc