add travis

This commit is contained in:
Sebastian McKenzie
2014-09-29 00:35:25 +10:00
parent 28198df151
commit e3df476b79
2 changed files with 14 additions and 1 deletions

View File

@@ -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