From f2fc616cc9a87154be38c72935ee804911337832 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 5 Jun 2014 16:43:07 -0300 Subject: [PATCH] add coveralls --- .coveralls.yml | 1 + .travis.yml | 2 +- package.json | 17 +++++++++-------- 3 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..74e6a2c --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1 @@ +repo_token: lBB0wwrjIH3RkwvTjkv8g5r4aUjcIUreC diff --git a/.travis.yml b/.travis.yml index fce8114..cf36127 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,4 +2,4 @@ language: node_js node_js: - "0.10" -script: "mocha" +# by default, travis will call `npm test` diff --git a/package.json b/package.json index 3968d78..d3f139f 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ }, "scripts": { "install": "node-gyp rebuild", - "test": "mocha test -R spec", + "test": "node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", "coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter spec test", "prepublish": "node browser/build.js -a" }, @@ -73,16 +73,17 @@ "underscore": "~1.6.0" }, "devDependencies": { + "brfs": "~1.0.0", + "browser-pack": "~2.0.1", + "commander": "~2.1.0", + "coveralls": "^2.10.0", + "grunt-browserify": "~2.0.0", "grunt-contrib-watch": "~0.5.3", + "grunt-markdown": "~0.5.0", "grunt-mocha-test": "~0.8.2", "grunt-shell": "~0.6.4", - "grunt-browserify": "~2.0.0", - "grunt-markdown": "~0.5.0", - "mocha": ">=1.15.1", - "brfs": "~1.0.0", - "commander": "~2.1.0", - "browser-pack": "~2.0.1", - "istanbul": "~0.2.6" + "istanbul": "~0.2.6", + "mocha": ">=1.15.1" }, "testling": { "harness": "mocha-bdd",