karma.conf.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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/helpers.js',
  25. ],
  26. customLaunchers: {
  27. Chromium_ci_gitlab: {
  28. base: 'Chromium',
  29. flags: ['--no-sandbox'],
  30. },
  31. Chrome_ci_circle: {
  32. base: 'Chrome',
  33. flags: ['--no-sandbox'],
  34. },
  35. }
  36. };
  37. if (process.env.GITLAB_CI) {
  38. configuration.browsers = ['Chromium_ci_gitlab', 'Firefox'];
  39. } else if (process.env.CIRCLECI) {
  40. configuration.browsers = ['Chrome_ci_circle', 'Firefox'];
  41. } else {
  42. configuration.browsers = ['Chromium', 'Firefox'];
  43. }
  44. config.set(configuration);
  45. }