.gitlab-ci.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. default:
  2. image: $CI_REGISTRY/docker/zammad-ci:3.0.4
  3. include:
  4. - local: '/.gitlab/ci/base.yml'
  5. - local: '/.gitlab/ci/pre.yml'
  6. - local: '/.gitlab/ci/integration.yml'
  7. - local: '/.gitlab/ci/rspec.yml'
  8. - local: '/.gitlab/ci/vitest.yml'
  9. - local: '/.gitlab/ci/cypress.yml'
  10. - local: '/.gitlab/ci/unit.yml'
  11. - local: '/.gitlab/ci/browser-core.yml'
  12. - local: '/.gitlab/ci/browser-integration.yml'
  13. # Stages
  14. stages:
  15. - pre
  16. - test
  17. - browser-core
  18. - browser-integration
  19. # Global variables added to the ENV of each job
  20. variables:
  21. # for faster translation loading
  22. Z_LOCALES: "en-us:de-de"
  23. # Browser tests and variables
  24. RAILS_SERVE_STATIC_FILES: "true"
  25. TZ: "Europe/London"
  26. # docker-imap-devel variables required for browser tests
  27. MAILNAME: "mail.test.dc.zammad.com"
  28. MAILBOX_INIT: "zammad@mail.test.dc.zammad.com:zammad"
  29. MAIL_ADDRESS: "zammad@mail.test.dc.zammad.com"
  30. MAIL_PASS: "zammad"
  31. # docker-imap-devel variables required for integration tests
  32. MAIL_SERVER: "mail"
  33. MAIL_SERVER_ACCOUNT: "zammad@mail.test.dc.zammad.com:zammad"
  34. MAIL_SERVER_EMAIL: "zammad@mail.test.dc.zammad.com"
  35. KEEP_ON_MAIL_SERVER: "mail"
  36. KEEP_ON_MAIL_SERVER_ACCOUNT: "zammad@mail.test.dc.zammad.com:zammad"
  37. # Temporary switch to enable the mobile front end for testing.
  38. ENABLE_EXPERIMENTAL_MOBILE_FRONTEND: 'true'
  39. cache:
  40. # Cache gems in between jobs and pipelines
  41. - key:
  42. files:
  43. - Gemfile.lock
  44. paths:
  45. - vendor/ruby
  46. - fresh.env
  47. # Cache node_modules likewise
  48. - key:
  49. files:
  50. - yarn.lock
  51. paths:
  52. - .yarn/cache
  53. # Initialize application env
  54. before_script:
  55. - source /etc/profile.d/rvm.sh
  56. - echo -e "\\e[0Ksection_start:`date +%s`:bundle_install[collapsed=true]\\r\\e[0Kbundle install"
  57. - bundle config set --local frozen 'true'
  58. - bundle config set --local path 'vendor'
  59. - bundle install -j $(nproc)
  60. - echo -e "\\e[0Ksection_end:`date +%s`:bundle_install\\r\\e[0K"
  61. - bundle exec ruby .gitlab/configure_environment.rb
  62. - source .gitlab/environment.env
  63. after_script:
  64. - .gitlab/environment_info.sh > log/environment_info.log