browser-integration.yml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. - .tags_docker_low_concurrency
  16. variables:
  17. RAILS_ENV: "test"
  18. script:
  19. - echo -e "\\e[0Ksection_start:`date +%s`:zammad_ci_test_prepare[collapsed=true]\\r\\e[0Kbundle exec rake zammad:ci:test:prepare"
  20. - bundle exec rake zammad:ci:test:prepare
  21. - echo -e "\\e[0Ksection_end:`date +%s`:zammad_ci_test_prepare\\r\\e[0K"
  22. - bundle exec rspec --fail-fast --pattern "spec/system/**/*_spec.rb" -t integration --profile 10
  23. .template_browser-integration_capybara_chrome: &template_browser-integration_capybara_chrome
  24. extends:
  25. - .template_browser-integration_capybara
  26. - .services_mysql_postgresql_elasticsearch_selenium_chrome_imap_redis_memcached
  27. .template_browser-integration_capybara_firefox: &template_browser-integration_capybara_firefox
  28. extends:
  29. - .template_browser-integration_capybara
  30. - .services_mysql_postgresql_elasticsearch_selenium_firefox_imap_redis_memcached
  31. .template_browser-integration_chrome: &template_browser-integration_chrome
  32. stage: browser-integration
  33. dependencies:
  34. - browser:build
  35. extends:
  36. - .env_base
  37. - .variables_app_restart_cmd
  38. - .services_postgresql_selenium_chrome
  39. - .tags_docker_low_concurrency
  40. variables:
  41. RAILS_ENV: "production"
  42. AUTO_WIZARD_FILE: "contrib/auto_wizard_test.json"
  43. script:
  44. - RAILS_ENV=test bundle exec rake db:create
  45. - cp $AUTO_WIZARD_FILE auto_wizard.json
  46. - echo -e "\\e[0Ksection_start:`date +%s`:zammad_ci_test_start[collapsed=true]\\r\\e[0Kbundle exec rake zammad:ci:test:start"
  47. - bundle exec rake zammad:ci:test:start
  48. - echo -e "\\e[0Ksection_end:`date +%s`:zammad_ci_test_start\\r\\e[0K"
  49. - bundle exec rails test $TEST_FILE
  50. .template_browser-integration_import_chrome: &template_browser-integration_import_chrome
  51. stage: browser-integration
  52. dependencies:
  53. - browser:build
  54. extends:
  55. - .env_base
  56. - .services_postgresql_selenium_chrome
  57. - .tags_docker_low_concurrency
  58. variables:
  59. RAILS_ENV: "production"
  60. RAILS_SERVE_STATIC_FILES: "true"
  61. script:
  62. - RAILS_ENV=test bundle exec rake db:create
  63. - echo -e "\\e[0Ksection_start:`date +%s`:zammad_ci_test_start[collapsed=true]\\r\\e[0Kbundle exec rake zammad:ci:test:start"
  64. - bundle exec rake zammad:ci:test:start
  65. - echo -e "\\e[0Ksection_end:`date +%s`:zammad_ci_test_start\\r\\e[0K"
  66. - bundle exec rails test $TEST_FILE
  67. # we need at least one job to store and include this template
  68. # $IGNORE is not defined
  69. ignore:
  70. stage: test
  71. only:
  72. variables:
  73. - $IGNORE
  74. script:
  75. - ''