From ff7deb471259ec1827e97ea0faa9c65942d4dd79 Mon Sep 17 00:00:00 2001 From: Juan Picado Date: Thu, 27 Apr 2017 04:37:56 +0200 Subject: [PATCH] set up coveralls --- .travis.yml | 3 ++- package.json | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 720be2737..6f12622dc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,4 +4,5 @@ node_js: - '6' - '7' sudo: false -script: npm install . && npm run test-travis \ No newline at end of file +script: npm install . && npm run test-travis +after_success: npm run coverage \ No newline at end of file diff --git a/package.json b/package.json index ea4b301ea..334e5d70e 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "devDependencies": { "browserify": "^13.0.0", "browserify-handlebars": "^1.0.0", + "coveralls": "^2.13.0", "eslint": "^3.19.0", "eslint-config-google": "^0.7.1", "grunt": "^1.0.1", @@ -69,7 +70,8 @@ ], "scripts": { "test": "npm run lint && mocha ./test/functional ./test/unit", - "test:coverage": "nyc --reporter=html --reporter=text mocha -R spec ./test/functional ./test/unit", + "test:coverage": "nyc mocha -R spec ./test/functional ./test/unit", + "coveralls": "nyc report --reporter=text-lcov | coveralls", "test-travis": "npm run lint && npm run test:coverage", "test-only": "mocha ./test/functional ./test/unit", "lint": "eslint .",