koa-lite/Makefile
Rui Marinho 6d5f506c99 Re-enable io.js support on .travis.yml
On the 3rd of February, the planned roll out on Travis was reverted
and is now rescheduled for a later date. This commit re-enables io.js
support on Travis due the original one being reverted.
2015-02-05 23:57:06 -08:00

49 lines
818 B
Makefile

SRC = lib/*.js
include node_modules/make-lint/index.mk
BIN = iojs
ifeq ($(findstring io.js, $(shell which node)),)
BIN = node
endif
ifeq (node, $(BIN))
FLAGS = --harmony-generators
endif
TESTS = test/application \
test/context/* \
test/request/* \
test/response/*
test:
@NODE_ENV=test $(BIN) $(FLAGS) \
./node_modules/.bin/_mocha \
--require should \
$(TESTS) \
--bail
test-cov:
@NODE_ENV=test $(BIN) $(FLAGS) \
./node_modules/.bin/istanbul cover \
./node_modules/.bin/_mocha \
-- -u exports \
--require should \
$(TESTS) \
--bail
test-travis:
@NODE_ENV=test $(BIN) $(FLAGS) \
./node_modules/.bin/istanbul cover \
./node_modules/.bin/_mocha \
--report lcovonly \
-- -u exports \
--require should \
$(TESTS) \
--bail
bench:
@$(MAKE) -C benchmarks
.PHONY: test bench