Build/Test Tools: Backport the local Docker environment to the 4.9 branch.
This commit introduces the Docker-based local WordPress development environment to the 4.9 branch and converts the Travis test jobs to utilize this environment for easier and more consistent testing.
Until existing blockers with the PHP 5.2 Docker container can be solved, the PHP 5.2 test job will remain using the Travis `precise` image.
Merges [45745,45762,45783-45784,45800,45819,45885,46320,46999,47225,47912,48121,49335,49358,49360,49362] to the 4.9 branch.
See #48301, #47767.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@49530 602fd350-edb4-49c9-b593-d223f7449a82
2020-11-06 17:32:00 +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=7.2-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=6-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.9 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.9 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@50308 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:30:30 +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.7 with the assumption that LOCAL_DB_TYPE is set to `mysql` above.
|
|
|
|
#
|
Build/Test Tools: Backport updates to GitHub Actions.
This backports several changesets to GitHub Actions workflows. These changesets:
- address the deprecated notices related to save-output and set-output to ensure the workflows continue to run after these are removed.
- adds support for automatically retrying a failed workflow once.
- removes workflow files that are not applicable to the branch.
- backports some Docker environment related tooling updates for the sake of consistency across branches.
Merges [53736], [53737], [53940], [53947], [54039], [54096], [54108], [54293], [54313], [54342], [54343], [54373], [54511], [54650], [54651], [54674], [54750], [54852], [55152], [54651], [55487] to the 4.9 branch.
See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@55527 602fd350-edb4-49c9-b593-d223f7449a82
2023-03-10 16:28:10 +00:00
|
|
|
# When using `mysql`, see https://hub.docker.com/r/amd64/mysql for valid versions.
|
|
|
|
# When using `mariadb`, see https://hub.docker.com/r/amd64/mariadb for valid versions.
|
Build/Test Tools: Restore automated testing in the 4.9 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.9 branch.
See #50401.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@50308 602fd350-edb4-49c9-b593-d223f7449a82
2021-02-12 19:30:30 +00:00
|
|
|
##
|
|
|
|
LOCAL_DB_VERSION=5.7
|
Build/Test Tools: Backport the local Docker environment to the 4.9 branch.
This commit introduces the Docker-based local WordPress development environment to the 4.9 branch and converts the Travis test jobs to utilize this environment for easier and more consistent testing.
Until existing blockers with the PHP 5.2 Docker container can be solved, the PHP 5.2 test job will remain using the Travis `precise` image.
Merges [45745,45762,45783-45784,45800,45819,45885,46320,46999,47225,47912,48121,49335,49358,49360,49362] to the 4.9 branch.
See #48301, #47767.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@49530 602fd350-edb4-49c9-b593-d223f7449a82
2020-11-06 17:32:00 +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}
|