mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 04:48:25 +01:00
02b36d0325
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], [54649], [54650], [54651], [54674], [54750], [54852], [55152], [55487] to the 5.4 branch. See #55652, #56407, #56528, #54695, #56820, #56816, #56793, #56820, #57572. git-svn-id: https://develop.svn.wordpress.org/branches/5.4@55521 602fd350-edb4-49c9-b593-d223f7449a82
80 lines
2.6 KiB
Bash
80 lines
2.6 KiB
Bash
##
|
|
# 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=latest
|
|
|
|
##
|
|
# 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=${LOCAL_PHP}
|
|
|
|
# Whether or not to enable XDebug.
|
|
LOCAL_PHP_XDEBUG=false
|
|
|
|
# Whether or not to enable Memcached.
|
|
LOCAL_PHP_MEMCACHED=false
|
|
|
|
##
|
|
# 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.
|
|
#
|
|
# 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.
|
|
##
|
|
LOCAL_DB_VERSION=5.7
|
|
|
|
# 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
|
|
|
|
# The URL to use when running e2e tests.
|
|
WP_BASE_URL=http://localhost:${LOCAL_PORT}
|
|
|
|
##
|
|
# 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
|