Build/Test Tools: Backport the local Docker environment to the 4.3 branch.
This commit introduces the Docker-based local WordPress development environment to the 4.3 branch.
Merges [44176,45445,45745,45762,45783-45784,45800,45819,45885,46320,46999,47225,47912,48121,49267,49335,49358,49360,49362] to the 4.3 branch.
See #48301, #47767.
git-svn-id: https://develop.svn.wordpress.org/branches/4.3@50245 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-08 20:52:53 +00:00
|
|
|
##
|
|
|
|
# Default configuration options for the local dev environment.
|
|
|
|
#
|
|
|
|
# All of these options can be overridden by setting them as environment variables before starting
|
|
|
|
# the environment. You will need to restart your environment when changing any of these.
|
|
|
|
#
|
|
|
|
# Below, the following substitutions can be made:
|
|
|
|
# - '{version}': any major.minor PHP version from 5.2 onwards.
|
|
|
|
# - '{phpunit_version}': any major PHPUnit version starting with 4.
|
|
|
|
##
|
|
|
|
|
|
|
|
# The site will be available at http://localhost:LOCAL_PORT
|
|
|
|
LOCAL_PORT=8889
|
|
|
|
|
|
|
|
# Where to run WordPress from. Valid options are 'src' and 'build'.
|
|
|
|
LOCAL_DIR=src
|
|
|
|
|
|
|
|
# The PHP version to use. Valid options are 'latest', and '{version}-fpm'.
|
|
|
|
LOCAL_PHP=5.6-fpm
|
|
|
|
|
|
|
|
##
|
|
|
|
# The PHPUnit version to use when running tests.
|
|
|
|
#
|
|
|
|
# Support for new PHPUnit versions is not backported to past versions, so some old WordPress branches require an older
|
|
|
|
# version to run tests.
|
|
|
|
#
|
|
|
|
# Valid versions are:
|
|
|
|
# - 'latest' for the highest version of PHPUnit supported on the highest version of PHP supported.
|
|
|
|
# - '{version}-fpm' for the highest version of PHPUnit supported on the specified version of PHP.
|
|
|
|
# - '{phpunit_version}-php-{version}-fpm' for a specific version of PHPUnit on the specified version of PHP. This format
|
|
|
|
# is only available for PHP versions 5.6 and higher.
|
|
|
|
#
|
|
|
|
# For the full list of available options, see https://hub.docker.com/r/wordpressdevelop/phpunit/tags.
|
|
|
|
#
|
|
|
|
# For full documentation on PHPUnit compatibility and WordPress versions, see
|
|
|
|
# https://make.wordpress.org/core/handbook/references/phpunit-compatibility-and-wordpress-versions/.
|
|
|
|
#
|
|
|
|
# This defaults to the value assigned to the value of LOCAL_PHP.
|
|
|
|
##
|
|
|
|
LOCAL_PHPUNIT=4-php-${LOCAL_PHP}
|
|
|
|
|
|
|
|
# Whether or not to enable XDebug.
|
|
|
|
LOCAL_PHP_XDEBUG=false
|
|
|
|
|
|
|
|
# Whether or not to enable Memcached.
|
|
|
|
LOCAL_PHP_MEMCACHED=false
|
|
|
|
|
Build/Test Tools: Restore automated testing in the 4.3 branch.
This commit merges the workflow files required to run automated testing on GitHub Actions.
In addition, [49836] and [50285] have been included in order to keep the local Docker environment consistent across all branches.
Merges [49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298] to the 4.3 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.3@50317 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 20:27:47 +00:00
|
|
|
##
|
|
|
|
# The database software to use.
|
|
|
|
#
|
|
|
|
# Supported values are `mysql` and `mariadb`.
|
|
|
|
##
|
|
|
|
LOCAL_DB_TYPE=mysql
|
|
|
|
|
|
|
|
##
|
|
|
|
# The database version to use.
|
|
|
|
#
|
|
|
|
# Defaults to 5.6 with the assumption that LOCAL_DB_TYPE is set to `mysql` above.
|
|
|
|
#
|
|
|
|
# When using `mysql`, see https://hub.docker.com/_/mysql/ for valid versions.
|
|
|
|
# When using `mariadb`, see https://hub.docker.com/_/mariadb for valid versions.
|
|
|
|
##
|
|
|
|
LOCAL_DB_VERSION=5.6
|
Build/Test Tools: Backport the local Docker environment to the 4.3 branch.
This commit introduces the Docker-based local WordPress development environment to the 4.3 branch.
Merges [44176,45445,45745,45762,45783-45784,45800,45819,45885,46320,46999,47225,47912,48121,49267,49335,49358,49360,49362] to the 4.3 branch.
See #48301, #47767.
git-svn-id: https://develop.svn.wordpress.org/branches/4.3@50245 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-08 20:52:53 +00:00
|
|
|
|
|
|
|
# The debug settings to add to `wp-config.php`.
|
|
|
|
LOCAL_WP_DEBUG=true
|
|
|
|
LOCAL_WP_DEBUG_LOG=true
|
|
|
|
LOCAL_WP_DEBUG_DISPLAY=true
|
|
|
|
LOCAL_SCRIPT_DEBUG=true
|
|
|
|
LOCAL_WP_ENVIRONMENT_TYPE=local
|
|
|
|
|
|
|
|
# The URL to use when running e2e tests.
|
|
|
|
WP_BASE_URL=http://localhost:${LOCAL_PORT}
|
Build/Test Tools: Restore automated testing in the 4.3 branch.
This commit merges the workflow files required to run automated testing on GitHub Actions.
In addition, [49836] and [50285] have been included in order to keep the local Docker environment consistent across all branches.
Merges [49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298] to the 4.3 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.3@50317 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 20:27:47 +00:00
|
|
|
|
|
|
|
##
|
|
|
|
# The revision number of the WordPress Importer plugin to use when running unit tests.
|
|
|
|
#
|
|
|
|
# This should be an SVN revision number from the official plugin repository on wordpress.org.
|
|
|
|
##
|
|
|
|
WP_IMPORTER_REVISION=2387243
|