karma.conf.js 1.4 KB

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