From 30e764e989b1b4f6f094a4727753cd478287e92c Mon Sep 17 00:00:00 2001 From: Jake Spurlock Date: Tue, 29 Oct 2019 19:17:26 +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/branches/5.3@46615 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