browser-core.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. include:
  2. # browser-core
  3. - local: '/.gitlab/ci/browser-core/build.yml'
  4. - local: '/.gitlab/ci/browser-core/autowizard_chrome.yml'
  5. - local: '/.gitlab/ci/browser-core/autowizard_ff.yml'
  6. - local: '/.gitlab/ci/browser-core/api_client_php.yml'
  7. - local: '/.gitlab/ci/browser-core/api_client_ruby.yml'
  8. - local: '/.gitlab/ci/browser-core/capybara_chrome.yml'
  9. - local: '/.gitlab/ci/browser-core/capybara_ff.yml'
  10. - local: '/.gitlab/ci/browser-core/chrome.yml'
  11. - local: '/.gitlab/ci/browser-core/firefox.yml'
  12. .template_browser-core: &template_browser-core
  13. stage: browser-core
  14. dependencies:
  15. - browser:build
  16. extends:
  17. - .env_base
  18. - .variables_es
  19. - .variables_app_restart_cmd
  20. - .services_mysql_postgresql_elasticsearch_selenium_imap_redis_memcached
  21. variables:
  22. RAILS_ENV: "production"
  23. script:
  24. - script/build/test_slice_tests.sh $TEST_SLICE
  25. - RAILS_ENV=test bundle exec rake db:create
  26. - bundle exec rake zammad:ci:test:start[with_elasticsearch]
  27. - time bundle exec rails test --fail-fast test/browser
  28. .template_browser-core_autowizard: &template_browser-core_autowizard
  29. stage: browser-core
  30. dependencies:
  31. - browser:build
  32. extends:
  33. - .env_base
  34. - .variables_app_restart_cmd
  35. - .services_postgresql_selenium
  36. variables:
  37. RAILS_ENV: "production"
  38. AUTO_WIZARD_FILE: "contrib/auto_wizard_example.json"
  39. TEST_FILE: "test/integration/auto_wizard_browser_test.rb"
  40. script:
  41. - RAILS_ENV=test bundle exec rake db:create
  42. - cp $AUTO_WIZARD_FILE auto_wizard.json
  43. - bundle exec rake zammad:ci:test:start
  44. - bundle exec rails test $TEST_FILE
  45. .template_browser-core_api_client: &template_browser-core_api_client
  46. stage: browser-core
  47. dependencies:
  48. - browser:build
  49. extends:
  50. - .env_base
  51. - .variables_app_restart_cmd
  52. - .services_mysql_postgresql_redis_memcached
  53. variables:
  54. RAILS_ENV: "production"
  55. .template_browser-capybara: &template_browser-capybara
  56. dependencies:
  57. - browser:build
  58. extends:
  59. - .env_base
  60. - .variables_es
  61. - .services_mysql_postgresql_elasticsearch_selenium_imap_redis_memcached
  62. variables:
  63. RAILS_ENV: "test"
  64. REDIS_URL: "redis://redis:6379"
  65. .template_browser-core_capybara: &template_browser-core_capybara
  66. extends:
  67. - .template_browser-capybara
  68. stage: browser-core
  69. script:
  70. - bundle exec rake zammad:ci:test:prepare
  71. - bundle exec rspec --fail-fast -t type:system -t ~integration
  72. # we need at least one job to store and include this template
  73. # $IGNORE is not defined
  74. ignore:
  75. stage: test
  76. only:
  77. variables:
  78. - $IGNORE
  79. script:
  80. - ''