add travis
This commit is contained in:
7
Makefile
7
Makefile
@@ -1,3 +1,4 @@
|
||||
ISTANBUL_CMD = node_modules/istanbul/lib/cli.js
|
||||
MOCHA_CMD = node_modules/mocha/bin/_mocha
|
||||
|
||||
export NODE_ENV = test
|
||||
@@ -12,7 +13,11 @@ test:
|
||||
|
||||
test-cov:
|
||||
make clean
|
||||
node node_modules/istanbul/lib/cli.js cover $(MOCHA_CMD) --
|
||||
node $(ISTANBUL_CMD) cover $(MOCHA_CMD) --
|
||||
|
||||
test-travis:
|
||||
node $(ISTANBUL_CMD) $(MOCHA_CMD) --report lcovonly -- --reporter spec
|
||||
cat ./coverage/lcov.info | codeclimate
|
||||
|
||||
publish:
|
||||
make clean
|
||||
|
||||
Reference in New Issue
Block a user