Skip to content

Commit

Permalink
Allow Coveralls to be Notified of Coverage and Add Coverage Badge
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Hurlburt committed May 18, 2017
1 parent 6215e0e commit 0c4fb86
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
/coverage
/dist

.coveralls.yml
npm-debug.log
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ node_js:
- "5"
- "4"
script: npm run travisci
after_success:
- npm run coveralls
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# qc-log_api

[![Build Status][travis-svg]][travis-url]
[![Coverage Status][coverage-image]][coverage-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

Expand Down Expand Up @@ -41,6 +42,8 @@ LOG.logAt(Log.Level.ERROR, '%s must have a length between %d and %d.', 'Password
```


[coverage-image]: https://coveralls.io/repos/github/hypersoftllc/qc-log_api/badge.svg?branch=master
[coverage-url]: https://coveralls.io/github/hypersoftllc/qc-log_api?branch=master
[downloads-image]: http://img.shields.io/npm/dm/qc-log_api.svg
[downloads-url]: http://npm-stat.com/charts.html?package=qc-log_api
[license-image]: http://img.shields.io/npm/l/qc-log_api.svg
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
},
"scripts": {
"build": "tsc",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"prepublish": "tsc",
"test": "jest --color --coverage",
"travisci": "npm test"
Expand All @@ -52,6 +53,7 @@
},
"devDependencies": {
"@types/jest": "^19.2.2",
"coveralls": "^2.13.1",
"jest": "^19.0.2",
"ts-jest": "^19.0.14",
"typescript": "^2.3.2"
Expand Down

0 comments on commit 0c4fb86

Please sign in to comment.