Skip to content

Commit

Permalink
ci(Coveralls): Add coveralls reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
stonelasley committed Jul 3, 2018
1 parent 0e20945 commit 4e7a30c
Show file tree
Hide file tree
Showing 3 changed files with 2,112 additions and 1,324 deletions.
15 changes: 4 additions & 11 deletions config/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = function(config) {
var cfg ={
basePath: '',
frameworks: ['jasmine', 'karma-typescript'],
reporters: ['progress', 'karma-typescript'],
reporters: ['progress', 'karma-typescript', 'coverage', 'coveralls'],
files: ['src/**/*.ts'],
browsers: ['Chrome'],
singleRun: true,
Expand All @@ -23,20 +23,13 @@ module.exports = function(config) {
}
},
coverageReporter: {
dir: '../coverage/',
reporters: [{
type: 'text'
}, {
type: 'json',
dir: '../coverage',
subdir: 'json',
file: 'coverage-final.json'
}]
type: 'lcov',
dir: 'coverage'
}
};
if (process.env.TRAVIS) {
cfg.browsers = ['Chrome_travis_ci'];
}

config.set(cfg);
};
};
Loading

0 comments on commit 4e7a30c

Please sign in to comment.