Changeset 50305 for branches/5.2/tools/local-env/scripts/install.js
- Timestamp:
- 02/12/2021 06:18:45 PM (3 years ago)
- Location:
- branches/5.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.2
- Property svn:mergeinfo changed
/trunk merged: 49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298
- Property svn:mergeinfo changed
-
branches/5.2/tools/local-env/scripts/install.js
r49527 r50305 20 20 // Move wp-config.php to the base directory, so it doesn't get mixed up in the src or build directories. 21 21 renameSync( 'src/wp-config.php', 'wp-config.php' ); 22 23 install_wp_importer(); 22 24 23 25 // Read in wp-tests-config-sample.php, edit it to work with our config, then write it to wp-tests-config.php. … … 46 48 execSync( `docker-compose run --rm cli ${cmd}`, { stdio: 'inherit' } ); 47 49 } 50 51 /** 52 * Downloads the WordPress Importer plugin for use in tests. 53 */ 54 function install_wp_importer() { 55 const test_plugin_directory = 'tests/phpunit/data/plugins/wordpress-importer'; 56 57 execSync( `docker-compose exec -T php rm -rf ${test_plugin_directory} && svn checkout -r ${process.env.WP_IMPORTER_REVISION} https://plugins.svn.wordpress.org/wordpress-importer/trunk/ ${test_plugin_directory}`, { stdio: 'inherit' } ); 58 }
Note: See TracChangeset
for help on using the changeset viewer.