ci: Use codecov for code coverage
This commit is contained in:
parent
abf92ad03d
commit
cc3c8f2548
@ -7,11 +7,11 @@ notifications:
|
|||||||
email: false
|
email: false
|
||||||
node_js:
|
node_js:
|
||||||
- 8
|
- 8
|
||||||
after_success:
|
|
||||||
- npm run coverage:upload
|
|
||||||
- npm run semantic-release
|
|
||||||
services:
|
services:
|
||||||
- couchdb
|
- couchdb
|
||||||
branches:
|
branches:
|
||||||
except:
|
except:
|
||||||
- /^v\d+\.\d+\.\d+$/
|
- /^v\d+\.\d+\.\d+$/
|
||||||
|
after_success:
|
||||||
|
- npm run codecov
|
||||||
|
- npm run semantic-release
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
[](https://david-dm.org/semantic-release/semantic-release/caribou#info=devDependencies)
|
[](https://david-dm.org/semantic-release/semantic-release/caribou#info=devDependencies)
|
||||||
|
|
||||||
[](https://travis-ci.org/semantic-release/semantic-release)
|
[](https://travis-ci.org/semantic-release/semantic-release)
|
||||||
[](https://coveralls.io/github/semantic-release/semantic-release?branch=caribou)
|
[](https://codecov.io/gh/semantic-release/semantic-release)
|
||||||
|
|
||||||
Out of the box this is just about _commit-messages_, but you can do so much more.
|
Out of the box this is just about _commit-messages_, but you can do so much more.
|
||||||
|
|
||||||
|
@ -36,8 +36,8 @@
|
|||||||
"semver": "^5.4.1"
|
"semver": "^5.4.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"coveralls": "^3.0.0",
|
|
||||||
"ava": "^0.22.0",
|
"ava": "^0.22.0",
|
||||||
|
"codecov": "^2.3.0",
|
||||||
"commitizen": "^2.9.6",
|
"commitizen": "^2.9.6",
|
||||||
"cz-conventional-changelog": "^2.0.0",
|
"cz-conventional-changelog": "^2.0.0",
|
||||||
"eslint": "^4.7.0",
|
"eslint": "^4.7.0",
|
||||||
@ -120,10 +120,9 @@
|
|||||||
"url": "git+https://github.com/semantic-release/semantic-release.git"
|
"url": "git+https://github.com/semantic-release/semantic-release.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"coverage": "nyc report",
|
|
||||||
"coverage:upload": "npm run coverage -s -- --reporter=text-lcov | coveralls",
|
|
||||||
"clean": "rimraf coverage && rimraf .nyc_output",
|
"clean": "rimraf coverage && rimraf .nyc_output",
|
||||||
"cm": "git-cz",
|
"cm": "git-cz",
|
||||||
|
"codecov": "codecov -f coverage/coverage-final.json",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"pretest": "npm run clean && npm run lint",
|
"pretest": "npm run clean && npm run lint",
|
||||||
"semantic-release": "./bin/semantic-release.js pre && npm publish && ./bin/semantic-release.js post",
|
"semantic-release": "./bin/semantic-release.js pre && npm publish && ./bin/semantic-release.js post",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user