Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianvarela committed Oct 24, 2024
1 parent 551e906 commit 80cf11a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ platform :ios do
output_directory = File.expand_path("#{ENV['WORKSPACE']}/output")
ENV['XCPRETTY_JSON_FILE_OUTPUT'] = "#{output_directory}/#{options[:name]}/report.json"

case options[:name]
when 'iOS'
devices = ['iPhone 16']
else
devices = nil
end

begin
scan_options = {}
scan_options[:scheme] = options[:scheme]
Expand All @@ -33,6 +40,7 @@ platform :ios do
scan_options[:result_bundle] = true
scan_options[:formatter] = "xcpretty-json-formatter"
scan_options[:skip_slack] = true
scan_options[:devices] = devices
scan(scan_options)
rescue
UI.message 'Test are failed, check report!!!'
Expand Down

0 comments on commit 80cf11a

Please sign in to comment.