/* eslint-env amd */
define(function() {
  var local = typeof process === 'undefined' ? null : !process.env.CI

  return {
    suites: ['test/test'],

    excludeInstrumentation: /^(?:test|node_modules)\//,

    tunnel: local ? 'NullTunnel' : 'SauceLabsTunnel',

    capabilities: {
      'idle-timeout': 320
    },

    environments: local ? [{browserName: 'chrome'}] : [
      {browserName: 'chrome'},
      {browserName: 'firefox'},
      // should test with IE 7 & 8, as well:
      // https://github.com/mightyiam/edited/issues/7
      {browserName: 'internet explorer', version: ['9', '10', '11']},
      {browserName: 'safari', version: ['6', '7', '8']},
      {browserName: 'opera', version: '30'},
      {
        browserName: 'android',
        deviceName: 'Android Emulator',
        version: '4.4'
      },
      {browserName: 'iphone'}
    ]
  }
})

/* eslint-env amd */
define(function() {
  var local = typeof process === 'undefined' ? null : !process.env.CI

  return {
    suites: ['test/test'],

    excludeInstrumentation: /^(?:test|node_modules)\//,

    tunnel: local ? 'NullTunnel' : 'SauceLabsTunnel',

    capabilities: {
      'idle-timeout': 320
    },

    environments: local ? [{browserName: 'chrome'}] : [
      {browserName: 'chrome'},
      {browserName: 'firefox'},
      // should test with IE 7 & 8, as well:
      // https://github.com/mightyiam/edited/issues/7
      {browserName: 'internet explorer', version: ['9', '10', '11']},
      {browserName: 'safari', version: ['6', '7', '8']},
      {
        browserName: 'android',
        deviceName: 'Android Emulator',
        version: '4.4'
      },
      {browserName: 'iphone'}
    ]
  }
})

Drop opera testing