From ca3492579ea698e8d650e6afc003962dfb0a04c4 Mon Sep 17 00:00:00 2001 From: Rajiv Tirumalareddy Date: Fri, 22 Aug 2014 11:43:04 -0700 Subject: [PATCH] add coveralls --- .coveralls.yml | 1 + .travis.yml | 3 +++ README.md | 2 +- package.json | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 00000000..91600595 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1 @@ +service_name: travis-ci diff --git a/.travis.yml b/.travis.yml index 18ae2d89..39cf955a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,3 +2,6 @@ language: node_js node_js: - "0.11" - "0.10" +after_success: + - "npm run cover" + - "cat artifacts/lcov.info | ./node_modules/coveralls/bin/coveralls.js" diff --git a/README.md b/README.md index f00c4f35..17358611 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Fetchr [![Build Status](https://travis-ci.org/yahoo/fetchr.svg?branch=master)](https://travis-ci.org/yahoo/fetchr) [![Dependency Status](https://david-dm.org/yahoo/fetchr.svg)](https://david-dm.org/yahoo/fetchr) +# Fetchr [![Build Status](https://travis-ci.org/yahoo/fetchr.svg?branch=master)](https://travis-ci.org/yahoo/fetchr) [![Dependency Status](https://david-dm.org/yahoo/fetchr.svg)](https://david-dm.org/yahoo/fetchr) [![Coverage Status](https://coveralls.io/repos/yahoo/fetchr/badge.png?branch=coveralls)](https://coveralls.io/r/yahoo/fetchr?branch=coveralls) Fetchr augments [Flux][] applications by allowing [Flux][] stores to be used on server and client to fetch data. diff --git a/package.json b/package.json index 21784fa8..16694d92 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ }, "devDependencies": { "chai": "^1.9.1", + "coveralls": "^2.11.1", "istanbul": "^0.2.10", "jshint": "^2.5.1", "lodash": "^2.4.1",