add coveralls integration

This commit is contained in:
2016-05-03 14:45:42 -07:00
parent 594e249ee0
commit 35ca41b955
4 changed files with 6 additions and 2 deletions

3
.gitignore vendored
View File

@@ -1,4 +1,5 @@
lib lib
node_modules node_modules
npm-debug.log npm-debug.log
.nyc_output .nyc_output
coverage

View File

@@ -3,3 +3,4 @@ node_js:
- "5" - "5"
- "4" - "4"
- "4.3" - "4.3"
after_success: npm run coverage

View File

@@ -6,6 +6,7 @@
"scripts": { "scripts": {
"test": "npm run build && npm run unit", "test": "npm run build && npm run unit",
"unit": "nyc --require babel-core/register mocha test/src/**", "unit": "nyc --require babel-core/register mocha test/src/**",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"build": "babel src --out-dir lib", "build": "babel src --out-dir lib",
"prepublish": "in-publish && npm run test || not-in-publish" "prepublish": "in-publish && npm run test || not-in-publish"
}, },
@@ -21,6 +22,7 @@
"babel-eslint": "~4.1.8", "babel-eslint": "~4.1.8",
"babel-plugin-add-module-exports": "~0.1.2", "babel-plugin-add-module-exports": "~0.1.2",
"babel-preset-es2015": "~6.6.0", "babel-preset-es2015": "~6.6.0",
"coveralls": "~2.11.9",
"eslint": "~1.10.3", "eslint": "~1.10.3",
"eslint-plugin-mocha": "~1.1.0", "eslint-plugin-mocha": "~1.1.0",
"eslint-plugin-react": "~4.2.3", "eslint-plugin-react": "~4.2.3",

View File

@@ -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 # Elasticsearch-powered job queue