Permalink
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (33 sloc) 1.58 KB
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