From cf014839a533242e46ae65b43f1d1a5f7c10a716 Mon Sep 17 00:00:00 2001 From: Jake Spurlock Date: Mon, 28 Oct 2019 04:15:37 +0000 Subject: [PATCH] Build/Test Tools: Don't hardcode the directory name of the repo When Travis builds the directory, it was looking for a hardcoded `wordpress-develop` directory. If the repo is sitting in another directory, the memcache install will fail. This allows a dynamic path for the directory. Fixes #48444. Props pento, whyisjake. git-svn-id: https://develop.svn.wordpress.org/trunk@46605 602fd350-edb4-49c9-b593-d223f7449a82 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c157899c45..c6fa087500 100644 --- a/.travis.yml +++ b/.travis.yml @@ -91,7 +91,7 @@ before_script: if [[ "$LOCAL_PHP_MEMCACHED" == "true" ]]; then cp tests/phpunit/includes/object-cache.php build/wp-content/object-cache.php # The memcached server needs to start after `npm run env:start`, which sets up the Docker network. - docker run --name memcached --net wordpress-develop_wpdevnet -d memcached + docker run --name memcached --net $(basename "$PWD")_wpdevnet -d memcached fi - | if [[ "$WP_INSTALL" == "true" ]]; then