var path = require('path');
var webpackConfig = require('./webpack/webpack.test.babel');

module.exports = function(config) {
  config.set({
    frameworks: ['mocha'],

    browsers:  process.env.TRAVIS
      ? ['ChromeTravis']
      : ['Chrome'],

    autoWatch: process.env.TRAVIS ? false : true,
    singleRun: process.env.TRAVIS ? true : false,

    files: [
      'app/**/*.test.js'
    ],

    preprocessors: {
      ['app/**/*.test.js']: ['webpack', 'sourcemap'],
    },

    webpack: webpackConfig
  });
};

@@ -211,17 +211,19 @@
  %5B'Chrom
-e
+ium
 Travis'%5D
@@ -500,16 +500,139 @@
 ckConfig
+,%0A%0A    customLaunchers: %7B%0A      ChromiumTravis: %7B%0A          base: 'Chrome',%0A          flags: %5B'--no-sandbox'%5D%0A      %7D%0A    %7D
 %0A  %7D);%0A%7D

set up ChromiumTravis karma launcher