@@ -46,10 +46,22 @@ commands:
46
46
parameters :
47
47
generate_pigeons :
48
48
type : boolean
49
+ remove_patrol :
50
+ type : boolean
51
+ default : false
49
52
steps :
50
53
- run :
51
54
name : Install Flutter Packages
52
55
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
53
65
- run :
54
66
name : Install Dart Packages
55
67
command : dart pub get --verbose
@@ -90,21 +102,9 @@ jobs:
90
102
- image : cirrusci/flutter:<<parameters.version>>
91
103
steps :
92
104
- 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
106
105
- install_flutter_and_dart_packages :
107
106
generate_pigeons : true
107
+ remove_patrol : true
108
108
- run : flutter test --coverage
109
109
- run :
110
110
working_directory : coverage
@@ -138,6 +138,7 @@ jobs:
138
138
- android/start-emulator-and-run-tests :
139
139
additional-avd-args : --device 3
140
140
system-image : system-images;android-33;default;x86_64
141
+ post-emulator-launch-assemble-command : cd example
141
142
test-command : cd example && patrol test -t integration_test/ --verbose
142
143
143
144
test_ios :
@@ -171,7 +172,9 @@ jobs:
171
172
- setup_ios
172
173
- setup_patrol
173
174
- 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"
175
178
- run :
176
179
name : Run E2E Tests
177
180
no_output_timeout : 30m
0 commit comments