Skip to content
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
10 changes: 7 additions & 3 deletions prepare.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
* The following actions are performed:
* - Creates a directory to prepare wordpress-develop.
* - Clones the WordPress/wordpress-develop repository from GitHub.
* - Install npm dependencies and run the build script.
* - Install npm dependencies and run the development build script.
*/
// Prepare an array of shell commands to set up the testing environment.
perform_operations(
Expand All @@ -95,8 +95,12 @@
// The '--depth=1' flag creates a shallow clone with a history truncated to the last commit.
'git clone --depth=1 https://github.com/WordPress/wordpress-develop.git ' . escapeshellarg( $runner_vars['WPT_PREPARE_DIR'] ),

// Change directory to the preparation directory, install npm dependencies, and build the project.
'cd ' . escapeshellarg( $runner_vars['WPT_PREPARE_DIR'] ) . '; npm install && npm run build',
/*
* Change directory to the preparation directory, install npm dependencies, and build the project.
* The development build writes the built files into `src/`, which is the directory the test suite
* runs against. It is the same build that WordPress core's own PHPUnit workflow runs.
*/
'cd ' . escapeshellarg( $runner_vars['WPT_PREPARE_DIR'] ) . '; npm install && npm run build:dev',

)
);
Expand Down
Loading