browser-integration.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. include:
  2. # browser-integration
  3. - local: '/.gitlab/ci/browser-integration/capybara_chrome.yml'
  4. - local: '/.gitlab/ci/browser-integration/capybara_ff.yml'
  5. - local: '/.gitlab/ci/browser-integration/idoit_chrome.yml'
  6. - local: '/.gitlab/ci/browser-integration/otrs_chrome.yml'
  7. - local: '/.gitlab/ci/browser-integration/zendesk_chrome.yml'
  8. .template_browser-integration_capybara: &template_browser-integration_capybara
  9. stage: browser-integration
  10. dependencies:
  11. - browser:build
  12. extends:
  13. - .env_base
  14. - .variables_app_restart_cmd
  15. - .variables_es
  16. - .services_mysql_postgresql_elasticsearch_selenium_imap
  17. variables:
  18. RAILS_ENV: "test"
  19. script:
  20. - bundle exec rake zammad:ci:test:prepare
  21. - bundle exec rspec --fail-fast --pattern "spec/system/**/*_spec.rb" -t integration
  22. .template_browser-integration: &template_browser-integration
  23. stage: browser-integration
  24. dependencies:
  25. - browser:build
  26. extends:
  27. - .env_base
  28. - .variables_app_restart_cmd
  29. - .services_postgresql_selenium
  30. variables:
  31. RAILS_ENV: "production"
  32. AUTO_WIZARD_FILE: "contrib/auto_wizard_test.json"
  33. script:
  34. - RAILS_ENV=test bundle exec rake db:create
  35. - cp $AUTO_WIZARD_FILE auto_wizard.json
  36. - bundle exec rake zammad:ci:test:start
  37. - bundle exec rails test $TEST_FILE
  38. .template_browser-integration_import: &template_browser-integration_import
  39. stage: browser-integration
  40. dependencies:
  41. - browser:build
  42. extends:
  43. - .env_base
  44. - .services_postgresql_selenium
  45. variables:
  46. RAILS_ENV: "production"
  47. BROWSER: "chrome"
  48. RAILS_SERVE_STATIC_FILES: "true"
  49. script:
  50. - RAILS_ENV=test bundle exec rake db:create
  51. - bundle exec rake zammad:ci:test:start
  52. - bundle exec rails test $TEST_FILE
  53. # we need at least one job to store and include this template
  54. # $IGNORE is not defined
  55. ignore:
  56. stage: test
  57. only:
  58. variables:
  59. - $IGNORE
  60. script:
  61. - ''