'use strict';

module.exports = function(config) {

    var configuration = {
        autoWatch : false,

        frameworks: ['jasmine'],

        ngHtml2JsPreprocessor: {
            stripPrefix: 'src/',
            moduleName: 'gulpAngular'
        },

        browsers : ['PhantomJS'],

        plugins : [
          'karma-phantomjs-launcher',
          'karma-jasmine',
          'karma-ng-html2js-preprocessor'
        ],

        preprocessors: {
            'src/**/*.html': ['ng-html2js']
        }
    };

    // This block is needed to execute Chrome on Travis
    // If you ever plan to use Chrome and Travis, you can keep it
    // If not, you can safely remove it
    // https://github.com/karma-runner/karma/issues/1144#issuecomment-53633076
    if (configuration.browsers[0] === 'Chrome' && process.env.TRAVIS) {
        configuration.customLaunchers = {
            'chrome-travis-ci': {
                base: 'Chrome',
                flags: ['--no-sandbox']
            }
        };
        configuration.browsers = ['chrome-travis-ci'];
    }

    config.set(configuration);
};

@@ -514,556 +514,8 @@
 %7D;%0A%0A
-    // This block is needed to execute Chrome on Travis%0A    // If you ever plan to use Chrome and Travis, you can keep it%0A    // If not, you can safely remove it%0A    // https://github.com/karma-runner/karma/issues/1144#issuecomment-53633076%0A    if (configuration.browsers%5B0%5D === 'Chrome' && process.env.TRAVIS) %7B%0A        configuration.customLaunchers = %7B%0A            'chrome-travis-ci': %7B%0A                base: 'Chrome',%0A                flags: %5B'--no-sandbox'%5D%0A            %7D%0A        %7D;%0A        configuration.browsers = %5B'chrome-travis-ci'%5D;%0A    %7D%0A%0A
     

remove travis-specific stuff from karma for now