From 8cff92fe3b7ddb1930371edb4937cd0db9216e52 Mon Sep 17 00:00:00 2001 From: dcodeIO Date: Wed, 18 Jan 2017 15:44:07 +0100 Subject: [PATCH] Docs: Added coverage reporting --- .travis.yml | 4 ++++ README.md | 12 ++++++------ package.json | 3 ++- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 985f4b985..291970754 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,3 +24,7 @@ matrix: script: - travis_wait npm run zuul - sleep 3 + include: + - node_js: 6 + script: + - npm run coverage diff --git a/README.md b/README.md index 861090f1c..bc10625d6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ #

protobuf.js

-[![][travis-image]][travis-url] [![][david-image]][david-url] [![][npm-dl-image]][npm-url] [![][npm-image]][npm-url] [![][paypal-image]][paypal-url] +[![][travis-image]][travis-url] [![][coverage-image]][coverage-url] [![][downloads-image]][npm-url] [![][npm-image]][npm-url] [![][donate-image]][donate-url] **Protocol Buffers** are a language-neutral, platform-neutral, extensible way of serializing structured data for use in communications protocols, data storage, and more, originally designed at Google ([see](https://developers.google.com/protocol-buffers/)). @@ -8,13 +8,13 @@ [travis-image]: https://img.shields.io/travis/dcodeIO/protobuf.js.svg [travis-url]: https://travis-ci.org/dcodeIO/protobuf.js -[david-url]: https://david-dm.org/dcodeIO/protobuf.js -[david-image]: https://img.shields.io/david/dcodeIO/protobuf.js.svg +[coverage-image]: https://coveralls.io/repos/github/dcodeIO/protobuf.js/badge.svg?branch=master +[coverage-url]: https://coveralls.io/github/dcodeIO/protobuf.js?branch=master [npm-image]: https://img.shields.io/npm/v/protobufjs.svg [npm-url]: https://npmjs.org/package/protobufjs -[npm-dl-image]: https://img.shields.io/npm/dm/protobufjs.svg -[paypal-image]: https://img.shields.io/badge/donate-feels%20good%2C%20I%20promise-333333.svg -[paypal-url]: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=dcode%40dcode.io&item_name=Open%20Source%20Software%20Contribution&item_number=dcodeIO%2Fprotobuf.js +[downloads-image]: https://img.shields.io/npm/dm/protobufjs.svg +[donate-image]: https://img.shields.io/badge/donate-%E2%9D%A4-ff2244.svg +[donate-url]: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=dcode%40dcode.io&item_name=Open%20Source%20Software%20Contribution&item_number=dcodeIO%2Fprotobuf.js **Recommended read:** [Changes in protobuf.js 6.0](https://github.com/dcodeIO/protobuf.js/wiki/Changes-in-protobuf.js-6.0) diff --git a/package.json b/package.json index 66c0e15f5..191b6b502 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "bench": "node bench", "build": "gulp", "changelog": "node scripts/changelog -w", - "coverage": "istanbul cover node_modules/tape/bin/tape tests/*.js tests/node/*.js", + "coverage": "istanbul cover node_modules/tape/bin/tape tests/*.js tests/node/*.js && cat coverage/lcov.info | coveralls", "docs": "jsdoc -c jsdoc.docs.json -R README.md", "lint": "eslint src runtime", "pages": "node scripts/pages", @@ -66,6 +66,7 @@ "browserify-wrap": "^1.0.2", "bundle-collapser": "^1.2.1", "chalk": "^1.1.3", + "coveralls": "^2.11.15", "escodegen": "^1.8.1", "eslint": "^3.13.1", "esprima": "^3.1.3",