-
Notifications
You must be signed in to change notification settings - Fork 73
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
base: master
Are you sure you want to change the base?
Changes from all commits
775ce38
80b179a
ee4ac7b
78c5e61
331ecc3
ef8a5de
58034b0
9205042
8b49cb2
09bf9a6
fea79f5
0878108
109f52d
07e45fc
d9106c9
5702840
2e3b29d
d3eedad
64d44e8
7f546e3
caa2e34
d8e35c1
7c6ae9a
5f232a1
770200c
805d78d
070c9d5
234a0e3
398b809
e1abdad
592e6c7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All is a bit misleading here because the API caps the results per page at 100. The default is 30. I would change this to an on or off value. If it's on, the runner will query for the last 30 commits and add them to the queue if they have not yet been tested. If it's off, then only the most recent commit when the runner starts should be tested. Regardless of this value, though, I think that the |
||
export WPT_COMMITS=0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is a new environment variable necessary? Could
WPT_PHP_EXECUTABLE
be made to accept single or array values instead?The default can still remain as
php
, and the code below responsible for parsing the value can check for the presence of=
and/or;
characters to process as an array.