- Install
lando start
lando wp-tests-i
- Run WordPress tests
lando wptests
Created
February 25, 2019 19:21
-
-
Save Shelob9/f390f919fedae61bcc8c0b3e32be1ab7 to your computer and use it in GitHub Desktop.
WIP -> Lando with WordPress "unit" test suite.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: wordpress | |
recipe: wordpress | |
config: | |
env: dev | |
xdebug: true | |
php: '7.2' | |
via: nginx | |
webroot: wordpress | |
proxy: | |
mailhog: | |
- mail.wordpress.lndo.site | |
pma: | |
- pma.wordpress.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.wordpress.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-i: | |
service: wptest | |
description: Install WordPress tests | |
cmd: "cd $LANDO_MOUNT && bash scripts/wp/install-wp-tests.sh wordpress wordpress wordpress database" | |
user: root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, do you have this configuration updated?
Can you help me config lando with phpunit for develop wordpress theme?