__templates__.yml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. .template_browser-core:
  2. stage: browser
  3. extends:
  4. - .job_rules_default
  5. - .tags_docker_low_concurrency
  6. variables:
  7. RAILS_ENV: "production"
  8. script:
  9. - |
  10. script/build/test_slice_tests.sh $TEST_SLICE
  11. # Tests in the first slice do not expect for the auto wizard to be run.
  12. if [ $TEST_SLICE = 1 ]
  13. then
  14. echo -e "\\e[0Ksection_start:`date +%s`:zammad_ci_test_start[collapsed=true]\\r\\e[0Kbundle exec rake zammad:ci:test:start"
  15. bundle exec rake zammad:ci:test:start[with_elasticsearch]
  16. echo -e "\\e[0Ksection_end:`date +%s`:zammad_ci_test_start\\r\\e[0K"
  17. else
  18. echo -e "\\e[0Ksection_start:`date +%s`:zammad_ci_test_prepare[collapsed=true]\\r\\e[0Kbundle exec rake zammad:ci:test:prepare zammad:setup:auto_wizard zammad:ci:app:start"
  19. # Deconstruct zammad:ci:test:start command, so it starts the server only after the auto wizard has run.
  20. # This prevents instability due to `ZAMMAD_SETTING_TTL` not kicking in.
  21. bundle exec rake zammad:ci:test:prepare[with_elasticsearch] zammad:setup:auto_wizard[contrib/auto_wizard_browser_test.json] zammad:ci:app:start
  22. echo -e "\\e[0Ksection_end:`date +%s`:zammad_ci_test_prepare\\r\\e[0K"
  23. fi
  24. bundle exec rails test --fail-fast test/browser
  25. .template_browser-core_chrome:
  26. extends:
  27. - .template_browser-core
  28. - .variables_selenium_chrome
  29. services:
  30. - !reference [.services, postgresql]
  31. - !reference [.services, elasticsearch]
  32. - !reference [.services, selenium-chrome]
  33. - !reference [.services, imap]
  34. - !reference [.services, redis]
  35. - !reference [.services, memcached]
  36. .template_browser-core_firefox:
  37. extends:
  38. - .template_browser-core
  39. - .variables_selenium_firefox
  40. services:
  41. - !reference [.services, postgresql]
  42. - !reference [.services, elasticsearch]
  43. - !reference [.services, selenium-firefox]
  44. - !reference [.services, imap]
  45. - !reference [.services, redis]
  46. - !reference [.services, memcached]
  47. .template_browser-core_capybara:
  48. stage: browser
  49. extends:
  50. - .job_rules_default
  51. - .tags_docker_low_concurrency
  52. script:
  53. - !reference [.scripts, zammad_ci_test_prepare]
  54. - bundle exec rspec --require ./spec/rspec_extensions.rb --fail-fast -t ~integration --profile 10 spec/system
  55. .template_browser-core_capybara_chrome:
  56. extends:
  57. - .template_browser-core_capybara
  58. - .variables_selenium_chrome
  59. - .variables_proxy
  60. services:
  61. - !reference [.services, postgresql]
  62. - !reference [.services, elasticsearch]
  63. - !reference [.services, selenium-chrome]
  64. - !reference [.services, imap]
  65. - !reference [.services, redis]
  66. - !reference [.services, memcached]
  67. - !reference [.services, proxy]
  68. .template_browser-core_capybara_firefox:
  69. extends:
  70. - .template_browser-core_capybara
  71. - .variables_selenium_firefox
  72. - .variables_proxy
  73. services:
  74. - !reference [.services, postgresql]
  75. - !reference [.services, elasticsearch]
  76. - !reference [.services, selenium-firefox]
  77. - !reference [.services, imap]
  78. - !reference [.services, redis]
  79. - !reference [.services, memcached]
  80. - !reference [.services, proxy]