From 35ca41b955f3a893029e23e5c1893cc79449a6ac Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Tue, 3 May 2016 14:45:42 -0700 Subject: [PATCH] add coveralls integration --- .gitignore | 3 ++- .travis.yml | 1 + package.json | 2 ++ readme.md | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1e26855..dbb2dde 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ lib node_modules npm-debug.log -.nyc_output \ No newline at end of file +.nyc_output +coverage diff --git a/.travis.yml b/.travis.yml index a516053..f8b6f6e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,3 +3,4 @@ node_js: - "5" - "4" - "4.3" +after_success: npm run coverage \ No newline at end of file diff --git a/package.json b/package.json index e41d103..621e314 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "test": "npm run build && npm run unit", "unit": "nyc --require babel-core/register mocha test/src/**", + "coverage": "nyc report --reporter=text-lcov | coveralls", "build": "babel src --out-dir lib", "prepublish": "in-publish && npm run test || not-in-publish" }, @@ -21,6 +22,7 @@ "babel-eslint": "~4.1.8", "babel-plugin-add-module-exports": "~0.1.2", "babel-preset-es2015": "~6.6.0", + "coveralls": "~2.11.9", "eslint": "~1.10.3", "eslint-plugin-mocha": "~1.1.0", "eslint-plugin-react": "~4.2.3", diff --git a/readme.md b/readme.md index c49d865..45d1f65 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/w33ble/elastique.svg?branch=master)](https://travis-ci.org/w33ble/elastique) +[![Build Status](https://travis-ci.org/w33ble/elastique.svg?branch=master)](https://travis-ci.org/w33ble/elastique) [![Coverage Status](https://coveralls.io/repos/github/w33ble/elastique/badge.svg?branch=master)](https://coveralls.io/github/w33ble/elastique?branch=master) # Elasticsearch-powered job queue