Changeset 50313
- Timestamp:
- 02/12/2021 08:00:11 PM (4 years ago)
- Location:
- branches/4.5
- Files:
-
- 9 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.5
- 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/4.5/.env
r50243 r50313 46 46 LOCAL_PHP_MEMCACHED=false 47 47 48 # The MySQL version to use. See https://hub.docker.com/_/mysql/ for valid versions. 49 LOCAL_MYSQL=5.7 48 ## 49 # The database software to use. 50 # 51 # Supported values are `mysql` and `mariadb`. 52 ## 53 LOCAL_DB_TYPE=mysql 54 55 ## 56 # The database version to use. 57 # 58 # Defaults to 5.7 with the assumption that LOCAL_DB_TYPE is set to `mysql` above. 59 # 60 # When using `mysql`, see https://hub.docker.com/_/mysql/ for valid versions. 61 # When using `mariadb`, see https://hub.docker.com/_/mariadb for valid versions. 62 ## 63 LOCAL_DB_VERSION=5.7 50 64 51 65 # The debug settings to add to `wp-config.php`. … … 58 72 # The URL to use when running e2e tests. 59 73 WP_BASE_URL=http://localhost:${LOCAL_PORT} 74 75 ## 76 # The revision number of the WordPress Importer plugin to use when running unit tests. 77 # 78 # This should be an SVN revision number from the official plugin repository on wordpress.org. 79 ## 80 WP_IMPORTER_REVISION=2387243 -
branches/4.5/docker-compose.yml
r50243 r50313 54 54 ## 55 55 mysql: 56 image: mysql:${LOCAL_MYSQL-5.7}56 image: ${LOCAL_DB_TYPE-mysql}:${LOCAL_DB_VERSION-5.7} 57 57 58 58 networks: -
branches/4.5/tools/local-env/scripts/install.js
r50243 r50313 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.