Skip to content

Commit

Permalink
Speed up carthage installation tests (#4184)
Browse files Browse the repository at this point in the history
Speeds up carthage installation tests by reducing the amount of work
that they do.

It almost halves the execution time:

| Before | After |
| :-: | :-: |
| <img width="812" alt="Screenshot 2024-08-14 at 12 05 07 PM"
src="https://github.com/user-attachments/assets/5d124805-feaa-46e4-b35a-a5ce1e30e0e1">
| <img width="512" alt="Screenshot 2024-08-14 at 12 30 54 PM"
src="https://github.com/user-attachments/assets/535d2792-ae8c-4a1c-8158-c75f90f487c3">
|
  • Loading branch information
aboedo authored Aug 14, 2024
1 parent 49b2e95 commit 045c236
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 045c236

Please sign in to comment.