From 82dc8a9c904886276a2c41c3e35242dc127a006a Mon Sep 17 00:00:00 2001 From: Pierre-Denis Vanduynslager Date: Mon, 25 Sep 2017 22:34:19 -0400 Subject: [PATCH] ci(codecov): Enforce coverage with Codecov --- .travis.yml | 3 +-- package.json | 12 ++++-------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index b6c64294..c51f4a40 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,6 +21,5 @@ script: - npm run test after_success: - - if [ -n "${CODECOV_TOKEN:-}" ]; then npm run codecov; fi - - npm run coverage + - npm run codecov - npm run semantic-release diff --git a/package.json b/package.json index 6e0c8d12..e93b2891 100644 --- a/package.json +++ b/package.json @@ -78,16 +78,13 @@ "license": "MIT", "main": "lib/index.js", "nyc": { - "lines": 100, - "statements": 100, - "functions": 100, - "branches": 100, "include": [ "lib/**/*.js" ], "reporter": [ - "lcov", - "text" + "json", + "text", + "html" ], "all": true }, @@ -112,9 +109,8 @@ "scripts": { "clean": "rimraf coverage && rimraf .nyc_output", "cm": "git-cz", - "codecov": "codecov", + "codecov": "codecov -f coverage/coverage-final.json", "commitmsg": "commitlint -e", - "coverage": "nyc check-coverage", "lint": "eslint lib test", "precommit": "npm run lint", "prepush": "ava -v",