From 006d205c0737448f3f5e5bf0c370e881adb2a8d2 Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Fri, 24 Apr 2015 12:09:30 +0300 Subject: [PATCH] Report coverage separately --- .travis.yml | 2 +- Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index f1174dc..608d7fe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: node_js node_js: - '0.10' -script: make test-ci +after_success: make report-coverage sudo: false diff --git a/Makefile b/Makefile index 04c29b5..0049d3b 100644 --- a/Makefile +++ b/Makefile @@ -60,8 +60,8 @@ coverage: rm -rf coverage istanbul cover node_modules/.bin/_mocha -test-ci: lint - istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage +report-coverage: + -istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage doc: @if test ! `which ndoc` ; then \