#284 coveralls integration

This commit is contained in:
Mario Romano
2016-06-28 15:05:30 +01:00
parent 95b824bdbd
commit 90c3abc37e
24 changed files with 53 additions and 28 deletions

View File

@@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: ggYiqjz07LvGwAKJ4Ezffr9iLiltNyNHP

View File

@@ -1,6 +0,0 @@
language: node_js
node_js:
- '5'
script: npm run coverage
# Send coverage data to Coveralls
after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"

View File

@@ -73,8 +73,8 @@ module.exports = function (config) {
],
// Coverage reporter generates the coverage
reporters: ['mocha', 'coverage', 'kjhtml'],
reporters: ['mocha', 'coverage', 'coveralls', 'kjhtml'],
// Source files that you wanna generate coverage for.
// Do not include tests or libraries (these files will be instrumented by Istanbul)
preprocessors: {
@@ -88,7 +88,8 @@ module.exports = function (config) {
{type: 'text'},
{type: 'text-summary'},
{type: 'json', file: 'coverage-final.json'},
{type: 'html'}
{type: 'html'},
{type: 'lcov'}
]
}
};

View File

@@ -91,6 +91,7 @@
"karma": "0.13.22",
"karma-chrome-launcher": "1.0.1",
"karma-coverage": "1.0.0",
"karma-coveralls": "^1.1.2",
"karma-jasmine": "1.0.2",
"karma-mocha-reporter": "2.0.3",
"karma-jasmine-html-reporter": "0.2.0",