Skip to content

Commit b5d6451

Browse files
committed
ci(codecov): Enforce coverage with Codecov
1 parent 752b68b commit b5d6451

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@ script:
2121
- npm run test
2222

2323
after_success:
24-
- if [ -n "${CODECOV_TOKEN:-}" ]; then npm run codecov; fi
25-
- npm run coverage
24+
- npm run codecov
2625
- npm run semantic-release

package.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,13 @@
7878
"license": "MIT",
7979
"main": "lib/index.js",
8080
"nyc": {
81-
"lines": 100,
82-
"statements": 100,
83-
"functions": 100,
84-
"branches": 100,
8581
"include": [
8682
"lib/**/*.js"
8783
],
8884
"reporter": [
89-
"lcov",
90-
"text"
85+
"json",
86+
"text",
87+
"html"
9188
],
9289
"all": true
9390
},
@@ -112,9 +109,8 @@
112109
"scripts": {
113110
"clean": "rimraf coverage && rimraf .nyc_output",
114111
"cm": "git-cz",
115-
"codecov": "codecov",
112+
"codecov": "codecov -f coverage/coverage-final.json",
116113
"commitmsg": "commitlint -e",
117-
"coverage": "nyc check-coverage",
118114
"lint": "eslint lib test",
119115
"precommit": "npm run lint",
120116
"prepush": "ava -v",

0 commit comments

Comments
 (0)