2e8cdab8bc
closes #530 closes #415
42 lines
700 B
Makefile
42 lines
700 B
Makefile
SRC = lib/*.js
|
|
|
|
REQUIRED = --require should --require should-http
|
|
|
|
TESTS = test/application/* \
|
|
test/context/* \
|
|
test/request/* \
|
|
test/response/*
|
|
|
|
lint:
|
|
@./node_modules/.bin/eslint lib test
|
|
|
|
test:
|
|
@NODE_ENV=test node \
|
|
./node_modules/.bin/_mocha \
|
|
$(REQUIRED) \
|
|
$(TESTS) \
|
|
--bail
|
|
|
|
test-cov:
|
|
@NODE_ENV=test node \
|
|
./node_modules/.bin/istanbul cover \
|
|
./node_modules/.bin/_mocha \
|
|
-- -u exports \
|
|
$(REQUIRED) \
|
|
$(TESTS) \
|
|
--bail
|
|
|
|
test-travis: lint
|
|
@NODE_ENV=test node \
|
|
./node_modules/.bin/istanbul cover \
|
|
./node_modules/.bin/_mocha \
|
|
--report lcovonly \
|
|
-- -u exports \
|
|
$(REQUIRED) \
|
|
$(TESTS) \
|
|
--bail
|
|
|
|
bench:
|
|
@$(MAKE) -C benchmarks
|
|
|
|
.PHONY: lint test bench
|