Skip to content

Commit ab0232f

Browse files
committed
fix(ci): add lcov reporting for coveralls
1 parent c5a2bd4 commit ab0232f

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ script:
2424
- "commitlint-travis"
2525
- "npm run lint"
2626
- "npm run test-travis"
27-
- "cat ./reports/coverage/lcov.info | ./node_modules/.bin/coveralls"
27+
- "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"
2828

2929
sudo: false

karma.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ module.exports = function (config) {
1717
useIframe: false // launch in a new windows instead of iframe so nodeIntegration will work.
1818
},
1919
coverageIstanbulReporter: {
20-
reports: [ 'html', 'lcovonly' ],
20+
reports: [ 'text-summary' ],
2121
fixWebpackSourcePaths: true
2222
},
2323
angularCli: {
2424
environment: 'dev'
2525
},
26-
reporters: ['progress', 'kjhtml'],
26+
reporters: ['progress', 'kjhtml', 'coverage-istanbul'],
2727
port: 9876,
2828
colors: true,
2929
logLevel: config.LOG_INFO,

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"ng": "ng",
99
"start": "electron . | ng serve",
1010
"build": "ng build --prod",
11-
"test": "ng test",
12-
"test-travis": "ng test -c travis.karma.conf.js",
11+
"test": "ng test --cc",
12+
"test-travis": "ng test -c travis.karma.conf.js --cc",
1313
"lint": "ng lint",
1414
"e2e": "ng e2e",
1515
"pack": "npm run build && electron-packager . --platform=darwin,win32,linux --arch=x64 --overwrite --out=bin"

travis.karma.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ module.exports = function (config) {
77
// travis-ci specific overrides.
88
config.set({
99
coverageIstanbulReporter: {
10-
reports: ['lcovonly'],
10+
reports: ['lcovonly', 'text-summary'],
1111
fixWebpackSourcePaths: true
1212
},
1313
angularCli: {
1414
environment: 'dev'
1515
},
16-
reporters: ['progress'],
16+
reporters: ['progress', 'coverage-istanbul'],
1717
port: 9876,
1818
logLevel: config.LOG_INFO,
1919
autoWatch: false,

0 commit comments

Comments
 (0)