-
Notifications
You must be signed in to change notification settings - Fork 1
/
runner.yml.dist
executable file
·76 lines (68 loc) · 2.85 KB
/
runner.yml.dist
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
drupal:
root: web
base_url: 'http://web.test:8080'
site:
profile: minimal
name: Collabora Drupal
database:
host: "mysql"
port: "3306"
name: "drupal"
user: "root"
password: ""
account:
name: admin
password: admin
settings:
settings:
# Allow the test module to be installed.
extension_discovery_scan_tests: true
post_install:
- "./vendor/bin/drush -y theme:enable olivero"
- "./vendor/bin/drush -y theme:enable claro"
- "./vendor/bin/drush -y config-set system.theme default olivero"
- "./vendor/bin/drush -y config-set system.theme admin claro"
- "./vendor/bin/drush -y en toolbar field_ui"
# Switch relevant settings to development mode.
- "./vendor/bin/drush -y config-set system.performance css.preprocess 0"
- "./vendor/bin/drush -y config-set system.performance js.preprocess 0"
- "./vendor/bin/drush -y config-set system.logging error_level verbose"
# Install and configure Collabora Online module.
- "./vendor/bin/drush -y en collabora_online"
- "./vendor/bin/drush -y config-set collabora_online.settings cool.server http://collabora.test:9980/"
- "./vendor/bin/drush -y config-set collabora_online.settings cool.wopi_base http://web.test:8080"
- "./vendor/bin/drush -y config-set collabora_online.settings cool.key_id collabora"
- "./vendor/bin/drush -y config-set collabora_online.settings cool.access_token_ttl 86400"
- "./vendor/bin/drush -y config-set collabora_online.settings cool.disable_cert_check 1"
# Create the JWT key.
- |
./vendor/bin/drush key-save \
collabora \
'wwHYDJCstKi7pBfwtiV4y5iEDtnGaS+ALk2OR7DO5EZxSYkcnak5b0v1ZvdlpFXKP+RGijZvh7r+geV4SHJ4kw==' \
--label=Collabora \
--key-type=jwt_hs \
--key-provider=config \
--key-input=text_field \
--key-type-settings='{"algorithm": "HS256" }'
- "./vendor/bin/drush -y config-set jwt.config key_id collabora"
# Configure media module.
- "./vendor/bin/drush -y config-set media.settings standalone_url 1"
# Enable the test module to import its configuration.
# This is needed both for manual testing and evaluation, and for the
# ExistingSite tests.
- "./vendor/bin/drush -y en collabora_online_test"
# In the current version, the test module provides nothing beyond
# configuration, and can be uninstalled after it has done its job.
- "./vendor/bin/drush -y pmu collabora_online_test"
selenium:
host: 'http://selenium'
port: '4444'
browser: chrome
commands:
drupal:site-setup:
- { task: "run", command: "drupal:symlink-project" }
- { task: "run", command: "drupal:drush-setup" }
- { task: "run", command: "drupal:settings-setup" }
- { task: "run", command: "setup:phpunit" }
setup:phpunit:
- { task: "process", source: "phpunit.xml.dist", destination: "phpunit.xml" }