Skip to content

Commit

Permalink
move multisite tests to run before nightly tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Feb 6, 2024
1 parent 976dc8a commit 439372c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions bin/phpunit-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

0 comments on commit 439372c

Please sign in to comment.