Skip to content

Commit

Permalink
adding coveralls code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmonette committed Jan 25, 2016
1 parent 44bb342 commit 6c05a1d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
@@ -1,3 +1,6 @@
language: node_js
before_install:
- export TZ=Europe/London
script: "npm run-script test-travis"
# Send coverage data to Coveralls
after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -2,7 +2,8 @@

> [Feed](http://projets.jpmonette.net/en/feed) is a *RSS 2.0* and *Atom 1.0* generator for **Node.js**, making content syndication simple and intuitive!
[![Build Status](https://travis-ci.org/jpmonette/feed.svg?branch=master)](https://travis-ci.org/jpmonette/feed)
[![Build Status](https://travis-ci.org/jpmonette/feed.svg?branch=master)](https://travis-ci.org/jpmonette/feed)
[![Coverage Status](https://coveralls.io/repos/github/jpmonette/feed/badge.svg?branch=master)](https://coveralls.io/github/jpmonette/feed?branch=master)

## Installation

Expand Down
5 changes: 4 additions & 1 deletion package.json
Expand Up @@ -13,7 +13,8 @@
"license": "MIT",
"main": "lib/feed.js",
"scripts": {
"test": "export NODE_ENV=test && mocha"
"test": "export NODE_ENV=test && mocha",
"test-travis": "export NODE_ENV=test && ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha -- -R spec ./test/*"
},
"keywords": [
"rss",
Expand All @@ -28,6 +29,8 @@
"xml": ">= 0.0.5"
},
"devDependencies": {
"coveralls": "2.10.0",
"istanbul": "0.3.5",
"mocha": "*"
},
"engines": {
Expand Down

0 comments on commit 6c05a1d

Please sign in to comment.