Skip to content

Commit 8cff92f

Browse files
committed
Docs: Added coverage reporting
1 parent cbaaae9 commit 8cff92f

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ matrix:
2424
script:
2525
- travis_wait npm run zuul
2626
- sleep 3
27+
include:
28+
- node_js: 6
29+
script:
30+
- npm run coverage

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# <p align="center"><img alt="protobuf.js" src="https://github.com/dcodeIO/protobuf.js/raw/master/pbjs.png" width="120" height="104" /></p>
22

3-
[![][travis-image]][travis-url] [![][david-image]][david-url] [![][npm-dl-image]][npm-url] [![][npm-image]][npm-url] [![][paypal-image]][paypal-url]
3+
[![][travis-image]][travis-url] [![][coverage-image]][coverage-url] [![][downloads-image]][npm-url] [![][npm-image]][npm-url] [![][donate-image]][donate-url]
44

55
**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/)).
66

77
**protobuf.js** is a pure JavaScript implementation with TypeScript support for node and the browser. It's super easy to use, blazingly fast and works out of the box on .proto files!
88

99
[travis-image]: https://img.shields.io/travis/dcodeIO/protobuf.js.svg
1010
[travis-url]: https://travis-ci.org/dcodeIO/protobuf.js
11-
[david-url]: https://david-dm.org/dcodeIO/protobuf.js
12-
[david-image]: https://img.shields.io/david/dcodeIO/protobuf.js.svg
11+
[coverage-image]: https://coveralls.io/repos/github/dcodeIO/protobuf.js/badge.svg?branch=master
12+
[coverage-url]: https://coveralls.io/github/dcodeIO/protobuf.js?branch=master
1313
[npm-image]: https://img.shields.io/npm/v/protobufjs.svg
1414
[npm-url]: https://npmjs.org/package/protobufjs
15-
[npm-dl-image]: https://img.shields.io/npm/dm/protobufjs.svg
16-
[paypal-image]: https://img.shields.io/badge/donate-feels%20good%2C%20I%20promise-333333.svg
17-
[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
15+
[downloads-image]: https://img.shields.io/npm/dm/protobufjs.svg
16+
[donate-image]: https://img.shields.io/badge/donate-%E2%9D%A4-ff2244.svg
17+
[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
1818

1919
**Recommended read:** [Changes in protobuf.js 6.0](https://github.com/dcodeIO/protobuf.js/wiki/Changes-in-protobuf.js-6.0)
2020

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"bench": "node bench",
3030
"build": "gulp",
3131
"changelog": "node scripts/changelog -w",
32-
"coverage": "istanbul cover node_modules/tape/bin/tape tests/*.js tests/node/*.js",
32+
"coverage": "istanbul cover node_modules/tape/bin/tape tests/*.js tests/node/*.js && cat coverage/lcov.info | coveralls",
3333
"docs": "jsdoc -c jsdoc.docs.json -R README.md",
3434
"lint": "eslint src runtime",
3535
"pages": "node scripts/pages",
@@ -66,6 +66,7 @@
6666
"browserify-wrap": "^1.0.2",
6767
"bundle-collapser": "^1.2.1",
6868
"chalk": "^1.1.3",
69+
"coveralls": "^2.11.15",
6970
"escodegen": "^1.8.1",
7071
"eslint": "^3.13.1",
7172
"esprima": "^3.1.3",

0 commit comments

Comments
 (0)