diff --git a/.travis.yml b/.travis.yml index 264f5f3..3052f99 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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" diff --git a/README.md b/README.md index ddcdc5c..6d72b9e 100644 --- a/README.md +++ b/README.md @@ -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 @@ -29,7 +20,7 @@ A collection of useful utilities. ## Install ```bash -$ npm install utility --save +$ npm install utility ``` ## Usage diff --git a/package.json b/package.json index ad79a13..76fc39d 100644 --- a/package.json +++ b/package.json @@ -4,16 +4,13 @@ "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": { @@ -21,16 +18,16 @@ }, "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": {