Skip to content

Commit 89775af

Browse files
committed
fix(ci): streamline karma for ci
* single run * no autoWatch * no html reports * no html coverage reports
1 parent 69e2489 commit 89775af

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

travis.karma.conf.js

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,24 @@
11
// Karma configuration file, see link for more information
22
// https://karma-runner.github.io/1.0/config/configuration-file.html
3-
3+
const baseConfig = require('./karma.conf');
44
module.exports = function (config) {
5+
// apply base config.
6+
baseConfig(config);
7+
// travis-ci specific overrides.
58
config.set({
6-
basePath: '',
7-
frameworks: ['jasmine', '@angular/cli'],
8-
plugins: [
9-
require('karma-jasmine'),
10-
require('karma-chrome-launcher'),
11-
require('karma-jasmine-html-reporter'),
12-
require('karma-coverage-istanbul-reporter'),
13-
require('@angular/cli/plugins/karma')
14-
],
15-
client:{
16-
clearContext: false // leave Jasmine Spec Runner output visible in browser
17-
},
189
coverageIstanbulReporter: {
19-
reports: [ 'html', 'lcovonly' ],
10+
reports: ['lcovonly'],
2011
fixWebpackSourcePaths: true
2112
},
2213
angularCli: {
2314
environment: 'dev'
2415
},
25-
reporters: ['progress', 'kjhtml'],
16+
reporters: ['progress'],
2617
port: 9876,
27-
colors: true,
2818
logLevel: config.LOG_INFO,
29-
autoWatch: true,
19+
autoWatch: false,
3020
browsers: ['ChromeHeadlessNoSandbox'],
31-
singleRun: false,
21+
singleRun: true,
3222
customLaunchers: {
3323
ChromeHeadlessNoSandbox: {
3424
base: 'ChromeHeadless',

0 commit comments

Comments
 (0)