import karmaCommonConfig from './karma.common';

const customLaunchers = {
    SL_Chrome: {
        base: 'SauceLabs',
        browserName: 'chrome'
    },
    SL_Firefox: {
        base: 'SauceLabs',
        browserName: 'firefox'
    },
    SL_Safari: {
        base: 'SauceLabs',
        browserName: 'safari'
    },
    SL_IE: {
        base: 'SauceLabs',
        browserName: 'internet explorer'
    },
    SL_iOS: {
        base: 'SauceLabs',
        browserName: 'iphone'
    },
    SL_Android: {
        base: 'SauceLabs',
        browserName: 'android'
    }
};

export default {
    ...karmaCommonConfig,
    singleRun: true,
    autoWatch: false,
    sauceLabs: {
        testName: 'travis',
        public: 'public'
    },
    customLaunchers,
    reporters: [ 'mocha', 'saucelabs' ],
    browsers: Object.keys(customLaunchers)
};

@@ -393,16 +393,39 @@
 xplorer'
+,%0A        version: '11'
 %0A    %7D,%0A
@@ -494,16 +494,40 @@
 'iphone'
+,%0A        version: '9.2'
 %0A    %7D,%0A
@@ -601,16 +601,40 @@
 android'
+,%0A        version: '5.1'
 %0A    %7D%0A%7D

fix Sauce Labs browsers versions