From b166c3c61cb7aa15cdbcb98c088a23df2c900fe2 Mon Sep 17 00:00:00 2001 From: Jeff Escalante Date: Thu, 17 Jul 2014 10:11:13 -0400 Subject: [PATCH] add coveralls script --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f9df716..a688064 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "chai-as-promised": "4.x", "coffee-script": "1.7.x", "coffeelint": "*", + "coveralls": "2.x", "istanbul": "*", "lodash": "2.x", "mocha": "*", @@ -22,7 +23,8 @@ "scripts": { "test": "npm run lint && mocha", "lint": "find lib/ -name '*.coffee' | xargs coffeelint", - "coverage": "make build; istanbul cover _mocha --report html -- -R spec && open coverage/index.html && make unbuild" + "coverage": "make build; istanbul cover _mocha --report html -- -R spec && open coverage/index.html && make unbuild", + "coveralls": "make build; istanbul cover _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage; make unbuild" }, "engines": { "node": ">=0.10.0"