Permalink
Browse files

Add coveralls

  • Loading branch information...
1 parent 04595e1 commit 72e79e26bc4f85dc800e215097fa01ce04aab9eb @tmcw tmcw committed Jun 16, 2014
Showing with 10 additions and 3 deletions.
  1. +4 −0 .travis.yml
  2. +1 −1 README.md
  3. +5 −2 package.json
View
@@ -1 +1,5 @@
language: node_js
+script:
+ - npm install
+ - npm test
+ - npm run cov
View
@@ -1,4 +1,4 @@
-[![Build Status](https://travis-ci.org/mapbox/tokml.png)](https://travis-ci.org/mapbox/tokml)
+[![Build Status](https://travis-ci.org/mapbox/tokml.png)](https://travis-ci.org/mapbox/tokml) [![Coverage Status](https://coveralls.io/repos/mapbox/tokml/badge.png)](https://coveralls.io/r/mapbox/tokml)
# tokml
View
@@ -4,7 +4,8 @@
"description": "convert geojson to kml",
"main": "index.js",
"scripts": {
- "test": "tap test/*.js"
+ "test": "tap test/*.js",
+ "cov": "istanbul cover test/kml.test.js && coveralls < ./coverage/lcov.info"
},
"repository": {
"type": "git",
@@ -26,7 +27,9 @@
"corslite": "0.0.5",
"filesaver.js": "~2013.1.23",
"tap": "~0.4.8",
- "fuzzer": "0.0.0"
+ "fuzzer": "0.0.0",
+ "coveralls": "~2.10.0",
+ "istanbul": "~0.2.11"
},
"dependencies": {
"minimist": "0.0.5",

0 comments on commit 72e79e2

Please sign in to comment.