/* jshint ignore:start */
module.exports = (() => {
  const config = {
    src_folders: ['test/e2e'],
    output_folder: 'test/reports',

    selenium: {
      start_process: true,
      server_path: 'test/libs/selenium-server-standalone.jar',
      port: 4444,
      cli_args: {
        'webdriver.chrome.driver': 'node_modules/.bin/chromedriver'
      }
    },

    test_settings: {
      default: {
        launch_url: 'http://localhost:3000/test/e2e/html',
        selenium_port: 4444,
        selenium_host: 'localhost',
        desiredCapabilities: {
          browserName: 'chrome',
          javascriptEnabled: true
        },
        filter: 'test/e2e/**/*.test.js'
      },
      ie9: {
        desiredCapabilities: {
          browserName: 'internet explorer',
          platform: 'Windows 7',
          version: '9.0'
        }
      },
      ie10: {
        desiredCapabilities: {
          browserName: 'internet explorer',
          platform: 'Windows 8',
          version: '10.0'
        }
      },
      ie11: {
        desiredCapabilities: {
          browserName: 'internet explorer',
          platform: 'Windows 8.1',
          version: '11.0'
        }
      },
      ie_edge: {
        desiredCapabilities: {
          browserName: 'microsoftedge',
          platform: 'Windows 10',
          version: 'latest'
        }
      },
      chrome: {
        desiredCapabilities: {
          browserName: 'chrome',
          platform: 'Windows 8',
          version: 'latest'
        }
      },
      firefox: {
        desiredCapabilities: {
          browserName: 'firefox',
          platform: 'Windows 8',
          version: 'latest'
        }
      },
      safari: {
        desiredCapabilities: {
          browserName: 'safari',
          platform: 'OS X 10.10',
          version: 'latest'
        }
      }
    }
  };

  if (process.env.TRAVIS) {
    config.test_settings.default = {
      silent: true,
      selenium_host: 'ondemand.saucelabs.com',
      selenium_port: 80,
      username: process.env.SAUCE_USERNAME,
      access_key: process.env.SAUCE_ACCESS_KEY,
      build: 'build-' + process.env.TRAVIS_JOB_NUMBER,
      'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER,
      filter: 'test/e2e/**/*.test.js'
    };
  }

  return config;
})();
/* jshint ignore:end */

@@ -822,16 +822,137 @@
 n: '9.0'
+,%0A          build: 'build-' + process.env.TRAVIS_JOB_NUMBER,%0A          'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER
 %0A       
@@ -1110,16 +1110,137 @@
 : '10.0'
+,%0A          build: 'build-' + process.env.TRAVIS_JOB_NUMBER,%0A          'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER
 %0A       
@@ -1400,16 +1400,137 @@
 : '11.0'
+,%0A          build: 'build-' + process.env.TRAVIS_JOB_NUMBER,%0A          'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER
 %0A       
@@ -1682,32 +1682,153 @@
 ersion: 'latest'
+,%0A          build: 'build-' + process.env.TRAVIS_JOB_NUMBER,%0A          'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER
 %0A        %7D%0A     
@@ -1963,32 +1963,153 @@
 ersion: 'latest'
+,%0A          build: 'build-' + process.env.TRAVIS_JOB_NUMBER,%0A          'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER
 %0A        %7D%0A     
@@ -2246,32 +2246,153 @@
 ersion: 'latest'
+,%0A          build: 'build-' + process.env.TRAVIS_JOB_NUMBER,%0A          'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER
 %0A        %7D%0A     
@@ -2536,16 +2536,137 @@
 'latest'
+,%0A          build: 'build-' + process.env.TRAVIS_JOB_NUMBER,%0A          'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER
 %0A       
@@ -2749,24 +2749,81 @@
 default = %7B%0A
+      launch_url: 'http://localhost:3000/test/e2e/html',%0A
       silent
@@ -2998,121 +2998,8 @@
 EY,%0A
-      build: 'build-' + process.env.TRAVIS_JOB_NUMBER,%0A      'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER,%0A
     

fix wrong properies to integrate with sauce labs