karma.conf.js 1.5 KB

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