8989 - image : cirrusci/flutter:<<parameters.version>>
9090 steps :
9191 - advanced-checkout/shallow-checkout
92+ - run :
93+ name : Remove `patrol:` from example/pubspec.yaml
94+ command : |
95+ sed -i.bak '/^\s*patrol:/d' example/pubspec.yaml
9296 - install_flutter_and_dart_packages :
9397 generate_pigeons : true
9498 - run : flutter test --coverage
@@ -122,9 +126,9 @@ jobs:
122126 - setup_flutter
123127 - setup_patrol
124128 - android/start-emulator-and-run-tests :
129+ run-tests-working-directory : example
125130 additional-avd-args : --device 3
126131 system-image : system-images;android-33;default;x86_64
127- post-emulator-launch-assemble-command : cd example
128132 test-command : patrol test -t integration_test/ --verbose
129133
130134 test_ios :
@@ -146,6 +150,7 @@ jobs:
146150 -resultBundlePath coverage/result.xcresult \
147151 -sdk iphonesimulator \
148152 -destination 'platform=iOS Simulator,name=iPhone 15 Pro Max,OS=17.2' \
153+ -skip-testing:RunnerUITests \
149154 test | xcpretty
150155
151156 e2e_ios_patrol :
@@ -156,6 +161,21 @@ jobs:
156161 - advanced-checkout/shallow-checkout
157162 - setup_ios
158163 - setup_patrol
164+ - run :
165+ name : Boot First Available Simulator and Print Info
166+ command : |
167+ # Find the first available shutdown simulator
168+ SIM_LINE=$(xcrun simctl list devices available | grep -m1 "Shutdown")
169+ SIM_NAME=$(echo "$SIM_LINE" | awk -F '[()]' '{print $1}' | xargs)
170+ DEVICE_ID=$(echo "$SIM_LINE" | awk -F '[()]' '{print $2}')
171+
172+ echo "Booting simulator: $SIM_NAME ($DEVICE_ID)"
173+ xcrun simctl boot "$DEVICE_ID"
174+
175+ sleep 10
176+
177+ # Confirm booted device
178+ xcrun simctl list | grep "$DEVICE_ID"
159179 - run :
160180 name : Run E2E Tests
161181 no_output_timeout : 30m
0 commit comments