From 7cee3c732dd7e4982ff9d6ef616cf19a5d2e3518 Mon Sep 17 00:00:00 2001 From: Kanstantsin Kamkou Date: Wed, 2 May 2018 16:20:52 +0200 Subject: [PATCH] code coverage is optional for old versions --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 289cbc8..4140d12 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ }, "license": "MIT", "scripts": { - "test": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" + "test": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec; ([ `node -v | cut -d'v' -f2 | cut -d. -f1` -gt 3 ] && (cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage) || true)" }, "dependencies": { "async": "2.6.0",