module.exports = function(config) {

  if (!process.env.SAUCE_USERNAME || !process.env.SAUCE_ACCESS_KEY) {
    console.log('Make sure the SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables are set.');
    process.exit(1);
  }

  // Browsers to run on Sauce Labs
  // Check out https://saucelabs.com/platforms for all browser/OS combos
  var customLaunchers = {

    // sl_ms_edge: {
    //   base: "SauceLabs",
    //   browserName: "microsoftedge",
    //   platform: "Windows 10",
    // },
    // sl_ie_11: {
    //   base: "SauceLabs",
    //   browserName: "Internet Explorer",
    //   platform: "Windows 8.1",
    //   version: "11"
    // },
    // sl_ie_10: {
    //   base: "SauceLabs",
    //   browserName: "Internet Explorer",
    //   platform: "Windows 8",
    //   version: "10"
    // },
    sl_ie_9: {
      base: 'SauceLabs',
      browserName: 'internet explorer',
      platform: 'Windows 7',
      version: '9'
    },
    sl_ie_8: {
      base: 'SauceLabs',
      browserName: 'internet explorer',
      platform: 'Windows 7',
      version: '8'
    }
  };

  var sauceLabs = {
    startConnect: false,
    testName: 'availity-angular',
    recordScreenshots: false,
  };

  if(process.env.TRAVIS_JOB_NUMBER) {
    sauceLabs.tunnelIdentifier = process.env.TRAVIS_JOB_NUMBER;
  } else {
    sauceLabs.startConnect = true;
  }

  config.set({
    basePath: '',
    autoWatch: false,
    browsers: Object.keys(customLaunchers),
    customLaunchers: customLaunchers,
    frameworks: ['jasmine'],
    reporters: ['mocha', 'saucelabs'],
    port: 9876,
    colors: true,
    sauceLabs: sauceLabs,
    logLevel: config.LOG_INFO,
    captureTimeout: 120000,
    browserDisconnectTimeout: 10000,
    browserDisconnectTolerance: 2,
    browserNoActivityTimeout: 20000,
    singleRun: true,
    preprocessors: {
      '**/*-tpl.html': ['ng-html2js'],
      '**/*-fixture.html': ['ng-html2js']
    },
    ngHtml2JsPreprocessor: {
      // strip this from the file path
      stripPrefix: 'lib/',
      moduleName: 'availity.ui.templates'
    }
  });
};

@@ -1,12 +1,13 @@
+%0A
 module.expor
@@ -802,24 +802,25 @@
 %22%0A    // %7D,%0A
+%0A
     sl_ie_9:
@@ -1350,16 +1350,232 @@
 e;%0A  %7D%0A%0A
+  var files = config.test.src%0A    .concat(config.lib.src)%0A    .concat(config.ui.src)%0A    .concat(config.lib.specs)%0A    .concat(config.ui.specs)%0A    .concat('lib/**/*-tpl.html')%0A    .concat('lib/**/*-fixture.html');%0A%0A
   config
@@ -1599,16 +1599,34 @@
 th: '',%0A
+    files: files,%0A
     auto
@@ -2062,24 +2062,28 @@
 s: %7B%0A      '
+lib/
 **/*-tpl.htm
@@ -2109,16 +2109,20 @@
 %0A      '
+lib/
 **/*-fix

add files to karma sauce config