2020-05-06 09:32:26 +00:00
|
|
|
default:
|
2020-09-25 12:53:55 +00:00
|
|
|
image: registry.znuny.com/docker/zammad-ci:stable
|
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"
|
|
|
|
REMOTE_URL: "http://selenium:24444/wd/hub"
|
|
|
|
TZ: "Europe/London"
|
|
|
|
# docker elgalu/selenium variables for parallel browser instance creation
|
|
|
|
MAX_INSTANCES: "50"
|
|
|
|
MAX_SESSIONS: "50"
|
|
|
|
# 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
|
2020-08-20 08:00:03 +00:00
|
|
|
# the gems. Search hook: 2.6.6 (change it when updating the Ruby version too)
|
2019-01-05 22:43:22 +00:00
|
|
|
cache:
|
2020-09-25 12:53:55 +00:00
|
|
|
key: "centos7ruby266"
|
2019-01-05 22:43:22 +00:00
|
|
|
paths:
|
|
|
|
- vendor/ruby
|
|
|
|
|
|
|
|
# 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
|
2019-01-05 22:43:22 +00:00
|
|
|
- bundle install -j $(nproc) --path vendor
|
|
|
|
- bundle exec ruby script/build/database_config.rb
|