Skip to content
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

Add silly debug flags for npm debugging #221

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions prepare.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
'cd ' . escapeshellarg( $WPT_PREPARE_DIR . '/tests/phpunit/data/plugins/' ) . '; unzip wordpress-importer.zip; rm wordpress-importer.zip',

// Change directory to the preparation directory, install npm dependencies, and build the project.
'cd ' . escapeshellarg( $WPT_PREPARE_DIR ) . '; npm install && npm run build'
'cd ' . escapeshellarg( $WPT_PREPARE_DIR ) . '; npm install -ddd && npm run build -ddd'

) );

Expand All @@ -135,7 +135,7 @@

/**
* Reads the contents of the WordPress test configuration sample file.
* This file contains template placeholders that need to be replaced with actual values
* This file contains template placeholders that need to be replaced with actual values
* from environment variables to configure the WordPress test environment.
*/
$contents = file_get_contents( $WPT_PREPARE_DIR . '/wp-tests-config-sample.php' );
Expand All @@ -146,7 +146,7 @@
* It then collects various pieces of system information including PHP version, loaded PHP modules,
* MySQL version, operating system details, and versions of key utilities like cURL and OpenSSL.
* This information is collected in an array and written to a JSON file in the log directory.
* Additionally, if running from the command line during a WordPress installation process,
* Additionally, if running from the command line during a WordPress installation process,
* it outputs the PHP version and executable path.
*/
$system_logger = <<<EOT
Expand Down Expand Up @@ -276,7 +276,7 @@ function curl_selected_bits(\$k) { return in_array(\$k, array('version', 'ssl_ve
$php_version_cmd = $WPT_PHP_EXECUTABLE . " -r \"print PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . '.' . PHP_RELEASE_VERSION;\"";

/**
* If an SSH connection string is provided, the command to determine the PHP version is modified
* If an SSH connection string is provided, the command to determine the PHP version is modified
* to execute remotely over SSH. This is required if the test environment is not the local machine.
*/
if ( ! empty( $WPT_SSH_CONNECT ) ) {
Expand Down