Skip to content

Commit

Permalink
test: use codecov.io
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Oct 20, 2015
1 parent a13eb6e commit ed6c8ce
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 29 deletions.
13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
sudo: false
language: node_js
node_js:
- '0.10'
- '0.11'
- '0.12'
- 'iojs-1'
- 'iojs-2'
script: "npm run jshint && npm run test-travis && npm run test-optimized"
after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
- '1'
- '2'
- '4'
script:
- "npm run jshint && npm run test-cov"
after_script:
- "npm i codecov.io && cat ./coverage/coverage.json | ./node_modules/codecov.io/bin/codecov.io.js"
17 changes: 4 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,15 @@ utility

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Gittip][gittip-image]][gittip-url]
[![io.js version][iojs-image]][iojs-url]
[![node version][node-image]][node-url]
[![Test coverage][codecov-image]][codecov-url]
[![npm download][download-image]][download-url]

[npm-image]: https://img.shields.io/npm/v/utility.svg?style=flat-square
[npm-url]: https://npmjs.org/package/utility
[travis-image]: https://img.shields.io/travis/node-modules/utility.svg?style=flat-square
[travis-url]: https://travis-ci.org/node-modules/utility
[coveralls-image]: https://img.shields.io/coveralls/node-modules/utility.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/node-modules/utility?branch=master
[gittip-image]: https://img.shields.io/gittip/fengmk2.svg?style=flat-square
[gittip-url]: https://www.gittip.com/fengmk2/
[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square
[node-url]: https://nodejs.org/download/
[iojs-image]: https://img.shields.io/badge/io.js-%3E=_1.0-yellow.svg?style=flat-square
[iojs-url]: https://iojs.org/
[codecov-image]: https://codecov.io/github/node-modules/utility/coverage.svg?branch=master
[codecov-url]: https://codecov.io/github/node-modules/utility?branch=master
[download-image]: https://img.shields.io/npm/dm/utility.svg?style=flat-square
[download-url]: https://npmjs.org/package/utility

Expand All @@ -29,7 +20,7 @@ A collection of useful utilities.
## Install

```bash
$ npm install utility --save
$ npm install utility
```

## Usage
Expand Down
19 changes: 8 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,30 @@
"description": "A collection of useful utilities.",
"main": "lib/utility.js",
"files": [
"lib/"
"lib"
],
"scripts": {
"test": "mocha -R spec -t 5000 test/*.test.js",
"test-cov": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -t 5000 test/*.test.js",
"test-travis": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- -t 5000 test/*.test.js",
"test-cov": "istanbul cover node_modules/.bin/_mocha -- -t 5000 test/*.test.js",
"jshint": "jshint .",
"autod": "autod -w --prefix '~' -e benchmark",
"cnpm": "npm install --registry=https://registry.npm.taobao.org",
"contributors": "contributors -f plain -o AUTHORS",
"test-optimized": "node --allow-natives-syntax --trace_opt --trace_deopt test/optimized.js"
},
"dependencies": {
"copy-to": "~2.0.1"
},
"devDependencies": {
"autod": "*",
"beautify-benchmark": "~0.2.4",
"benchmark": "~1.0.0",
"beautify-benchmark": "*",
"benchmark": "1",
"contributors": "*",
"istanbul": "*",
"jshint": "*",
"mm": "~1.0.1",
"mm": "1",
"mocha": "*",
"moment": "~2.10.2",
"optimized": "~1.2.0",
"should": "~6.0.1"
"moment": "2",
"optimized": "1",
"should": "7"
},
"homepage": "https://github.com/node-modules/utility",
"repository": {
Expand Down

0 comments on commit ed6c8ce

Please sign in to comment.