File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -126,11 +126,8 @@ lane :test_e2e_mock do |options|
126
126
127
127
start_sinatra
128
128
129
- update_testplan_on_ci ( path : 'StreamChatSwiftUITestsAppTests/StreamChatSwiftUITestsApp.xctestplan' )
130
-
131
- ios = options [ :ios ]
132
- device = ios && ios != 'latest' ? "#{ options [ :device ] } (#{ ios } )" : options [ :device ]
133
- build_for_testing = is_ci && options [ :cron ] . nil?
129
+ device = options [ :ios ] && options [ :ios ] != 'latest' ? "#{ options [ :device ] } (#{ options [ :ios ] } )" : options [ :device ]
130
+ prepare_simulator ( device : device , reset : true )
134
131
135
132
scan_options = {
136
133
project : xcode_project ,
@@ -140,10 +137,11 @@ lane :test_e2e_mock do |options|
140
137
devices : device ,
141
138
number_of_retries : 3 # TODO: CIS-1737
142
139
}
140
+
141
+ build_for_testing = is_ci && options [ :cron ] . nil?
143
142
scan ( scan_options . merge ( clean : true , build_for_testing : build_for_testing ) )
144
143
145
144
if build_for_testing
146
- prepare_simulator ( device : device , reset : true )
147
145
parallelize_tests_on_ci (
148
146
scan : scan_options ,
149
147
derived_data : lane_context [ SharedValues ::SCAN_DERIVED_DATA_PATH ] ,
You can’t perform that action at this time.
0 commit comments