-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lando.yml
71 lines (71 loc) · 1.67 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
name: caldera
recipe: wordpress
config:
env: dev
xdebug: true
php: '7.2'
via: nginx
webroot: wordpress
proxy:
mailhog:
- mail.caldera.lndo.site
pma:
- pma.caldera.lndo.site
services:
appserver:
composer:
phpunit/phpunit: '*'
build:
- "cd $LANDO_MOUNT && composer update --prefer-source"
- "bash ./scripts/wp/post-build.sh"
- "bash ./scripts/wp/install-wp-tests.sh wordpress wordpress wordpress database"
post-start:
- "cd $LANDO_MOUNT && composer update --prefer-source"
- "bash ./scripts/wp/post-start.sh"
mailhog:
type: mailhog
hogfrom:
- appserver
portforward: true
pma:
type: phpmyadmin
hosts:
- database
- database.caldera.internal
wptest:
type: php:custom
overrides:
services:
image: chriszarate/wordpress-phpunit
volumes:
- .:/app
- testsuite:/tmp
tooling:
app:
description: "Start app front-end"
cmd: "cd $LANDO_MOUNT && cd js-packages/app && yarn start"
service: node
composer:
service: appserver
wp:
service: appserver
wptests:
service: wptest
description: Runs WordPress tests
cmd: "phpunit"
user: root
wptests-now:
service: wptest
description: Runs WordPress tests
cmd: "phpunit --group=now"
user: root
wptests-i:
service: wptest
description: Installs WordPress tests
cmd: "cd $LANDO_MOUNT && bash scripts/wp/install-wp-tests.sh wordpress wordpress wordpress database"
user: root
dbTests:
service: wptest
description: Runs calderawp/caldera-db tests using main container
cmd: "cd $LANDO_MOUNT/php-packages/caldera-db && composer test:acceptance"
user: root