From 045c2363b3bea4800951b67ba4b8bf45ad9db850 Mon Sep 17 00:00:00 2001 From: Andy Boedo Date: Wed, 14 Aug 2024 16:15:11 -0300 Subject: [PATCH] Speed up carthage installation tests (#4184) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Speeds up carthage installation tests by reducing the amount of work that they do. It almost halves the execution time: | Before | After | | :-: | :-: | | Screenshot 2024-08-14 at 12 05 07 PM | Screenshot 2024-08-14 at 12 30 54 PM | --- .../InstallationTests/CarthageInstallation/fastlane/Fastfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tests/InstallationTests/CarthageInstallation/fastlane/Fastfile b/Tests/InstallationTests/CarthageInstallation/fastlane/Fastfile index 4db47da7de..ae0cf4a2d1 100644 --- a/Tests/InstallationTests/CarthageInstallation/fastlane/Fastfile +++ b/Tests/InstallationTests/CarthageInstallation/fastlane/Fastfile @@ -13,9 +13,11 @@ lane :installation_tests do Dir.chdir("..") do # install without building, then remove the tests and build, so that carthage - # doesn't try to build the other installation tests + # doesn't try to build the other installation tests and testing apps sh "carthage", "update", "--no-build" sh "rm", "-rf", "Carthage/Checkouts/purchases-root/Tests/InstallationTests/" + sh "rm", "-rf", "Carthage/Checkouts/purchases-root/Tests/APITesters/" + sh "rm", "-rf", "Carthage/Checkouts/purchases-root/Tests/TestingApps/" # Carthage builds all schemes including ones we don't need, so let's nuke them before proceeding schemes_directory = "Carthage/Checkouts/purchases-root/RevenueCat.xcodeproj/xcshareddata/xcschemes"