mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Additionally, there are a handful of related minor changes in this commit: - `.travis.yml` has been tidied up a little. - [45745] was incorrectly marking Travis jobs as passed when some PHPUnit runs failed. - Add the `LOCAL_PHP_MEMCACHED` environment variable, for enabling Memcached. - Add the `env:pull` NPM script, for refreshing Docker images. See #47767. git-svn-id: https://develop.svn.wordpress.org/trunk@45762 602fd350-edb4-49c9-b593-d223f7449a82
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
version: '3.7'
|
|
|
|
services:
|
|
|
|
##
|
|
# The WP CLI container.
|
|
##
|
|
cli:
|
|
image: wordpressdevelop/cli:${LOCAL_PHP-latest}
|
|
|
|
networks:
|
|
- wpdevnet
|
|
|
|
environment:
|
|
LOCAL_PHP_XDEBUG: ${LOCAL_PHP_XDEBUG-false}
|
|
LOCAL_PHP_MEMCACHED: ${LOCAL_PHP_MEMCACHED-false}
|
|
|
|
volumes:
|
|
- ../../:/var/www
|
|
|
|
# The init directive ensures the command runs with a PID > 1, so Ctrl+C works correctly.
|
|
init: true
|
|
|
|
##
|
|
# The PHPUnit container.
|
|
##
|
|
phpunit:
|
|
image: wordpressdevelop/phpunit:${LOCAL_PHP-latest}
|
|
|
|
networks:
|
|
- wpdevnet
|
|
|
|
environment:
|
|
LOCAL_PHP_XDEBUG: ${LOCAL_PHP_XDEBUG-false}
|
|
LOCAL_PHP_MEMCACHED: ${LOCAL_PHP_MEMCACHED-false}
|
|
|
|
volumes:
|
|
- ./phpunit-config.ini:/usr/local/etc/php/conf.d/phpunit-config.ini
|
|
- ../../:/wordpress-develop
|
|
- phpunit-uploads:/wordpress-develop/${LOCAL_DIR-src}/wp-content/uploads
|
|
|
|
# The init directive ensures the command runs with a PID > 1, so Ctrl+C works correctly.
|
|
init: true
|
|
|
|
depends_on:
|
|
- mysql
|
|
|
|
volumes:
|
|
# Using a volume for the uploads directory improves PHPUnit performance.
|
|
phpunit-uploads: {}
|