-
Notifications
You must be signed in to change notification settings - Fork 7
/
runner.yml.dist
50 lines (48 loc) · 1.87 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
drupal:
root: "build"
base_url: "http://web:8080/build"
database:
host: "mysql"
port: "3306"
name: "drupal"
user: "root"
password: ""
site:
profile: "minimal"
name: "OpenEuropa"
post_install:
# Prepare the instance.
- "./vendor/bin/drush en toolbar -y"
- "./vendor/bin/drush theme:enable olivero -y"
- "./vendor/bin/drush theme:enable claro -y"
- "./vendor/bin/drush config-set system.theme default olivero -y"
- "./vendor/bin/drush config-set system.theme admin claro -y"
- "./vendor/bin/drush config-set node.settings use_admin_theme 1 -y"
# Enable the modules.
- "./vendor/bin/drush en oe_media oe_media_avportal oe_media_embed oe_media_iframe oe_media_demo -y"
settings:
settings:
file_scan_ignore_directories:
- "vendor"
- "${drupal.root}"
extension_discovery_scan_tests: TRUE
file_private_path: "sites/default/files/private"
selenium:
host: "http://selenium"
port: "4444"
browser: "chrome"
commands:
drupal:site-setup:
- { task: "mkdir", dir: "${drupal.root}/profiles" }
- { task: "mkdir", dir: "${drupal.root}/themes" }
- { task: "run", command: "drupal:symlink-project" }
- { task: "run", command: "drupal:drush-setup" }
- { task: "run", command: "drupal:settings-setup" }
- { task: "run", command: "setup:phpunit" }
- { task: "run", command: "setup:behat" }
setup:phpunit:
- { task: "process", source: "phpunit.xml.dist", destination: "phpunit.xml" }
# Generate settings.testing.php, it will be used when running functional tests.
- { task: "process-php", type: "write", config: "drupal.settings", source: "${drupal.root}/sites/default/default.settings.php", destination: "${drupal.root}/sites/default/settings.testing.php", override: true }
setup:behat:
- { task: "process", source: "behat.yml.dist", destination: "behat.yml" }