Skip to content

Commit

Permalink
update links and add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Aug 5, 2014
1 parent 93136cc commit d010ae8
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
@@ -1,3 +1,5 @@
language: node_js
node_js:
- '0.11'
script: "make test-travis"
after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
14 changes: 12 additions & 2 deletions Makefile
Expand Up @@ -30,10 +30,20 @@ test-cov: install
--require should \
$(MOCHA_OPTS) \
$(TESTS)
@./node_modules/.bin/cov coverage

test-travis: install
@node --harmony \
node_modules/.bin/istanbul cover --preserve-comments \
./node_modules/.bin/_mocha \
--report lcovonly \
-- \
--reporter dot \
--timeout $(TIMEOUT) \
$(MOCHA_OPTS) \
$(TESTS)

autod: install
@./node_modules/.bin/autod $(REGISTRY) -w --prefix "^" -e example.js
@./node_modules/.bin/autod $(REGISTRY) -w --prefix "~" -e example.js
@$(MAKE) install

.PHONY: test test-all
18 changes: 17 additions & 1 deletion README.md
@@ -1,6 +1,22 @@
koa-onerror
=================
[![Build Status](https://travis-ci.org/koajs/onerror.svg?branch=master)](https://travis-ci.org/koajs/onerror)

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Gittip][gittip-image]][gittip-url]
[![David deps][david-image]][david-url]

[npm-image]: https://img.shields.io/npm/v/koa-onerror.svg?style=flat
[npm-url]: https://npmjs.org/package/koa-onerror
[travis-image]: https://img.shields.io/travis/koajs/onerror.svg?style=flat
[travis-url]: https://travis-ci.org/koajs/onerror
[coveralls-image]: https://img.shields.io/coveralls/koajs/onerror.svg?style=flat
[coveralls-url]: https://coveralls.io/r/koajs/onerror?branch=master
[gittip-image]: https://img.shields.io/gittip/dead_horse.svg?style=flat
[gittip-url]: https://www.gittip.com/dead_horse/
[david-image]: https://img.shields.io/david/koajs/onerror.svg?style=flat
[david-url]: https://david-dm.org/koajs/onerror

an error handler for koa, hack ctx.onerror.

Expand Down
13 changes: 6 additions & 7 deletions package.json
Expand Up @@ -27,18 +27,17 @@
"homepage": "https://github.com/koajs/onerror",
"devDependencies": {
"autod": "*",
"co-sleep": "^0.0.1",
"cov": "*",
"co-sleep": "~0.0.1",
"istanbul-harmony": "*",
"jshint": "*",
"koa": "^0.8.2",
"koa": "~0.8.2",
"mocha": "*",
"pedding": "^1.0.0",
"pedding": "~1.0.0",
"should": "*",
"supertest": "^0.13.0"
"supertest": "~0.13.0"
},
"dependencies": {
"copy-to": "^1.0.1",
"swig": "^1.4.2"
"copy-to": "~1.0.1",
"swig": "~1.4.2"
}
}

0 comments on commit d010ae8

Please sign in to comment.