-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.lando.yml
75 lines (74 loc) · 2.34 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
70
71
72
73
74
75
name: my-site
recipe: pantheon
config:
php: 7.2
framework: drupal
env: dev
# Additional mailhog proxy settings so we get a nice URL for the mailhog ui
proxy:
mailhog:
- mail.my-site.lndo.site
services:
appserver:
config:
php: config/php.ini
webroot: web
xdebug: true
composer:
squizlabs/php_codesniffer: '2.9.2'
drupal/coder: '8.2.12'
phpcompatibility/php-compatibility: '*'
overtrue/phplint: '*'
overrides:
environment:
# Support debugging Drush with XDEBUG. Use lando drush to debug.
PHP_IDE_CONFIG: serverName=appserver
run:
- drush @none dl registry_rebuild-7.x
- /var/www/.composer/vendor/bin/phpcs --config-set installed_paths /var/www/.composer/vendor/phpcompatibility/php-compatibility
- /var/www/.composer/vendor/bin/phpcs --config-set error_severity 1
- /var/www/.composer/vendor/bin/phpcs --config-set warning_severity 8
- /bin/sh -c "if [ ! -f $LANDO_MOUNT/logs/phpcs-php7.x.log ]; then touch $LANDO_MOUNT/logs/phpcs-php7.x.log; fi"
pma:
# Use the latest version of phpmyadmin
type: phpmyadmin
hosts:
- database
mailhog:
# Use the latest mailhog version
type: mailhog
# List of services that we want to capture mail from
# You can run `lando info` to get a list of services that are available
# Mailhog expects that these services will be php services
hogfrom:
- appserver
# port rotates
portforward: true
# Access the mailhog send cli so we can easily tests things
tooling:
phpcs:
service: appserver
cmd: /var/www/.composer/vendor/bin/phpcs
description: Run phpcs for given folder or file.
phpcscomp:
service: appserver
cmd: /var/www/.composer/vendor/bin/phpcs -p . --standard=PHPCompatibility --runtime-set testVersion 7.2- --report-full=/app/logs/phpcs-php7.x.log -d memory_limit=1024M
phplint:
service: appserver
cmd: /app/bin/phplint
composer:
service: appserver
cmd: /usr/local/bin/composer
fra:
service: appserver
cmd: cd /app/web && drush php private/scripts/revert_all_features.php
drush-make:
service: appserver
cmd: /app/build/make.sh
drush-make-update:
service: appserver
cmd: /app/build/updatemake.sh
events:
post-db-import:
- appserver: /app/scripts/local_db.sh
- appserver: cd /app && composer install --dev