2020-05-06 09:32:26 +00:00
|
|
|
default:
|
2021-07-15 12:15:29 +00:00
|
|
|
image: registry.znuny.com/docker/zammad-ci:2.7.4
|
2020-05-06 09:32:26 +00:00
|
|
|
|
|
|
|
include:
|
|
|
|
- local: '/.gitlab/ci/base.yml'
|
|
|
|
- local: '/.gitlab/ci/pre.yml'
|
|
|
|
- local: '/.gitlab/ci/integration.yml'
|
|
|
|
- local: '/.gitlab/ci/rspec.yml'
|
|
|
|
- local: '/.gitlab/ci/unit.yml'
|
|
|
|
- local: '/.gitlab/ci/browser-core.yml'
|
|
|
|
- local: '/.gitlab/ci/browser-integration.yml'
|
|
|
|
|
|
|
|
# Stages
|
|
|
|
stages:
|
|
|
|
- pre
|
|
|
|
- test
|
|
|
|
- browser-core
|
|
|
|
- browser-integration
|
2018-12-14 19:19:46 +00:00
|
|
|
|
|
|
|
# Global variables added to the ENV of each job
|
2018-10-01 17:41:17 +00:00
|
|
|
variables:
|
2018-12-14 19:19:46 +00:00
|
|
|
# for faster translation loading
|
2018-10-01 17:41:17 +00:00
|
|
|
Z_LOCALES: "en-us:de-de"
|
2018-12-14 19:19:46 +00:00
|
|
|
# Browser tests and variables
|
|
|
|
RAILS_SERVE_STATIC_FILES: "true"
|
|
|
|
TZ: "Europe/London"
|
|
|
|
# docker-imap-devel variables required for browser tests
|
|
|
|
MAILNAME: "mail.test.dc.zammad.com"
|
|
|
|
MAILBOX_INIT: "zammad@mail.test.dc.zammad.com:zammad"
|
|
|
|
MAIL_ADDRESS: "zammad@mail.test.dc.zammad.com"
|
|
|
|
MAIL_PASS: "zammad"
|
2020-11-17 08:31:24 +00:00
|
|
|
# docker-imap-devel variables required for integration tests
|
|
|
|
MAIL_SERVER: "mail"
|
|
|
|
MAIL_SERVER_ACCOUNT: "zammad@mail.test.dc.zammad.com:zammad"
|
|
|
|
MAIL_SERVER_EMAIL: "zammad@mail.test.dc.zammad.com"
|
|
|
|
KEEP_ON_MAIL_SERVER: "mail"
|
|
|
|
KEEP_ON_MAIL_SERVER_ACCOUNT: "zammad@mail.test.dc.zammad.com:zammad"
|
2018-12-14 19:19:46 +00:00
|
|
|
|
2019-01-05 22:43:22 +00:00
|
|
|
# Cache gems in between jobs and pipelines
|
2020-03-18 08:09:12 +00:00
|
|
|
# ATTENTION: We use a combination of the Ruby major and minor version number
|
|
|
|
# as a key for the cache to avoid cache growth and incompatibilities between
|
2021-07-15 12:15:29 +00:00
|
|
|
# the gems. Search hook: 2.7.4 (change it when updating the Ruby version too)
|
2019-01-05 22:43:22 +00:00
|
|
|
cache:
|
2021-07-15 12:15:29 +00:00
|
|
|
key: "centos7ruby274"
|
2019-01-05 22:43:22 +00:00
|
|
|
paths:
|
|
|
|
- vendor/ruby
|
2021-02-25 17:46:39 +00:00
|
|
|
# ATTENTION: This should be a dedicated cache only used in the job "TODO".
|
|
|
|
# ATTENTION: Remember to update the global CI ENV setting with the latest
|
|
|
|
# version of the ENV from an artifact of the "TODO" job to use a valid key.
|
|
|
|
# A dedicated cache should be used because the ENVs are not bound to the Ruby version and OS.
|
|
|
|
# Unfortunately GitLab is not yet capable of having multiple cache-s per job
|
|
|
|
# See: https://gitlab.com/gitlab-org/gitlab/-/issues/32814
|
|
|
|
- fresh.env
|
2019-01-05 22:43:22 +00:00
|
|
|
|
|
|
|
# Initialize application env
|
2015-11-22 14:58:06 +00:00
|
|
|
before_script:
|
2020-09-25 12:53:55 +00:00
|
|
|
- source /etc/profile.d/rvm.sh
|
2021-07-01 09:26:08 +00:00
|
|
|
- source /opt/rh/rh-nodejs12/enable
|
2019-01-05 22:43:22 +00:00
|
|
|
- bundle install -j $(nproc) --path vendor
|
2021-06-30 08:24:58 +00:00
|
|
|
- bundle exec ruby .gitlab/configure_environment.rb
|
|
|
|
- source .gitlab/environment.env
|