|
1 | 1 | // Karma configuration file, see link for more information |
2 | 2 | // https://karma-runner.github.io/1.0/config/configuration-file.html |
3 | | - |
| 3 | +const baseConfig = require('./karma.conf'); |
4 | 4 | module.exports = function (config) { |
| 5 | + // apply base config. |
| 6 | + baseConfig(config); |
| 7 | + // travis-ci specific overrides. |
5 | 8 | 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 | | - }, |
18 | 9 | coverageIstanbulReporter: { |
19 | | - reports: [ 'html', 'lcovonly' ], |
| 10 | + reports: ['lcovonly'], |
20 | 11 | fixWebpackSourcePaths: true |
21 | 12 | }, |
22 | 13 | angularCli: { |
23 | 14 | environment: 'dev' |
24 | 15 | }, |
25 | | - reporters: ['progress', 'kjhtml'], |
| 16 | + reporters: ['progress'], |
26 | 17 | port: 9876, |
27 | | - colors: true, |
28 | 18 | logLevel: config.LOG_INFO, |
29 | | - autoWatch: true, |
| 19 | + autoWatch: false, |
30 | 20 | browsers: ['ChromeHeadlessNoSandbox'], |
31 | | - singleRun: false, |
| 21 | + singleRun: true, |
32 | 22 | customLaunchers: { |
33 | 23 | ChromeHeadlessNoSandbox: { |
34 | 24 | base: 'ChromeHeadless', |
|
0 commit comments