Skip to content

Commit

Permalink
Don't waste time cleaning up Simulators in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio committed Apr 16, 2024
1 parent 78bd117 commit 41dc7e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ TEST_DEVICE = 'iPhone 15'
platform :ios do
desc 'Builds the project and runs tests'
lane :test do
device = create_simulator(TEST_RUNTIME, TEST_DEVICE)
# Don't waste time managing Simulators in CI
device = create_simulator(TEST_RUNTIME, TEST_DEVICE) unless is_ci

run_tests(
workspace: 'Aztec.xcworkspace',
Expand All @@ -30,7 +31,8 @@ platform :ios do
ensure_devices_found: true
)

destroy_simulator(device)
# Don't waste time managing Simulators in CI
destroy_simulator(device) unless is_ci
end
end

Expand Down

0 comments on commit 41dc7e0

Please sign in to comment.