From c7433695e96619db74ecabdb4b2a860a7ab0165f Mon Sep 17 00:00:00 2001 From: Ryan Kienstra Date: Sat, 2 May 2020 00:54:46 -0500 Subject: [PATCH] Fork the Gutenberg docker-compose template In response to a failed Travis build. https://github.com/WordPress/gutenberg/pull/17004#issuecomment-526821775. --- package.json | 3 ++- .../config/docker-compose.override.yml.template | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 tests/e2e/config/docker-compose.override.yml.template diff --git a/package.json b/package.json index a53b316da..3a809102f 100644 --- a/package.json +++ b/package.json @@ -97,6 +97,7 @@ }, "wp-env": { "plugin-dir": "block-lab", - "plugin-name": "Block Lab" + "plugin-name": "Block Lab", + "docker-template": "./tests/e2e/config/docker-compose.override.yml.template" } } diff --git a/tests/e2e/config/docker-compose.override.yml.template b/tests/e2e/config/docker-compose.override.yml.template new file mode 100644 index 000000000..607471636 --- /dev/null +++ b/tests/e2e/config/docker-compose.override.yml.template @@ -0,0 +1,15 @@ +version: '3.6' + +services: + wordpress-develop: + volumes: + - %PLUGIN_MOUNT_DIR%:/var/www/${LOCAL_DIR-src}/wp-content/plugins/%PLUGIN_INSTALL_DIR% + php: + volumes: + - %PLUGIN_MOUNT_DIR%:/var/www/${LOCAL_DIR-src}/wp-content/plugins/%PLUGIN_INSTALL_DIR% + cli: + volumes: + - %PLUGIN_MOUNT_DIR%:/var/www/${LOCAL_DIR-src}/wp-content/plugins/%PLUGIN_INSTALL_DIR% + phpunit: + volumes: + - %PLUGIN_MOUNT_DIR%:/var/www/${LOCAL_DIR-src}/wp-content/plugins/%PLUGIN_INSTALL_DIR%