Skip to content

Commit 58e406a

Browse files
Jed Maojedmao
Jed Mao
authored andcommitted
Use lcov report for codecov
1 parent 8e2b85b commit 58e406a

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ node_js:
66

77
after_success:
88
- npm install codecov
9-
- npm run codecov:report
9+
- npm run codecov
1010

1111
notifications:
1212
email:

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![npm license](http://img.shields.io/npm/l/postcss-nested-props.svg?style=flat-square)](https://www.npmjs.org/package/postcss-nested-props)
99
[![Travis Build Status](https://img.shields.io/travis/jedmao/postcss-nested-props.svg?label=unix)](https://travis-ci.org/jedmao/postcss-nested-props)
1010
[![AppVeyor Build Status](https://img.shields.io/appveyor/ci/jedmao/postcss-nested-props.svg?label=windows)](https://ci.appveyor.com/project/jedmao/postcss-nested-props)
11-
[![coverage](https://codecov.io/gh/jedmao/postcss-nested-props/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/postcss-nested-props)
11+
[![codecov](https://codecov.io/gh/jedmao/postcss-nested-props/branch/master/graph/badge.svg)](https://codecov.io/gh/jedmao/postcss-nested-props)
1212

1313
[![npm](https://nodei.co/npm/postcss-nested-props.svg?downloads=true)](https://nodei.co/npm/postcss-nested-props/)
1414

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"types": "dist/lib/plugin.d.ts",
77
"scripts": {
88
"clean": "rimraf coverage dist *.log",
9-
"codecov": "codecov -f coverage/*.json",
10-
"codecov:report": "nyc report --reporter=json && npm run codecov",
9+
"codecov": "codecov -f coverage/lcov.info",
1110
"compile": "tsc",
1211
"compile:watch": "tsc --watch",
1312
"prepublish": "npm test",
@@ -35,6 +34,10 @@
3534
"exclude": [
3635
"dist/**/*.spec.js"
3736
],
37+
"reporter": [
38+
"lcov",
39+
"text"
40+
],
3841
"cache": true,
3942
"all": true,
4043
"check-coverage": true

0 commit comments

Comments
 (0)