-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunner.yml.dist
90 lines (83 loc) · 3.77 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
drupal:
root: web
base_url: '${env.DRUPAL_BASE_URL}'
site:
profile: standard
name: ddd
generate_db_url: false
default_theme: olivero
mail: [email protected]
account:
name: '${env.DRUPAL_ACCOUNT_USERNAME}'
password: '${env.DRUPAL_ACCOUNT_PASSWORD}'
mail: [email protected]
post_install:
- "./vendor/bin/drush theme:enable olivero"
- "./vendor/bin/drush config-set system.theme default olivero -y"
additional_settings: |
if (intval(getenv('DRUPAL_PROXY_ENABLE')) === 1) {
$settings['http_client_config']['proxy']['http'] = getenv('DRUPAL_PROXY_HTTP');
$settings['http_client_config']['proxy']['https'] = getenv('DRUPAL_PROXY_HTTPS');
$settings['http_client_config']['proxy']['no'] = array_map('trim', explode(',', getenv('DRUPAL_PROXY_NO')));
}
// Set trusted host patterns.
if (getenv('DRUPAL_TRUSTED_HOST_PATTERNS')) {
$settings['trusted_host_patterns'] = explode(',', getenv('DRUPAL_TRUSTED_HOST_PATTERNS'));
}
// Override site email.
$config['system.site']['mail'] = getenv('SMTP_FROM');
// Varnish purge settings.
if (!empty(getenv('DRUPAL_VARNISH_HOSTS'))) {
$config['dropsolid_purge.config']['site_name'] = getenv('DRUPAL_SITE_NAME');
$config['dropsolid_purge.config']['site_environment'] = getenv('DRUPAL_ENVIRONMENT');
$config['dropsolid_purge.config']['site_group'] = getenv('DRUPAL_VARNISH_GROUP');
$load_balancers = [];
$drupal_flush_cred = getenv('DRUPAL_FLUSH_CREDS');
foreach (explode(',', getenv('DRUPAL_VARNISH_HOSTS')) as $ip) {
$load_balancers[$ip] = [
'ip' => $drupal_flush_cred . '@' . trim($ip),
'protocol' => 'http',
'port' => '7790',
];
}
$config['dropsolid_purge.config']['loadbalancers'] = $load_balancers;
}
// Monolog services and parameter.
$settings['container_yamls'][] = 'sites/default/monolog.services.yml';
behat:
tags: ~@wip
selenium:
host: 'http://selenium'
port: '4444'
browser: chrome
toolkit:
project_id: ddd
clone:
asda_type: 'nextcloud'
hooks:
prepare-commit-msg:
example: 'ABC-123: The commit message'
conditions:
- message: "The commit message must start with the JIRA issue number."
regex: /^[A-Z]+\-\d+/
- message: "The JIRA issue number must be followed by a colon and space."
regex: /^[A-Z]+\-\d+:\ /
- message: "The subject must start with capital letter."
regex: /^[A-Z]+\-\d+:\ [A-Z]/
- message: ""
regex: /^[A-Z]+\-\d+:\ [A-Z]/
build:
dist:
commands:
- { task: copy, from: ./resources/monolog.services.yml, to: 'dist/${drupal.root}/sites/default/monolog.services.yml' }
dev:
commands:
- { task: run, command: 'drupal:setup-test' }
- { task: symlink, from: "../../../resources/monolog.services.yml", to: "${drupal.root}/sites/default/monolog.services.yml" }
- { task: "symlink", from: "../../lib/modules", to: "${drupal.root}/modules/custom" }
- { task: "symlink", from: "../../lib/themes", to: "${drupal.root}/themes/custom" }
- { task: "symlink", from: "../../lib/profiles", to: "${drupal.root}/profiles/custom" }
commands:
drupal:setup-test:
- { task: "process", source: "behat.yml.dist", destination: "behat.yml" }
- { task: "process", source: "phpunit.xml.dist", destination: "phpunit.xml" }