Skip to content

Commit

Permalink
Merge pull request #1 from prestonvanloon/feature/coveralls
Browse files Browse the repository at this point in the history
Added coveralls
  • Loading branch information
prestonvanloon committed Apr 14, 2016
2 parents e29e56b + b7a19ff commit d69e27b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ node_js:
cache:
directories:
- node_modules

after_success:
- npm run coverage
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# swagger-aggregator

[![Build Status](https://travis-ci.org/prestonvanloon/swagger-aggregator.svg?branch=master)](https://travis-ci.org/prestonvanloon/swagger-aggregator)
[![Coverage Status](https://coveralls.io/repos/github/prestonvanloon/swagger-aggregator/badge.svg?branch=master)](https://coveralls.io/github/prestonvanloon/swagger-aggregator?branch=master)
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Aggregate several swagger APIs in one",
"main": "index.js",
"scripts": {
"test": "./node_modules/mocha/bin/mocha"
"test": "./node_modules/mocha/bin/mocha",
"coverage": "NODE_ENV=test YOURPACKAGE_COVERAGE=1 ./node_modules/.bin/mocha --require blanket --reporter mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js"
},
"repository": {
"type": "git",
Expand All @@ -23,8 +24,11 @@
},
"homepage": "https://github.com/prestonvanloon/swagger-aggregator#readme",
"devDependencies": {
"blanket": "^1.2.3",
"chai": "^3.5.0",
"coveralls": "^2.11.9",
"mocha": "^2.4.5",
"mocha-lcov-reporter": "^1.2.0",
"sinon": "^1.17.3",
"sinon-as-promised": "^4.0.0"
},
Expand Down

0 comments on commit d69e27b

Please sign in to comment.