forked from timber/timber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.lando.yml
97 lines (78 loc) · 2.01 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: timber
recipe: wordpress
config:
webroot: wordpress
php: '7.0'
services:
appserver:
run_as_root:
- apt-get update
- apt-get install zip jq subversion -y
run:
- /bin/bash -c "[ ! -d /app/tmp ] && mkdir /app/tmp || echo Directory exists!"
- composer install
- /app/lando-config/scripts/setup-wordpress.sh
- /app/lando-config/scripts/install-wp-tests.sh
overrides:
environment:
# Pass any non-empty CI envvar from the host into Lando
# This is so we can force non-interactive mode setting up WP
CI: ${CI:-''}
TMPDIR: /app/tmp
database:
type: mysql:5.7
database-unit-test:
type: mysql:5.7
portforward: true
creds:
user: timber
password: timber
database: timber
phpmyadmin:
type: phpmyadmin:4.7
mailhog:
type: mailhog
hogfrom:
- appserver
docs:
type: nginx
ssl: true
webroot: docs/_book
tooling:
install:
service: appserver
cmd: '/app/lando-config/scripts/setup-wordpress.sh'
description: 'Install and configure WordPress for custom plugin dev'
debug:
service: appserver
cmd: 'tail -f /app/wordpress/wp-content/debug.log'
description: 'Get real-time WP debug log output'
install-test-suite:
service: appserver
cmd: '/app/lando-config/scripts/install-wp-tests.sh'
description: 'Installs test suite.'
unit:
service: appserver
cmd: '/app/vendor/bin/phpunit'
description: 'Run unit tests'
sniff:
service: appserver
cmd: 'composer sniff'
description: 'Run phpcs code sniffer'
sniff-summary:
service: appserver
cmd: 'composer sniff-summary'
description: 'Summarize phpcs results'
sniff-fix:
service: appserver
cmd: 'composer sniff-fix'
description: 'Fix coding standards issues that are automatically fixable'
proxy:
appserver:
- timber.lndo.site
mailhog:
- mail.timber.lndo.site
phpmyadmin:
- phpmyadmin.timber.lndo.site
docs:
- docs.timber.lndo.site