Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
Add coveralls coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
chajath committed Jan 4, 2016
1 parent f7c2bd2 commit a3bb140
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
@@ -1,6 +1,6 @@
language: node_js
node_js:
- stable
- stable
before_script:
- npm install -g gulp
script: gulp
- npm install -g gulp
script: npm run-script travis
2 changes: 2 additions & 0 deletions README.md
@@ -1,5 +1,7 @@
# Chained Promise: functional programming tools for recurring promises

[![Build Status](https://travis-ci.org/google/chained-promise.svg?branch=travis-ci)](https://travis-ci.org/google/chained-promise) [![Coverage Status](https://coveralls.io/repos/google/chained-promise/badge.svg?branch=master&service=github)](https://coveralls.io/github/google/chained-promise?branch=master)

We often find recurring patterns when handling asynchronous logic with promises, such as an HTTP endpoint that paginates and gives you a URL pointer to the next available dataset.

`Chained Promise` provides an extended Promise class that you can use to easily abstract out recurring patterns. See jsdocs for more detailed explanations.
Expand Down
8 changes: 5 additions & 3 deletions package.json
Expand Up @@ -16,7 +16,9 @@
],
"scripts": {
"test": "gulp test",
"travis": "gulp"
"coveralls": "gulp coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"travis": "gulp",
"posttravis": "npm run-script coveralls"
},
"authors": [
"In-Ho Yi <yiinho@google.com>"
Expand All @@ -29,6 +31,7 @@
"babel-preset-es2015": "^6.3.13",
"babel-register": "^6.3.13",
"chai": "^3.4.1",
"coveralls": "^2.11.6",
"gulp": "^3.9.0",
"gulp-babel": "^6.1.1",
"gulp-exit": "0.0.2",
Expand All @@ -38,6 +41,5 @@
"isparta": "^4.0.0",
"mocha-babel": "^3.0.0"
},
"dependencies": {
}
"dependencies": {}
}

0 comments on commit a3bb140

Please sign in to comment.