Skip to content

Commit

Permalink
Add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
dixso committed Dec 27, 2016
1 parent e1b8852 commit d795b99
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ before_script:

matrix:
fast_finish: true

env:
global:
- secure: oc86/M958dO1HlcqIzOQ8vFFZARAZlKwGdIwEQRKiH+UhYLyNZCI9Y64IbHKs7n+2CCh13II4kU+iSgdClXfOA6S9nDBYIzzxbEiNviAfJCWbn0kth6mZ3n4rMd5tOvcaIZwSIa6f3w8l5PBLOohcdb9/1YUPiD1KO+ioKXgMZPm/PeLL8CQbPn2oeW2unzhrypJDhYdb/KRYRCMGPtQVmAjx5UhMGBTfP26t8rWLueq+dSKNuCRK/xzXM+CW1/h/ZvARpSqKoJHKElWzmaOnRbcSOBo5Mxj4SkZM2jq80aWfXL6n8UdW2WyQsz9W/8yYAQs4f8rWRNWXxHeFDOpofEzLO89rbOFPriTQJJJwZLeXIbmBGEcGz8v+gJvbhFzh2MRZKpDHf3KEemagfaMSyGB04KrCKmYKXo0iTPJKwAKRqB7g6r+nFpdWw9/TjPfKKsrljW8NJ+qvyVaKRuva0O/K8FuzjDbnDNaxq4A9Lr9qdzDt0acUc3JyanlLHzDGorZWq2FYOCrU0Wpt1M2EvPN/aA3QJuCFaa1OxZvXpXyugxbAkCOfdLXDLrj8LpWDX9qrIsAnG3B2HDq6TDmb1TTw31oEN3NroclvE9YQiyl4KDOTjxJZYr/6J+jTN1KOcul/2Eg09djP4ePW4lR3Q3qlXrac63RhogC8xp0LL8
- COVERALLS_SERVICE_NAME=travis-ci
19 changes: 13 additions & 6 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = function(config) {
config.set({
let configuration = {

frameworks: ["jasmine", "karma-typescript"],

Expand All @@ -17,16 +17,17 @@ module.exports = function(config) {

// Uncomment below if you want the default html
// coverage report + a summary on the console
/*
karmaTypescriptConfig: {
reports:
{
"html": "coverage",
"lcovonly": "coverage",
"text-summary": "" // destination "" will redirect output to the console
}
},
//*/

coverageReporter: {
type: 'lcovonly', // lcov or lcovonly are required for generating lcov.info files
dir: 'coverage/'
},
// Uncomment below if you want to disable code coverage
// instrumentation during debugging of tests
/*
Expand All @@ -36,5 +37,11 @@ module.exports = function(config) {
//*/

browsers: ["Chrome"]
});
};

if (process.env.TRAVIS){
configuration.reporters.push('coverage', 'coveralls');
}

config.set(configuration);
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"karma": "^1.3.0",
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-coveralls": "^1.1.2",
"karma-jasmine": "^1.1.0",
"karma-typescript": "^2.1.5",
"matchdep": "^1.0.1",
Expand Down

0 comments on commit d795b99

Please sign in to comment.