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 e41da8f
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,23 @@ 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(
shared_options = {
workspace: 'Aztec.xcworkspace',
scheme: 'Aztec',
device: device.name,
prelaunch_simulator: true,
buildlog_path: File.join(__dir__, '.build', 'logs'),
derived_data_path: File.join(__dir__, '.build', 'derived-data'),
ensure_devices_found: true
)
}

run_tests(
workspace: 'Aztec.xcworkspace',
scheme: 'WordPressEditor',
device: device.name,
prelaunch_simulator: true,
buildlog_path: File.join(__dir__, '.build', 'logs'),
derived_data_path: File.join(__dir__, '.build', 'derived-data'),
ensure_devices_found: true
)
shared_options[:device] = device.name unless is_ci

run_tests(**shared_options, scheme: 'Aztec')
run_tests(**shared_options, scheme: 'WordPressEditor')

destroy_simulator(device)
destroy_simulator(device) unless is_ci
end
end

Expand Down

0 comments on commit e41da8f

Please sign in to comment.