@@ -46,10 +46,22 @@ commands:
4646 parameters :
4747 generate_pigeons :
4848 type : boolean
49+ remove_patrol :
50+ type : boolean
51+ default : false
4952 steps :
5053 - run :
5154 name : Install Flutter Packages
5255 command : flutter pub get --verbose
56+ - when :
57+ condition :
58+ equal :
59+ - <<parameters.remove_patrol>>
60+ - true
61+ steps :
62+ - run :
63+ name : remove Patrol
64+ command : dart pub remove patrol
5365 - run :
5466 name : Install Dart Packages
5567 command : dart pub get --verbose
@@ -90,21 +102,9 @@ jobs:
90102 - image : cirrusci/flutter:<<parameters.version>>
91103 steps :
92104 - advanced-checkout/shallow-checkout
93- - run :
94- name : Remove `patrol:` from dev_dependencies in example/pubspec.yaml
95- command : |
96- awk '
97- BEGIN { inside_dev_deps = 0 }
98- /^\s*dev_dependencies:/ { inside_dev_deps = 1; print; next }
99- /^\s*\S+:/ && inside_dev_deps && !/^ *patrol:/ {
100- inside_dev_deps = 0
101- }
102- inside_dev_deps && /^\s*patrol:/ { next }
103- { print }
104- ' example/pubspec.yaml > example/pubspec.cleaned.yaml
105- mv example/pubspec.cleaned.yaml example/pubspec.yaml
106105 - install_flutter_and_dart_packages :
107106 generate_pigeons : true
107+ remove_patrol : true
108108 - run : flutter test --coverage
109109 - run :
110110 working_directory : coverage
@@ -138,6 +138,7 @@ jobs:
138138 - android/start-emulator-and-run-tests :
139139 additional-avd-args : --device 3
140140 system-image : system-images;android-33;default;x86_64
141+ post-emulator-launch-assemble-command : cd example
141142 test-command : cd example && patrol test -t integration_test/ --verbose
142143
143144 test_ios :
@@ -171,7 +172,9 @@ jobs:
171172 - setup_ios
172173 - setup_patrol
173174 - ios/preboot-simulator
174- - ios/wait-until-simulator-booted
175+ - ios/wait-until-simulator-booted :
176+ version : " 17.2"
177+ device : " iPhone 15 Pro Max"
175178 - run :
176179 name : Run E2E Tests
177180 no_output_timeout : 30m
0 commit comments