trabajo-afectivo/.gitlab-ci.yml

62 lines
2.2 KiB
YAML
Raw Normal View History

default:
image: $CI_REGISTRY/docker/zammad-ci:2.7.4
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
2018-10-01 17:41:17 +00:00
variables:
# for faster translation loading
2018-10-01 17:41:17 +00:00
Z_LOCALES: "en-us:de-de"
# 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"
# 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"
# 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
2021-07-15 12:15:29 +00:00
# the gems. Search hook: 2.7.4 (change it when updating the Ruby version too)
cache:
2021-07-15 12:15:29 +00:00
key: "centos7ruby274"
paths:
- vendor/ruby
# 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
# Initialize application env
2015-11-22 14:58:06 +00:00
before_script:
- source /etc/profile.d/rvm.sh
- source /opt/rh/rh-nodejs12/enable
- bundle install -j $(nproc) --path vendor
- bundle exec ruby .gitlab/configure_environment.rb
- source .gitlab/environment.env