Skip to content

Multi PHP + Multi Environment + Check all commits #212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
775ce38
environment for multi-php
javiercasares Mar 16, 2024
80b179a
prepare for multi-php
javiercasares Mar 16, 2024
ee4ac7b
test for multi-php
javiercasares Mar 16, 2024
78c5e61
cleanup for multi-php
javiercasares Mar 16, 2024
331ecc3
report for multi-php
javiercasares Mar 16, 2024
ef8a5de
temporary fix
javiercasares Mar 16, 2024
58034b0
some changes
javiercasares Mar 17, 2024
9205042
env file with commints checking
javiercasares Mar 17, 2024
8b49cb2
possible future files
javiercasares Mar 17, 2024
09bf9a6
some changes
javiercasares Mar 17, 2024
fea79f5
testing version
javiercasares Mar 17, 2024
0878108
fixes
javiercasares Mar 17, 2024
109f52d
reorder the commits to run
javiercasares Mar 17, 2024
07e45fc
move the commit to the executed part
javiercasares Mar 17, 2024
d9106c9
checks that there are not duplicated tests to run
javiercasares Mar 17, 2024
5702840
Merge branch 'WordPress:master' into multi-php
javiercasares Mar 17, 2024
2e3b29d
add some documentation
javiercasares Mar 18, 2024
d3eedad
Update .env.default
javiercasares Sep 28, 2024
64d44e8
Update docs/1-setup.md
javiercasares Sep 28, 2024
7f546e3
Update docs/1-setup.md
javiercasares Sep 28, 2024
caa2e34
Update docs/1-setup.md
javiercasares Sep 28, 2024
d8e35c1
Update docs/1-setup.md
javiercasares Sep 28, 2024
7c6ae9a
Update prepare.php
javiercasares Sep 28, 2024
5f232a1
Update prepare.php
javiercasares Sep 28, 2024
770200c
TLS validation active by default
javiercasares Sep 28, 2024
805d78d
Yoda and some organization and fixes
javiercasares Sep 28, 2024
070c9d5
Improving and normalizing code.
javiercasares Sep 28, 2024
234a0e3
80 columns
javiercasares Sep 29, 2024
398b809
readme changes
javiercasares Sep 29, 2024
e1abdad
documentation will be on the readme
javiercasares Sep 29, 2024
592e6c7
Documentation
javiercasares Sep 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 42 additions & 23 deletions .env.default
Original file line number Diff line number Diff line change
Expand Up @@ -11,55 +11,69 @@
# $ source .env
###

# Path to the directory where files can be prepared before being delivered to the environment.
export WPT_PREPARE_DIR=/tmp/wp-test-runner
# Label for the environment. Can be empty (default) or be like "shared", "vps",
# "cloud" or similar. Please use only alphanumeric keywords, and try to be
# descriptive
export WPT_LABEL=""

# Path to the directory where the WordPress develop checkout can be placed and tests can be run.
# When running tests in the same environment, set WPT_TEST_DIR to WPT_PREPARE_DIR
export WPT_TEST_DIR=wp-test-runner
# Path to the directory where files can be prepared before being delivered to
# the environment.
export WPT_PREPARE_DIR="/tmp/wp-test-runner"

# API key to authenticate with the reporting service in 'username:password' format.
export WPT_REPORT_API_KEY=
# Path to the directory where the WordPress develop checkout can be placed and
# tests can be run. When running tests in the same environment, set WPT_TEST_DIR
# to WPT_PREPARE_DIR
export WPT_TEST_DIR="/tmp/wp-test-runner"

# API key to authenticate with the reporting service in 'username:password'
# format.
export WPT_REPORT_API_KEY=""

# (Optionally) define an alternate reporting URL
export WPT_REPORT_URL=
export WPT_REPORT_URL=""

# Credentials for a database that can be written to and reset.
# WARNING!!! This database will be destroyed between tests. Only use safe database credentials.
# Please note that you must escape _or_ refrain from using # as special character in your credentials.
export WPT_DB_NAME=
export WPT_DB_USER=
export WPT_DB_PASSWORD=
export WPT_DB_HOST=

# (Optionally) set a custom table prefix to permit concurrency against the same database.
# WARNING!!! This database will be destroyed between tests. Only use safe
# database credentials. Please note that you must escape _or_ refrain from
# using # as special character in your credentials.
export WPT_DB_NAME=""
export WPT_DB_USER=""
export WPT_DB_PASSWORD=""
export WPT_DB_HOST=""

# (Optionally) set a custom table prefix to permit concurrency against the same
# database.
export WPT_TABLE_PREFIX=${WPT_TABLE_PREFIX-wptests_}

# (Optionally) define the PHP executable to be called
export WPT_PHP_EXECUTABLE=${WPT_PHP_EXECUTABLE-php}

# (Optionally) array of versions
# like: "8.1=/bin/php8.1;8.2=/bin/php8.2;8.3=/bin/php8.3"
export WPT_PHP_EXECUTABLE_MULTI=""

# (Optionally) define the PHPUnit command execution call.
# Use if `php phpunit.phar` can't be called directly for some reason.
export WPT_PHPUNIT_CMD=
export WPT_PHPUNIT_CMD=""

# (Optionally) define the command execution to remove the test directory
# Use if `rm -r` can't be called directly for some reason.
export WPT_RM_TEST_DIR_CMD=
export WPT_RM_TEST_DIR_CMD=""

# SSH connection string (can also be an alias).
# Leave empty if tests are meant to run in the same environment.
export WPT_SSH_CONNECT=
export WPT_SSH_CONNECT=""

# Any options to be passed to the SSH connection
# Defaults to '-o StrictHostKeyChecking=no'
export WPT_SSH_OPTIONS=
export WPT_SSH_OPTIONS=""

# SSH private key, base64 encoded.
export WPT_SSH_PRIVATE_KEY_BASE64=
export WPT_SSH_PRIVATE_KEY_BASE64=""

# Output logging
# Use 'verbose' to increase verbosity
export WPT_DEBUG=
export WPT_DEBUG=""

# Certificate validation
# Use 1 to validate, and 0 to not validate
Expand All @@ -68,11 +82,16 @@ export WPT_CERTIFICATE_VALIDATION=1
# WordPress flavor
# 0 = WordPress (simple version)
# 1 = WordPress Multisite
export WPT_FLAVOR=1
export WPT_FLAVOR=0

# Extra tests (groups)
# 0 = none
# 1 = ajax
# 2 = ms-files
# 3 = external-http
export WPT_EXTRATESTS=0

# Check all commits
# 0 = latest
# 1 = all
export WPT_COMMITS=0
Loading