Skip to content

Commit 6cf1964

Browse files
committed
chore(test): codecov
Installed codecov
1 parent a59e9ea commit 6cf1964

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ script:
2222
after_success:
2323
- python travis_after_all.py
2424
- export $(cat .to_export_back)
25+
- npm run report-coverage
2526
- npm run semantic-release
2627
branches:
2728
except:

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"description": "Git commit, but play nice with conventions.",
55
"main": "src/index.js",
66
"scripts": {
7+
"check-coverage": "istanbul check-coverage --statements 80 --branches 80 --functions 80 --lines 80 ",
8+
"commit": "git-cz",
9+
"report-coverage": "cat ./coverage/lcov.info | codecov",
710
"start": "npm run test:watch",
811
"test": "istanbul cover -x ./test _mocha -- -R spec test/tests/index.js --compilers js:babel/register",
9-
"test:watch": "nodemon -q --exec \"$(npm bin)/mocha test/tests/index.js --watch --compilers js:babel/register\" --",
10-
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
11-
"commit": "git-cz",
12-
"check-coverage": "istanbul check-coverage --statements 80 --branches 80 --functions 80 --lines 80 "
12+
"test:watch": "nodemon -q --exec \"$(npm bin)/mocha test/tests/index.js --watch --compilers js:babel/register\" --"
1313
},
1414
"czConfig": {
1515
"path": "./node_modules/cz-conventional-changelog"
@@ -42,6 +42,7 @@
4242
"license": "MIT",
4343
"devDependencies": {
4444
"chai": "3.3.0",
45+
"codecov.io": "0.1.6",
4546
"ghooks": "0.3.2",
4647
"istanbul": "0.3.22",
4748
"lodash": "3.10.1",

0 commit comments

Comments
 (0)