Skip to content

Commit

Permalink
Add Coveralls.
Browse files Browse the repository at this point in the history
  • Loading branch information
anderMatt committed Feb 15, 2017
1 parent 6c4263b commit 1f4732a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@ node_modules/
*/**/*.swp
conf.json
out/
coverage/
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -9,3 +9,6 @@ cache:
script:
- npm run ci

after_success:
- npm run coveralls

1 change: 1 addition & 0 deletions README.md
Expand Up @@ -2,6 +2,7 @@ Washington Metropolitan Transit Authory API Node
============================================

[![Tests](https://travis-ci.org/anderMatt/wmata-api-node.svg?branch=master)](https://travis-ci.org/anderMatt/wmata-api-node)
[![Coverage Status](https://coveralls.io/repos/anderMatt/wmata-api-node/badge.svg)](https://coveralls.io/r/anderMatt/wmata-api-node)

This is a wrapper for the [WMATA Web API](https://developer.wmata.com) that
runs on Node.JS.
Expand Down
7 changes: 6 additions & 1 deletion package.json
Expand Up @@ -19,7 +19,9 @@
"metro"
],
"scripts": {
"test": "node_modules/.bin/mocha test/wmata-api.js",
"test": "node_modules/.bin/mocha",
"cover": "node_modules/.bin/istanbul cover _mocha",
"coveralls": "npm run cover -- --report lcovonly && cat ./coverage/lcov.info | node_modules/coveralls/bin/coveralls.js",
"ci": "npm run test"
},
"license": "ISC",
Expand All @@ -28,8 +30,11 @@
},
"devDependencies": {
"chai": "^3.5.0",
"coveralls": "^2.11.16",
"express": "^4.14.1",
"istanbul": "^0.4.5",
"mocha": "^3.2.0",
"mocha-lcov-reporter": "^1.2.0",
"sinon": "^1.17.7"
}
}

0 comments on commit 1f4732a

Please sign in to comment.