sauce.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. version: '39'
  19. },
  20. sl_firefox: {
  21. base: 'SauceLabs',
  22. browserName: 'firefox',
  23. version: '33'
  24. },
  25. sl_mac_safari: {
  26. base: 'SauceLabs',
  27. browserName: "safari",
  28. platform: "OS X 10.10",
  29. version: "8"
  30. }
  31. },
  32. // ie family
  33. {
  34. sl_ie_9: {
  35. base: 'SauceLabs',
  36. browserName: "internet explorer",
  37. platform: "Windows 7",
  38. version: "9"
  39. },
  40. sl_ie_10: {
  41. base: 'SauceLabs',
  42. browserName: "internet explorer",
  43. platform: "Windows 8",
  44. version: "10"
  45. },
  46. sl_ie_11: {
  47. base: 'SauceLabs',
  48. browserName: 'internet explorer',
  49. platform: 'Windows 8.1',
  50. version: '11'
  51. }
  52. },
  53. // mobile
  54. {
  55. sl_ios_safari: {
  56. base: 'SauceLabs',
  57. browserName: 'iphone',
  58. platform: 'OS X 10.9',
  59. version: '8.1'
  60. },
  61. sl_android: {
  62. base: 'SauceLabs',
  63. browserName: 'android',
  64. platform: 'Linux',
  65. version: '4.2'
  66. }
  67. }
  68. ]
  69. for (var i = 0; i < 3; i++) {
  70. exports['batch' + (i+1)] = {
  71. sauceLabs: sauceConfig,
  72. // mobile emulators are really slow
  73. captureTimeout: 300000,
  74. browserNoActivityTimeout: 300000,
  75. customLaunchers: batches[i],
  76. browsers: Object.keys(batches[i]),
  77. reporters: ['progress', 'saucelabs']
  78. }
  79. }