Skip to content

Commit 651f1c0

Browse files
committed
upload coverage to codecov
1 parent 801893f commit 651f1c0

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# babel-plugin-transform-react-to-vue
22

3-
[![NPM version](https://img.shields.io/npm/v/babel-plugin-transform-react-to-vue.svg?style=flat)](https://npmjs.com/package/babel-plugin-transform-react-to-vue) [![NPM downloads](https://img.shields.io/npm/dm/babel-plugin-transform-react-to-vue.svg?style=flat)](https://npmjs.com/package/babel-plugin-transform-react-to-vue) [![CircleCI](https://circleci.com/gh/vueact/babel-plugin-transform-react-to-vue/tree/master.svg?style=shield)](https://circleci.com/gh/vueact/babel-plugin-transform-react-to-vue/tree/master) [![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&style=flat)](https://github.com/egoist/donate)
3+
[![NPM version](https://img.shields.io/npm/v/babel-plugin-transform-react-to-vue.svg?style=flat)](https://npmjs.com/package/babel-plugin-transform-react-to-vue) [![NPM downloads](https://img.shields.io/npm/dm/babel-plugin-transform-react-to-vue.svg?style=flat)](https://npmjs.com/package/babel-plugin-transform-react-to-vue) [![CircleCI](https://circleci.com/gh/vueact/babel-plugin-transform-react-to-vue/tree/master.svg?style=shield)](https://circleci.com/gh/vueact/babel-plugin-transform-react-to-vue/tree/master) [![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&style=flat)](https://github.com/egoist/donate) [![codecov](https://codecov.io/gh/vueact/babel-plugin-transform-react-to-vue/branch/master/graph/badge.svg)](https://codecov.io/gh/vueact/babel-plugin-transform-react-to-vue)
44

55
## Install
66

circle.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ jobs:
2121
- ./node_modules
2222
- run:
2323
name: test
24-
command: yarn test
24+
command: yarn test:cov
25+
- run:
26+
name: upload coverage
27+
command: bash <(curl -s https://codecov.io/bash)

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"index.js"
1212
],
1313
"scripts": {
14-
"test": "ava && npm run lint",
14+
"test": "npm run lint && ava",
15+
"test:cov": "npm run lint && npm run cov",
1516
"lint": "xo",
1617
"cov": "nyc --reporter=lcov ava"
1718
},

0 commit comments

Comments
 (0)