forked from zammad/zammad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
56 lines (51 loc) · 1.78 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
default:
image: registry.znuny.com/docker/zammad-ci:stable
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
# Global variables added to the ENV of each job
variables:
# for faster translation loading
Z_LOCALES: "en-us:de-de"
# 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: "[email protected]:zammad"
MAIL_ADDRESS: "[email protected]"
MAIL_PASS: "zammad"
# docker-imap-devel variables required for integration tests
MAIL_SERVER: "mail"
MAIL_SERVER_ACCOUNT: "[email protected]:zammad"
MAIL_SERVER_EMAIL: "[email protected]"
KEEP_ON_MAIL_SERVER: "mail"
KEEP_ON_MAIL_SERVER_ACCOUNT: "[email protected]:zammad"
# Cache gems in between jobs and pipelines
# 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
# the gems. Search hook: 2.6.6 (change it when updating the Ruby version too)
cache:
key: "centos7ruby266"
paths:
- vendor/ruby
# Initialize application env
before_script:
- source /etc/profile.d/rvm.sh
- bundle install -j $(nproc) --path vendor
- bundle exec ruby script/build/database_config.rb