module.exports = function (config) {
  config.set({
    files: [
      'test/**/*.spec.js',
      { pattern: 'test/exceptions/data/*.js', included: false, watched: false }
    ],
    frameworks: ['browserify', 'jasmine'],
    preprocessors: {
      'test/**/*.spec.js': ['browserify']
    },
    plugins: [
      'karma-failed-reporter',
    // 'karma-chrome-launcher',
      'karma-phantomjs2-launcher',
      'karma-firefox-launcher',
      'karma-jasmine',
      'karma-spec-reporter',
      'karma-browserify'
    ],
    browsers: ['PhantomJS2'], // Chrome, Firefox, PhantomJS2
    reporters: ['spec', 'failed'],
    browserify: {
      debug: true
    }
  })
};

@@ -36,19 +36,18 @@
 %7B%0A  
-config.set(
+var cfg = 
 %7B%0A  
@@ -334,107 +334,8 @@
 r',%0A
-    // 'karma-chrome-launcher',%0A      'karma-phantomjs2-launcher',%0A      'karma-firefox-launcher',%0A
     
@@ -433,20 +433,8 @@
 s: %5B
-'PhantomJS2'
 %5D, /
@@ -547,9 +547,268 @@
 %0A  %7D
+%0A%0A  if (process.env.TRAVIS) %7B%0A    // 'karma-chrome-launcher',%0A    cfg.plugins.push('karma-firefox-launcher')%0A    cfg.browsers.push('Firefox')%0A  %7D else %7B%0A    cfg.plugins.push('karma-phantomjs2-launcher')%0A    cfg.browsers.push('PhantomJS2')%0A  %7D%0A%0A  config.set(cfg
 )%0A%7D
-;
 %0A

fix karma.conf.js to run firefox only on travis