// Karma configuration file, see link for more information
// https://karma-runner.github.io/0.13/config/configuration-file.html

module.exports = function (config) {
  config.set({
    basePath: '',
    frameworks: ['jasmine', 'angular-cli'],
    plugins: [
      require('karma-jasmine'),
      require('karma-chrome-launcher'),
      require('karma-remap-istanbul'),
      require('angular-cli/plugins/karma')
    ],
    files: [
      { pattern: './src/test.ts', watched: false }
    ],
    preprocessors: {
      './src/test.ts': ['angular-cli']
    },
    remapIstanbulReporter: {
      reports: {
        html: 'coverage',
        lcovonly: './coverage/coverage.lcov'
      }
    },
    angularCli: {
      config: './angular-cli.json',
      environment: 'dev'
    },
    reporters: ['progress', 'karma-remap-istanbul'],
    port: 9876,
    colors: true,
    logLevel: config.LOG_INFO,
    autoWatch: true,
    browsers: ['Chrome'],
    singleRun: false
  });
};

@@ -166,19 +166,28 @@
 %7B%0A  
+var 
 config
-.set(
+uration = 
 %7B%0A  
@@ -442,17 +442,16 @@
 %0A      %7B
- 
 pattern:
@@ -482,17 +482,16 @@
 d: false
- 
 %7D%0A    %5D,
@@ -965,12 +965,275 @@
 alse
-%0A  %7D
+,%0A%0A    // browser for travis-ci%0A    customLaunchers: %7B%0A      Chrome_travis_ci: %7B%0A        base: 'Chrome',%0A        flags: %5B'--no-sandbox'%5D%0A      %7D%0A    %7D%0A  %7D;%0A%0A  if (process.env.TRAVIS) %7B%0A    configuration.browsers = %5B'Chrome_travis_ci'%5D;%0A  %7D%0A%0A  config.set(configuration
 );%0A%7D

Add chrome browser for travis in karma.conf.js