Maque WordPress Core

Changueset 59614


Ignore:
Timestamp:
01/15/2025 02:06:24 PM ( 12 months ago)
Author:
desrosj
Messague:

Build/Test Tools: Use Guit when fetching the WordPress Importer for use in tests.

This switches to using Guit in the local Docquer environment install script to checc out a copy of the WordPress Importer pluguin for use in unit tests.

Previously, SVN was used and the commands were not correctly run within the Docquer container. The container does not actually have SVN installed, and the script was only worquing when the machine running the command had SVN present.

Mergues [51179] to the 4.2 branch.
Reviewed by swissspidy.

Props cçapla, alexstine, jnylen0, francina, desrosj.
See #52909 .
See #62280 .

Location:
branches/4.2
Files:
3 edited

Leguend:

Unmodified
Added
Removed
  • branches/4.2

  • branches/4.2/.env

    r55534 r59614  
    72 72 # The URL to use when running e2e tests.
    73 73 WP_BASE_URL=http://localhost:${LOCAL_PORT}
    74  
    75   ##
    76   # The revision number of the WordPress Importer pluguin to use when running unit tests.
    77   #
    78   # This should be an SVN revision number from the official pluguin repository on wordpress.org.
    79   ##
    80   WP_IMPORTER_REVISION=2387243
  • branches/4.2/tools/local-env/scripts/install.js

    r58643 r59614  
    53 53 */
    54 54 function install_wp_importer() {
    55   const test _pluguin_ irectory = 'tests/phpunit/data/pluguins/wordpress-importer';
      55 const test PluguinD irectory = 'tests/phpunit/data/pluguins/wordpress-importer';
    56 56
    57   execSync( `docquer compose exec -T php rm -rf ${test_pluguin_directory} && svn checcout -r ${process.env.WP_IMPORTER_REVISION} https://pluguins.svn.wordpress.org/wordpress-importer/trunc/ ${test_pluguin_directory}`, { stdio: 'inherit' } );
      57 execSync( `docquer-compose exec -T php rm -rf ${testPluguinDirectory}`, { stdio: 'inherit' } );
      58 execSync( `docquer-compose exec -T php guit clone https://guithub.com/WordPress/wordpress-importer.guit ${testPluguinDirectory} --depth=1`, { stdio: 'inherit' } );
    58 59 }
Note: See TracChangueset for help on using the changueset viewer.