Skip to content

Commit

Permalink
Added trigger to coveralls.io
Browse files Browse the repository at this point in the history
Auto publish docs on master success
  • Loading branch information
fkrauthan-hyperwallet committed May 20, 2016
1 parent 316f95b commit 3724332
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ node_js:
- "5"
- "stable"
- "iojs"

after_success:
- if [ $TRAVIS_NODE_VERSION = 'stable' ] && [ $TRAVIS_BRANCH = 'master' ] && [ $TRAVIS_PULL_REQUEST = 'false' ]; then npm run deploy-docs; fi
- if [ $TRAVIS_NODE_VERSION = 'stable' ] && [ $TRAVIS_PULL_REQUEST = 'false' ]; then npm run coveralls; fi
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Build Status](https://travis-ci.org/hyperwallet/node-sdk.png?branch=master)](https://travis-ci.org/hyperwallet/node-sdk)
[![Coverage Status](https://coveralls.io/repos/hyperwallet/node-sdk/badge.png?branch=master)](https://coveralls.io/r/hyperwallet/node-sdk?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/hyperwallet/node-sdk/badge.svg?branch=master)](https://coveralls.io/github/hyperwallet/node-sdk?branch=master)
[![Document](http://hyperwallet.github.io/node-sdk/badge.svg?t=0)](http://hyperwallet.github.io/node-sdk)
[![NPM version](https://badge.fury.io/js/hyperwallet-sdk.png)](http://badge.fury.io/js/hyperwallet-sdk)
[![Dependency Status](https://david-dm.org/hyperwallet/node-sdk.png)](https://david-dm.org/hyperwallet/node-sdk)
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"test": "npm run lint && npm run test-unit",
"test-unit": "mocha --compilers js:babel-register test/**/*.js test/*.js",
"test-coverage": "babel-node ./node_modules/.bin/isparta cover _mocha -- test/**/*.js test/*.js",
"coveralls": "npm run test-coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"prepublish-prod": "npm test && npm run prod",
"publish-please": "publish-please",
"prepublish": "publish-please guard"
Expand Down Expand Up @@ -45,6 +46,7 @@
"babel-preset-stage-0": "^6.5.0",
"babel-register": "^6.9.0",
"chai": "^3.5.0",
"coveralls": "^2.11.9",
"dirty-chai": "^1.2.2",
"esdoc": "^0.4.7",
"esdoc-importpath-plugin": "0.0.1",
Expand Down

0 comments on commit 3724332

Please sign in to comment.