Skip to content

Commit 4168404

Browse files
GabLeRouxemileber
authored andcommitted
add codecov integration
1 parent 6c56b18 commit 4168404

File tree

4 files changed

+132
-12
lines changed

4 files changed

+132
-12
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ install:
99
- npm ci
1010
before_script:
1111
- npm run build:dev
12+
script:
13+
- npm run test:codecov
1214
cache:
1315
directories:
1416
- "$HOME/.npm"

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
[![Build Status](https://travis-ci.org/emileber/axios-middleware.svg?branch=master)](https://travis-ci.org/emileber/axios-middleware)
44
[![npm version](https://badge.fury.io/js/axios-middleware.svg)](https://www.npmjs.com/package/axios-middleware)
5+
[![codecov](https://codecov.io/gh/emileber/axios-middleware/branch/master/graph/badge.svg)](https://codecov.io/gh/emileber/axios-middleware)
6+
57

68
Simple [axios](https://github.com/axios/axios) HTTP middleware service.
79

package-lock.json

Lines changed: 126 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"test": "npm run lint && npm run test:unit",
2424
"test:unit": "npm run build:dev && jest --config test/jest.conf.js",
2525
"test:coverage": "npm run test:unit -- --coverage",
26+
"test:codecov": "npm run test:coverage && codecov",
2627
"lint": "eslint src test build",
2728
"docs": "docsify serve ./docs"
2829
},
@@ -48,6 +49,7 @@
4849
"axios": "^0.17.1",
4950
"axios-mock-adapter": "^1.15.0",
5051
"babel-preset-env": "^1.7.0",
52+
"codecov": "^3.2.0",
5153
"cross-env": "^5.1.6",
5254
"docsify-cli": "^4.2.1",
5355
"eslint": "^4.19.1",

0 commit comments

Comments
 (0)