From 6f87c437d5224b6097dcc6138e4b0a2a029e25b6 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Sun, 25 May 2014 18:06:37 +1000 Subject: [PATCH] package.json: add support for continuous coverage reporting --- .travis.yml | 1 + package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index e5debe2..9761f00 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,4 +7,5 @@ node_js: env: - TEST_SUITE=unit - TEST_SUITE=integration + - TEST_SUITE=coveralls script: "npm run-script $TEST_SUITE" diff --git a/package.json b/package.json index ebb4a2f..3f89c32 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "test": "npm run-script unit", "integration": "./node_modules/.bin/_mocha --reporter list test/integration/*.js", "coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter list test/*.js", + "coveralls": "npm run-script coverage && node ./node_modules/.bin/coveralls < coverage/lcov.info", "compile": "./node_modules/.bin/browserify ./src/index.js -s Bitcoin | ./node_modules/.bin/uglifyjs > bitcoinjs-min.js" }, "dependencies": {