Skip to content

Commit

Permalink
configure coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Łukasz Gałka committed Oct 25, 2017
1 parent ce81f07 commit d2cf163
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ before_script:
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start

script:
- istanbul cover jasmine-node --captureExceptions spec/ && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
after_success:
- npm run coveralls
11 changes: 9 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ module.exports = function(config) {
},
compilerOptions: {
lib: ['ES2015', 'DOM']
},
reports:
{
"lcovonly": {
"directory": "coverage",
"filename": "lcov.info",
"subdirectory": "lcovonly"
},
"html": "coverage"
}
},

Expand All @@ -48,11 +57,9 @@ module.exports = function(config) {
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress', 'karma-typescript'],


// web server port
port: 9876,


// enable / disable colors in the output (reporters and logs)
colors: true,

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"lite": "lite-server",
"playground:build": "tsc -p playground -w",
"playground": "concurrently \"npm run build:watch\" \"npm run playground:build\" \"npm run lite\"",
"test": "tsc && karma start"
"test": "tsc && karma start",
"coveralls": "coveralls < coverage/lcovonly/lcov.info"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit d2cf163

Please sign in to comment.