forked from agenda/agenda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (15 loc) · 605 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
MOCHA_PATH=node_modules/mocha/bin/mocha
test:
NODE_ENV=test $(MOCHA_PATH) -w --reporter spec
test-debug:
NODE_ENV=test $(MOCHA_PATH) -w --reporter spec debug
test-once:
NODE_ENV=test $(MOCHA_PATH) --reporter spec --timeout 8000
test-coverage:
NODE_ENV=test AGENDA_COVERAGE=1 $(MOCHA_PATH) test --require blanket --reporter html-cov > coverage.html
test-coveralls:
NODE_ENV=test AGENDA_COVERAGE=1 $(MOCHA_PATH) test --require blanket --reporter mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js
install:
@npm i
build: install test-once
.PHONY: test test-coverage test-coveralls