karma.conf.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. 'dist/app.js',
  13. 'dist/ts-tests.js',
  14. 'tests/filters.js',
  15. 'tests/service/message.js',
  16. 'tests/service/mime.js',
  17. 'tests/service/qrcode.js',
  18. 'tests/service/uri.js',
  19. 'tests/service/webclient.js',
  20. 'tests/service/string.js',
  21. 'tests/service/browser.js',
  22. 'tests/service/keystore.js',
  23. 'tests/service/notification.js',
  24. 'tests/service/receiver.js',
  25. 'tests/ts/helpers.ts',
  26. ],
  27. customLaunchers: {
  28. Chromium_ci_gitlab: {
  29. base: 'Chromium',
  30. flags: ['--no-sandbox'],
  31. },
  32. Chrome_ci_circle: {
  33. base: 'Chrome',
  34. flags: ['--no-sandbox'],
  35. },
  36. }
  37. };
  38. if (process.env.GITLAB_CI) {
  39. configuration.browsers = ['Chromium_ci_gitlab', 'Firefox'];
  40. } else if (process.env.CIRCLECI) {
  41. configuration.browsers = ['Chrome_ci_circle', 'Firefox'];
  42. } else {
  43. configuration.browsers = ['Chromium', 'Firefox'];
  44. }
  45. config.set(configuration);
  46. };