Travis: codecov

This commit is contained in:
Jeronimo Vallelunga 2017-07-12 23:49:47 -03:00
parent 4e76ef8665
commit b4a075cc7a
4 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,4 @@
{
"testPathIgnorePatterns": ["/src/"]
"testPathIgnorePatterns": ["/src/"],
"collectCoverageFrom": ["build/**/*.js"]
}

View File

@ -25,4 +25,7 @@ deploy:
github_token: $GITHUB_TOKEN
local_dir: example/webapp/build
on:
branch: master
branch: master
after_success:
- npm run test:coverage
- codecov

View File

@ -1,6 +1,7 @@
# Redux Bluetooth
[![Build Status](https://travis-ci.org/jvallelunga/redux-bluetooth.svg?branch=master)](https://travis-ci.org/jvallelunga/redux-bluetooth)
[![codecov](https://codecov.io/gh/jvallelunga/redux-bluetooth/branch/master/graph/badge.svg)](https://codecov.io/gh/jvallelunga/redux-bluetooth)
```shell
$ npm install redux-bluetooth

View File

@ -9,6 +9,7 @@
"prebuild": "npm run eslint",
"build": "babel src -d build",
"test": "jest --config .jest.json",
"test:coverage": "npm test -- --coverage",
"test:watch": "npm test -- --watch",
"prepublish": "npm run build",
"release": "np",