-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
52 lines (50 loc) · 2.02 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
include:
- project: $_GITLAB_TEMPLATES_REPO
ref: $_GITLAB_TEMPLATES_REF
file:
- '/includes/include.drupalci.main.yml'
- '/includes/include.drupalci.variables.yml'
- '/includes/include.drupalci.workflows.yml'
phpunit:
extends: .phpunit-base
services:
- !reference [.with-database]
- !reference [.with-chrome]
- !reference [.with-chrome-legacy]
- name: collabora/code:24.04.11.3.1
alias: 'collabora.test'
variables:
username: admin
password: admin
extra_params: |
--o:ssl.enable=false
--o:storage.wopi.alias_groups[@mode]=groups
--o:storage.wopi.alias_groups.group[0].host=$DTT_BASE_URL
--o:storage.wopi.alias_groups.group[0].host[@allow]=true
command:
- sh
- -c
# Manually generate the proof key, replicating the behavior of "coolconfig generate-proof-key".
# The coolconfig command can produce inconsistent results, as the service occasionally interrupts execution.
- |
openssl genpkey -algorithm RSA -out /etc/coolwsd/proof_key -pkeyopt rsa_keygen_bits:2048 &&
openssl rsa -in /etc/coolwsd/proof_key -outform PEM -pubout -out /etc/coolwsd/proof_key.pub &&
/start-collabora-online.sh
before_script:
- !reference [.setup-webserver]
- !reference [.simpletest-db]
- $CI_PROJECT_DIR/vendor/bin/run drupal:settings-setup --skip-permissions-setup
- "$CI_PROJECT_DIR/vendor/bin/run drupal:site-install \
--database-scheme=mysql \
--database-name=$MYSQL_DATABASE \
--database-host=database \
--database-user=$MYSQL_USER \
--database-password=$MYSQL_PASSWORD \
--database-port="
- drush -y config-set collabora_online.settings cool.wopi_base $DTT_BASE_URL
- rm /var/www/html/web # Remove symlink to allow .setup-webserver to be re-executed.
variables:
DTT_BASE_URL: $SIMPLETEST_BASE_URL
DTT_MINK_DRIVER_ARGS: $MINK_DRIVER_ARGS_WEBDRIVER
_SHOW_ENVIRONMENT_VARIABLES: '1'
OPT_IN_TEST_PREVIOUS_MAJOR: '1'