Explorar o código

coveralls test

sanex3339 %!s(int64=9) %!d(string=hai) anos
pai
achega
9ff887d897
Modificáronse 2 ficheiros con 4 adicións e 1 borrados
  1. 1 0
      .travis.yml
  2. 3 1
      package.json

+ 1 - 0
.travis.yml

@@ -4,4 +4,5 @@ node_js:
   - "stable"
 
 after_success:
+  - npm run test:coveralls
   - rm -rf ./coverage

+ 3 - 1
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"