strapi/Makefile

33 lines
537 B
Makefile
Raw Normal View History

2015-10-01 00:30:16 +02:00
SRC = lib/*.js
REQUIRED = --require should --require should-http
TESTS = test/application/* \
test/context/* \
test/request/* \
test/response/* \
2015-10-16 15:47:17 +02:00
test/middlewares/* \
test/experimental/index.js
2015-10-01 00:30:16 +02:00
test:
2015-10-16 15:47:17 +02:00
@NODE_ENV=test node \
2015-10-01 00:30:16 +02:00
./node_modules/.bin/_mocha \
$(REQUIRED) \
$(TESTS) \
--bail
2015-10-22 14:59:57 +02:00
test-travis:
2015-10-16 15:47:17 +02:00
@NODE_ENV=test node \
2015-10-01 00:30:16 +02:00
./node_modules/.bin/istanbul cover \
./node_modules/.bin/_mocha \
--report lcovonly \
-- -u exports \
$(REQUIRED) \
$(TESTS) \
--bail
bench:
@$(MAKE) -C benchmarks
2015-10-22 14:59:57 +02:00
.PHONY: test bench