-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lando.yml
55 lines (55 loc) · 1.83 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
name: commons-connect-client
recipe: lemp
services:
appserver:
config:
php: .lando/php.ini
build_as_root:
- cd /app/.lando/ && ./setup-wordpress-files.sh && ./install-wp-cli.sh
- cd /app/ && composer update
- apt-get update && apt-get install subversion -y
- curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
run:
- /app/.lando/install-wordpress.sh
- /app/bin/install-wp-tests.sh test lemp lemp database:3306
- sed -i "s|// define( 'WP_TESTS_MULTISITE', true );|define( 'WP_TESTS_MULTISITE', true );|g" /tmp/wordpress-tests-lib/wp-tests-config.php
- cd /app/ && npm install
- cd /app/ && npm run build
overrides:
environment:
WP_CLI_CONFIG_PATH: /wordpress/wp-cli.yml
CC_SEARCH_KEY: 12345
CC_SEARCH_ENDPOINT: http://commonsconnect-search.lndo.site/v1
CC_SEARCH_ADMIN_KEY: 12345
CC_INCREMENTAL_PROVISIONING_ENABLED: 1
WP_HOME: https://commons-connect-client.lndo.site
WP_SITEURL: https://commons-connect-client.lndo.site
config:
php: 8.2
database: mariadb
xdebug: debug
config:
vhosts: .lando/nginx.conf
tooling:
wp:
service: appserver
description: Runs WP-CLI commands
cmd: wp --path=/app/.lando/wordpress
wpd:
service: appserver
description: Runs WP-CLI commands with xdebug
cmd: php -d xdebug.start_with_request=yes /usr/local/bin/wp --path=/app/.lando/wordpress
phpunit:
service: appserver
description: Runs local tests
dir: /app
cmd: vendor/bin/phpunit /app/tests
phpunit-debug:
service: appserver
description: Runs local tests with xdebug
dir: /app
cmd: php -d xdebug.start_with_request=yes vendor/bin/phpunit /app/tests
npm:
service: appserver
description: Runs npm commands
cmd: npm