karma.conf.saucelabs.js 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // sl_ie_11: {
  2. // base: 'SauceLabs',
  3. // browserName: 'internet explorer',
  4. // platform: 'Windows 10',
  5. // version: '11'
  6. // },
  7. // sl_android: {
  8. // base: 'SauceLabs',
  9. // browserName: 'Browser',
  10. // platform: 'Android',
  11. // version: '4.4',
  12. // deviceName: 'Samsung Galaxy S3 Emulator',
  13. // deviceOrientation: 'portrait'
  14. // }
  15. module.exports = function (config) {
  16. 'use strict';
  17. config.set({
  18. basePath: '../../',
  19. browserNoActivityTimeout: 1800000,
  20. urlRoot: '/karma',
  21. frameworks: ['mocha', 'chai', 'sinon'],
  22. files: [
  23. './Tools/DevLoader/BabylonLoader.js',
  24. './tests/validation/index.css',
  25. './tests/validation/integration.js',
  26. { pattern: 'dist/**/*', watched: false, included: false, served: true },
  27. { pattern: 'assets/**/*', watched: false, included: false, served: true },
  28. { pattern: 'tests/**/*', watched: false, included: false, served: true },
  29. { pattern: 'Playground/scenes/**/*', watched: false, included: false, served: true },
  30. { pattern: 'Playground/textures/**/*', watched: false, included: false, served: true },
  31. { pattern: 'Playground/sounds/**/*', watched: false, included: false, served: true },
  32. { pattern: 'Tools/DevLoader/**/*', watched: false, included: false, served: true },
  33. { pattern: 'Tools/Gulp/config.json', watched: false, included: false, served: true },
  34. ],
  35. proxies: {
  36. '/': '/base/'
  37. },
  38. port: 1338,
  39. colors: true,
  40. autoWatch: false,
  41. singleRun: false,
  42. // level of logging
  43. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  44. logLevel: config.LOG_ERROR,
  45. sauceLabs: {
  46. testName: 'Babylon JS Validation Tests',
  47. startConnect: false,
  48. tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER,
  49. build: process.env.TRAVIS_BUILD_NUMBER,
  50. tags: [process.env.TRAVIS_BRANCH, process.env.TRAVIS_PULL_REQUEST],
  51. public: 'public'
  52. },
  53. customLaunchers: {
  54. sl_firefox: {
  55. base: 'SauceLabs',
  56. browserName: 'firefox',
  57. platform: 'Windows 10',
  58. version: '57',
  59. tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER
  60. }
  61. },
  62. browsers: ['sl_firefox'],
  63. reporters: ['dots', 'saucelabs'],
  64. singleRun: true
  65. });
  66. };