From 9ff887d8972b6c261b18ca7f39a915be678f6e89 Mon Sep 17 00:00:00 2001 From: sanex3339 Date: Wed, 22 Jun 2016 21:39:25 +0300 Subject: [PATCH] coveralls test --- .travis.yml | 1 + package.json | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0d5e85f4..289df263 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,4 +4,5 @@ node_js: - "stable" after_success: + - npm run test:coveralls - rm -rf ./coverage \ No newline at end of file diff --git a/package.json b/package.json index cfea4feb..20299f3d 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "babel-polyfill": "^6.9.1", "babel-preset-es2015": "^6.9.0", "chai": "^3.5.0", + "coveralls": "^2.11.9", "istanbul": "^1.0.0-alpha.2", "lite-server": "^1.3.1", "mocha": "^2.5.3", @@ -47,7 +48,8 @@ "test:compile": "node_modules/.bin/tsc -p tsconfig-test.json", "test:dev": "node test/dev/test.js", "test:full": "npm run test:compile && node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- test-tmp/test/**/**.spec.js && npm run test:removeTestTmpDir", - "test:mocha": "npm run test:compile && node_modules/.bin/mocha test-tmp/test/**/**.spec.js && npm run test:removeTestTmpDir", + "test:coveralls": "npm run test:compile && node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- test-tmp/test/**/**.spec.js --report lcovonly && cat ./coverage/lcov.info | coveralls && npm run test:removeTestTmpDir", + "test:mocha": "npm run test:compile && node_modules/.bin/mocha test-tmp/test/**/**.spec.js && npm run test:removeTestTmpDir", "test:removeTestTmpDir": "rm -rf test-tmp", "test": "npm run test:dev && npm run test:full", "typings": "node_modules/.bin/typings install"