karma.conf.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. module.exports = function(config) {
  2. var configuration = {
  3. frameworks: ['jasmine'],
  4. files: [
  5. 'node_modules/angular/angular.js',
  6. 'node_modules/angular-mocks/angular-mocks.js',
  7. 'node_modules/angular-translate/dist/angular-translate.min.js',
  8. 'node_modules/angular-aria/angular-aria.min.js',
  9. 'node_modules/angular-animate/angular-animate.min.js',
  10. 'node_modules/angular-material/angular-material.min.js',
  11. 'node_modules/@saltyrtc/chunked-dc/dist/chunked-dc.es5.js',
  12. 'node_modules/autolinker/dist/Autolinker.min.js',
  13. 'node_modules/regenerator-runtime/runtime.js',
  14. 'dist/app.js',
  15. 'dist/ts-tests.js',
  16. 'tests/filters.js',
  17. 'tests/service/message.js',
  18. 'tests/service/mime.js',
  19. 'tests/service/qrcode.js',
  20. 'tests/service/uri.js',
  21. 'tests/service/webclient.js',
  22. 'tests/service/string.js',
  23. 'tests/service/browser.js',
  24. 'tests/service/keystore.js',
  25. 'tests/service/notification.js',
  26. 'tests/helpers.js',
  27. ],
  28. customLaunchers: {
  29. Chromium_ci_gitlab: {
  30. base: 'Chromium',
  31. flags: ['--no-sandbox'],
  32. },
  33. Chrome_ci_circle: {
  34. base: 'Chrome',
  35. flags: ['--no-sandbox'],
  36. },
  37. }
  38. };
  39. if (process.env.GITLAB_CI) {
  40. configuration.browsers = ['Chromium_ci_gitlab', 'Firefox'];
  41. } else if (process.env.CIRCLECI) {
  42. configuration.browsers = ['Chrome_ci_circle', 'Firefox'];
  43. } else {
  44. configuration.browsers = ['Chromium', 'Firefox'];
  45. }
  46. config.set(configuration);
  47. }