From 65ffea998e8f930b9b5a14c29a715c91bdeeb0e7 Mon Sep 17 00:00:00 2001 From: Benjamin Pannell Date: Fri, 24 Apr 2015 17:10:31 +0200 Subject: [PATCH] Updated code coverage submissions for CodeClimate --- .travis.yml | 7 ++++++- package.json | 7 +++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2874b0d..310c7de 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,5 +8,10 @@ services: env: - CI_SERVER=1 +addons: + codeclimate: + repo_token: 9c90177b42d39905ca635b1f6226580dab5799f87f172b66bab4e8df77b67a13 + after_script: - - npm run coverage:travis \ No newline at end of file + - coveralls < coverage/lcov.info + - codeclimate < coverage/lcov.info \ No newline at end of file diff --git a/package.json b/package.json index 56ee1b8..d2bab25 100644 --- a/package.json +++ b/package.json @@ -19,9 +19,7 @@ "scripts": { "test": "npm run coverage", "test:watch": "mocha -w", - "coverage": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec --ui bdd", - "coverage:travis:before": "npm run coverage", - "coverage:travis": "cat coverage/lcov.info | coveralls" + "coverage": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec --ui bdd" }, "engines": { "node": ">= 0.8" @@ -44,7 +42,8 @@ "underscore": "^1.8.3", "tick": "~0.1.1", "istanbul": "~0.3.13", - "coveralls": "^2.11.2" + "coveralls": "^2.11.2", + "codeclimate-test-reporter": "~0.0.4" }, "keywords": [ "mongodb",