From dd2dd07486432317f10f32b454f6cecbc88b9125 Mon Sep 17 00:00:00 2001 From: Jeff Escalante Date: Mon, 16 May 2016 14:27:27 -0400 Subject: [PATCH] attempt to fix coverage reporting --- .travis.yml | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e2a04c1..1da81dc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ before_script: - git config --global user.email "dev@carrotcreative.com" - git config --global user.name "Carrot Creative" after_script: - - istanbul cover _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage + - npm run coveralls diff --git a/package.json b/package.json index b6b5e8a..79cf484 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ }, "scripts": { "coverage": "istanbul cover _mocha --report html -- -R spec", + "coveralls": "istanbul cover _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage", "lint": "standard --verbose | snazzy", "precommit": "npm run lint -s", "pretest": "npm run lint -s",