From 439372c0926b2fd334972dcc2a848a3ca5b71602 Mon Sep 17 00:00:00 2001 From: Chris Reynolds Date: Tue, 6 Feb 2024 11:33:44 -0700 Subject: [PATCH] move multisite tests to run before nightly tests --- bin/phpunit-test.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/bin/phpunit-test.sh b/bin/phpunit-test.sh index ae53b42..60fb483 100755 --- a/bin/phpunit-test.sh +++ b/bin/phpunit-test.sh @@ -13,6 +13,14 @@ cp /tmp/wp-latest.json "${DIRNAME}/../tests/wp-latest.json" echo "๐Ÿƒโ€โ™‚๏ธ Running PHPUnit on Single Site" composer phpunit --ansi +echo "๐Ÿงน Removing files before testing WPMS..." +rm -rf "$WP_TESTS_DIR" "$WP_CORE_DIR" +rm "${DIRNAME}/../tests/wp-latest.json" + +bash "${DIRNAME}/install-wp-tests.sh" wordpress_test root root 127.0.0.1 latest true +echo "๐Ÿƒโ€โ™‚๏ธ Running PHPUnit on Multisite" +composer test:multisite --ansi + echo "๐Ÿงน Removing files before testing nightly WP..." rm -rf "$WP_TESTS_DIR" "$WP_CORE_DIR" rm "${DIRNAME}/../tests/wp-latest.json" @@ -23,7 +31,3 @@ echo "๐Ÿ“„ Copying wp-latest.json..." cp /tmp/wp-latest.json "${DIRNAME}/../tests/wp-latest.json" echo "๐Ÿƒโ€โ™‚๏ธ Running PHPUnit on Single Site (Nightly WordPress)" composer phpunit --ansi - -bash "${DIRNAME}/install-wp-tests.sh" wordpress_test root root 127.0.0.1 latest true -echo "๐Ÿƒโ€โ™‚๏ธ Running PHPUnit on Multisite" -composer test:multisite --ansi