From 8f3e886c7fe377e95f2338cecb939a1de3bf3488 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Thu, 13 Oct 2016 00:32:52 -0700 Subject: [PATCH] Switch to Codecov Fixes #186. --- .gitignore | 3 --- README.md | 6 +++--- codecov.yml | 3 +++ package.json | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 codecov.yml diff --git a/.gitignore b/.gitignore index a2234e0..b490573 100644 --- a/.gitignore +++ b/.gitignore @@ -29,6 +29,3 @@ node_modules # OS files .DS_Store - -# Coveralls token files -.coveralls.yml diff --git a/README.md b/README.md index 5a4f380..ecb5b81 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ node-fetch [![npm version][npm-image]][npm-url] [![build status][travis-image]][travis-url] -[![coverage status][coveralls-image]][coveralls-url] +[![coverage status][codecov-image]][codecov-url] A light-weight module that brings `window.fetch` to Node.js @@ -220,5 +220,5 @@ Thanks to [github/fetch](https://github.com/github/fetch) for providing a solid [npm-url]: https://www.npmjs.com/package/node-fetch [travis-image]: https://img.shields.io/travis/bitinn/node-fetch.svg?style=flat-square [travis-url]: https://travis-ci.org/bitinn/node-fetch -[coveralls-image]: https://img.shields.io/coveralls/bitinn/node-fetch.svg?style=flat-square -[coveralls-url]: https://coveralls.io/r/bitinn/node-fetch +[codecov-image]: https://img.shields.io/codecov/c/github/bitinn/node-fetch.svg?style=flat-square +[codecov-url]: https://codecov.io/gh/bitinn/node-fetch diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..b4e9d3f --- /dev/null +++ b/codecov.yml @@ -0,0 +1,3 @@ +parsers: + javascript: + enable_partials: yes diff --git a/package.json b/package.json index 2627080..4ff2149 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "test": "mocha test/test.js", "report": "istanbul cover _mocha -- -R spec test/test.js", - "coverage": "istanbul cover _mocha --report lcovonly -- -R spec test/test.js && cat ./coverage/lcov.info | coveralls" + "coverage": "istanbul cover _mocha --report lcovonly -- -R spec test/test.js && codecov -f coverage/coverage.json" }, "repository": { "type": "git", @@ -27,7 +27,7 @@ "bluebird": "^3.3.4", "chai": "^3.5.0", "chai-as-promised": "^5.2.0", - "coveralls": "^2.11.2", + "codecov": "^1.0.1", "form-data": ">=1.0.0", "istanbul": "^0.4.2", "mocha": "^2.1.0",