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
This commit is contained in:
parent
8c21607a97
commit
cf014839a5
@ -91,7 +91,7 @@ before_script:
|
|||||||
if [[ "$LOCAL_PHP_MEMCACHED" == "true" ]]; then
|
if [[ "$LOCAL_PHP_MEMCACHED" == "true" ]]; then
|
||||||
cp tests/phpunit/includes/object-cache.php build/wp-content/object-cache.php
|
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.
|
# 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
|
fi
|
||||||
- |
|
- |
|
||||||
if [[ "$WP_INSTALL" == "true" ]]; then
|
if [[ "$WP_INSTALL" == "true" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user