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 508c8b3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 28 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
47 changes: 19 additions & 28 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,40 +1,31 @@
module.exports = function(config) {
config.set({
let configuration = {

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

files: [
{
pattern: "src/*.ts"
pattern: 'src/*.ts'
}
],

preprocessors: {
"**/*.ts": ["karma-typescript"]
'**/*.ts': ['karma-typescript']
},

reporters: ["progress", "karma-typescript"],

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

// Uncomment below if you want to disable code coverage
// instrumentation during debugging of tests
/*
karmaTypescriptConfig: {
disableCodeCoverageInstrumentation: true
},
//*/

browsers: ["Chrome"]
});
reporters: ['progress', 'karma-typescript'],

coverageReporter: {
type: 'lcov',
dir: 'coverage/'
},

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 508c8b3

Please sign in to comment.