Skip to content

Commit 4660a4a

Browse files
committed
Chore: switch to codecov
1 parent 1707035 commit 4660a4a

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ node_js:
88
before_script:
99
- "node bin/index.js '^0.10.0' npm install spawn-sync"
1010
after_success:
11-
- npm run coveralls
11+
- npm run codecov

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![npm version](https://img.shields.io/npm/v/if-node-version.svg)](https://www.npmjs.com/package/if-node-version)
44
[![Downloads/month](https://img.shields.io/npm/dm/if-node-version.svg)](http://www.npmtrends.com/if-node-version)
55
[![Build Status](https://travis-ci.org/mysticatea/if-node-version.svg?branch=master)](https://travis-ci.org/mysticatea/if-node-version)
6-
[![Coverage Status](https://coveralls.io/repos/mysticatea/if-node-version/badge.svg?branch=master&service=github)](https://coveralls.io/github/mysticatea/if-node-version?branch=master)
6+
[![Coverage Status](https://codecov.io/gh/mysticatea/if-node-version/branch/master/graph/badge.svg)](https://codecov.io/gh/mysticatea/if-node-version)
77
[![Dependency Status](https://david-dm.org/mysticatea/if-node-version.svg)](https://david-dm.org/mysticatea/if-node-version)
88

99
Run a shell command if it's on the node of specified versions.

package.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@
1414
"scripts": {
1515
"clean": "rimraf .nyc_output coverage",
1616
"lint": "node bin/index.js \">=4\" eslint bin lib test",
17-
"coverage": "wait-on coverage/lcov-report/index.html && opener coverage/lcov-report/index.html",
18-
"coveralls": "cat coverage/lcov.info | coveralls",
19-
"preversion": "run-s clean test",
17+
"preversion": "npm test",
2018
"postversion": "git push && git push --tags",
21-
"test": "run-s clean lint test:main",
22-
"test:main": "nyc --require babel-register --reporter=lcov mocha \"test/*.js\" --timeout 10000",
23-
"watch": "npm run clean && run-p watch:main coverage",
24-
"watch:main": "chokidar \"{bin,lib,test}/**/*.js\" --initial --command \"npm run test:main\""
19+
"pretest": "run-s clean lint",
20+
"test": "nyc mocha \"test/*.js\" --timeout 30000 --compilers js:babel-register",
21+
"coverage": "nyc report -r lcov && opener coverage/lcov-report/index.html",
22+
"watch": "mocha \"test/*.js\" --timeout 30000 --compilers js:babel-register --watch --growl",
23+
"codecov": "nyc report -r lcovonly && codecov"
2524
},
2625
"dependencies": {
2726
"cross-spawn": "^4.0.0",
@@ -31,7 +30,7 @@
3130
"babel-preset-power-assert": "^1.0.0",
3231
"babel-register": "^6.9.0",
3332
"chokidar-cli": "^1.2.0",
34-
"coveralls": "^2.11.9",
33+
"codecov": "^1.0.1",
3534
"eslint": "^3.0.0",
3635
"eslint-config-mysticatea": "^5.0.0",
3736
"mocha": "^2.5.3",
@@ -40,8 +39,7 @@
4039
"opener": "^1.4.1",
4140
"pinkie-promise": "^2.0.1",
4241
"power-assert": "^1.4.1",
43-
"rimraf": "^2.5.2",
44-
"wait-on": "^1.5.2"
42+
"rimraf": "^2.5.2"
4543
},
4644
"repository": {
4745
"type": "git",

0 commit comments

Comments
 (0)