Changeset 50285
- Timestamp:
- 02/10/2021 04:52:13 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.env
r49836 r50285 46 46 LOCAL_PHP_MEMCACHED=false 47 47 48 ## 48 49 # The database software to use. 49 50 # 50 51 # Supported values are `mysql` and `mariadb`. 52 ## 51 53 LOCAL_DB_TYPE=mysql 52 54 55 ## 53 56 # The database version to use. 54 57 # … … 57 60 # When using `mysql`, see https://hub.docker.com/_/mysql/ for valid versions. 58 61 # When using `mariadb`, see https://hub.docker.com/_/mariadb for valid versions. 62 ## 59 63 LOCAL_DB_VERSION=5.7 60 64 … … 68 72 # The URL to use when running e2e tests. 69 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 -
trunk/.github/workflows/phpunit-tests.yml
r49938 r50285 25 25 # - Cancels all previous workflow runs for pull requests that have not completed. 26 26 # - Checks out the repository. 27 # - Checks out the WordPress Importer plugin (needed for the Core PHPUnit tests).28 27 # - Logs debug information about the runner container. 29 28 # - Installs NodeJS 14. … … 47 46 - name: Checkout repository 48 47 uses: actions/checkout@v2 49 50 - name: Checkout the WordPress Importer plugin51 run: svn checkout -r 2387243 https://plugins.svn.wordpress.org/wordpress-importer/trunk/ tests/phpunit/data/plugins/wordpress-importer52 48 53 49 - name: Log debug information -
trunk/tools/local-env/scripts/install.js
r49362 r50285 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.