browser-integration.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. .template_browser-integration_capybara: &template_browser-integration_capybara
  8. stage: browser-integration
  9. dependencies:
  10. - browser:build
  11. extends:
  12. - .env_base
  13. - .variables_app_restart_cmd
  14. - .variables_es
  15. variables:
  16. RAILS_ENV: "test"
  17. script:
  18. - bundle exec rake zammad:ci:test:prepare
  19. - bundle exec rspec --fail-fast --pattern "spec/system/**/*_spec.rb" -t integration
  20. .template_browser-integration_capybara_chrome: &template_browser-integration_capybara_chrome
  21. extends:
  22. - .template_browser-integration_capybara
  23. - .services_mysql_postgresql_elasticsearch_selenium_chrome_imap_redis_memcached
  24. .template_browser-integration_capybara_firefox: &template_browser-integration_capybara_firefox
  25. extends:
  26. - .template_browser-integration_capybara
  27. - .services_mysql_postgresql_elasticsearch_selenium_firefox_imap_redis_memcached
  28. .template_browser-integration_chrome: &template_browser-integration_chrome
  29. stage: browser-integration
  30. dependencies:
  31. - browser:build
  32. extends:
  33. - .env_base
  34. - .variables_app_restart_cmd
  35. - .services_postgresql_selenium_chrome
  36. variables:
  37. RAILS_ENV: "production"
  38. AUTO_WIZARD_FILE: "contrib/auto_wizard_test.json"
  39. script:
  40. - RAILS_ENV=test bundle exec rake db:create
  41. - cp $AUTO_WIZARD_FILE auto_wizard.json
  42. - bundle exec rake zammad:ci:test:start
  43. - bundle exec rails test $TEST_FILE
  44. .template_browser-integration_import_chrome: &template_browser-integration_import_chrome
  45. stage: browser-integration
  46. dependencies:
  47. - browser:build
  48. extends:
  49. - .env_base
  50. - .services_postgresql_selenium_chrome
  51. variables:
  52. RAILS_ENV: "production"
  53. RAILS_SERVE_STATIC_FILES: "true"
  54. script:
  55. - RAILS_ENV=test bundle exec rake db:create
  56. - bundle exec rake zammad:ci:test:start
  57. - bundle exec rails test $TEST_FILE
  58. # we need at least one job to store and include this template
  59. # $IGNORE is not defined
  60. ignore:
  61. stage: test
  62. only:
  63. variables:
  64. - $IGNORE
  65. script:
  66. - ''