Skip to content

Commit 2598d6d

Browse files
author
Alexej Yaroshevich
committed
Coverage: add coveralls to travis
Fixes #102 Closes gh-103
1 parent fd317b7 commit 2598d6d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ matrix:
1212
before_script:
1313
- ln -s ../ ./node_modules/jscs-jsdoc
1414

15+
after_success:
16+
- |
17+
if [ "${TRAVIS_NODE_VERSION}" == "0.10" ]; then
18+
npm i istanbul istanbul-coveralls
19+
istanbul cover --report lcovonly ./node_modules/.bin/_mocha
20+
istanbul-coveralls && echo "Coverage data was sent to coveralls!"
21+
fi
22+
1523
notifications:
1624
webhooks:
1725
urls:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
[![Gitter](https://img.shields.io/badge/GITTER-JOIN_CHAT_%E2%86%92-1dce73.svg)](https://gitter.im/jscs-dev/talks?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
33
[![Build Status](https://img.shields.io/travis/jscs-dev/jscs-jsdoc.svg)](http://travis-ci.org/jscs-dev/jscs-jsdoc?style=flat)
44
[![Dependency Status](https://img.shields.io/david/jscs-dev/jscs-jsdoc.svg)](https://david-dm.org/jscs-dev/jscs-jsdoc)
5+
[![Coverage](https://img.shields.io/coveralls/jscs-dev/jscs-jsdoc.svg)](https://coveralls.io/r/jscs-dev/jscs-jsdoc)
56

67
[![NPM version](https://img.shields.io/npm/v/jscs-jsdoc.svg)](https://www.npmjs.com/package/jscs-jsdoc)
78
[![NPM downloads](https://img.shields.io/npm/dm/jscs-jsdoc.svg)](https://www.npmjs.com/package/jscs-jsdoc)

0 commit comments

Comments
 (0)