-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.lando.yml
69 lines (69 loc) · 2.18 KB
/
.lando.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
recipe: drupal8
config:
webroot: drupal/web
database: mariadb
config:
php: config/php.ini
database: config/my.cnf
compose:
- docker-compose.yml
env_file:
- config/local.envvars
services:
appserver:
xdebug: false
build_as_root:
- /app/scripts/provision.sh
memcached:
type: memcached
portforward: true
solr:
type: solr:7
portforward: true
core: default
config:
dir: config/solr/7.x/default
mailhog:
type: mailhog
hogfrom:
- appserver
tooling:
xdebug-on:
service: appserver
description: Enable xdebug
cmd: "docker-php-ext-enable xdebug && /etc/init.d/apache2 reload"
user: root
xdebug-off:
service: appserver
description: Disable xdebug
cmd: "rm /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && /etc/init.d/apache2 reload"
user: root
yarn:
service: appserver
cmd: yarn
nightwatch:
service: appserver
description: "Run Nightwatch.js functional tests.\n\n
Usage:\n
> Run a specific test with tag\n
lando nightwatch --tag your-tag\n
> Run a single test suite file, relative to Drupal core location\n
lando nightwatch ../modules/custom/modulename/tests/src/Nightwatch/Tests/yourTestSuite.js\n
> Run all tests except Core\n
lando nightwatch --skiptags core\n"
cmd: "yarn --cwd=/app/drupal/web/core test:nightwatch"
phpunit:
description: "Run PHPUnit tests. You can pass options, e.g. --group=yourgroup, as you require"
service: appserver
cmd: cd /app/drupal/web/core && /app/drupal/vendor/bin/phpunit -c /app/drupal/web/core/phpunit.xml
phpcs:
description: Run PHPCS checks against all custom Drupal 8 code (modules, migrations, themes) e.g. 'lando phpcs'
service: appserver
cmd: /app/scripts/phpcs.sh "/app/drupal" "/app/drupal/web/modules/origins /app/drupal/web/themes/custom /app/drupal/web/profiles/custom"
drck:
description: Run drupal-check for Drupal 9 compatibility e.g. 'lando drck ./'
service: appserver
cmd: /app/drupal/vendor/bin/drupal-check
drush:
server: appserver
cmd: drush -r /app/drupal/web