2
0

saucelabs.config.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. var sauceConfig = {
  2. testName: 'Vue.js unit tests',
  3. recordScreenshots: false,
  4. build: process.env.TRAVIS_JOB_ID || Date.now()
  5. }
  6. /**
  7. * Having too many tests running concurrently on saucelabs
  8. * causes timeouts and errors, so we have to run them in
  9. * smaller batches.
  10. */
  11. var batches = [
  12. // the cool kids
  13. {
  14. sl_chrome: {
  15. base: 'SauceLabs',
  16. browserName: 'chrome',
  17. platform: 'Windows 7'
  18. },
  19. sl_firefox: {
  20. base: 'SauceLabs',
  21. browserName: 'firefox'
  22. },
  23. sl_mac_safari: {
  24. base: 'SauceLabs',
  25. browserName: 'safari',
  26. platform: 'OS X 10.10'
  27. }
  28. },
  29. // ie family
  30. {
  31. sl_ie_9: {
  32. base: 'SauceLabs',
  33. browserName: 'internet explorer',
  34. platform: 'Windows 7',
  35. version: '9'
  36. },
  37. sl_ie_10: {
  38. base: 'SauceLabs',
  39. browserName: 'internet explorer',
  40. platform: 'Windows 8',
  41. version: '10'
  42. },
  43. sl_ie_11: {
  44. base: 'SauceLabs',
  45. browserName: 'internet explorer',
  46. platform: 'Windows 8.1',
  47. version: '11'
  48. }
  49. },
  50. // mobile
  51. {
  52. sl_ios_safari: {
  53. base: 'SauceLabs',
  54. browserName: 'iphone',
  55. platform: 'OS X 10.9',
  56. version: '7.1'
  57. },
  58. sl_android: {
  59. base: 'SauceLabs',
  60. browserName: 'android',
  61. platform: 'Linux',
  62. version: '4.2'
  63. }
  64. }
  65. ]
  66. for (var i = 0; i < 3; i++) {
  67. exports['batch' + (i + 1)] = {
  68. sauceLabs: sauceConfig,
  69. // mobile emulators are really slow
  70. captureTimeout: 300000,
  71. browserNoActivityTimeout: 300000,
  72. customLaunchers: batches[i],
  73. browsers: Object.keys(batches[i]),
  74. reporters: ['progress', 'saucelabs']
  75. }
  76. }