From a7f5d99d4896075f1042be3472295e5b0c05a0cf Mon Sep 17 00:00:00 2001 From: Matias Singers Date: Tue, 2 Jun 2015 16:20:08 +0800 Subject: [PATCH] Cleaner coverage reports with package.json coverage script --- .travis.yml | 7 +++++-- package.json | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 04032ef..ae902d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,11 @@ +sudo: false language: node_js node_js: + - 'iojs' - '0.12' - '0.10' - - 'iojs' + +script: 'npm run coverage' after_success: - - istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage + - cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage diff --git a/package.json b/package.json index 1845d74..7b24b92 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "extract metadata and provisioning information about an .ipa file", "main": "index.js", "scripts": { - "test": "mocha" + "test": "mocha", + "coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec" }, "engines": { "node": ">=0.10.0"