1
1
version : 2.1
2
2
3
3
orbs :
4
- android :
circleci/[email protected]
4
+ android : circleci/android@2.5. 0
5
5
flutter :
circleci/[email protected]
6
-
6
+
7
+ advanced-checkout :
vsco/[email protected]
7
8
8
9
commands :
9
10
setup_flutter :
@@ -103,13 +104,12 @@ commands:
103
104
name : Build Pigeons
104
105
command : dart run build_runner build --delete-conflicting-outputs
105
106
106
-
107
107
jobs :
108
108
danger :
109
109
executor :
110
110
name : node/default
111
111
steps :
112
- - checkout
112
+ - advanced-checkout/shallow- checkout
113
113
- node/install-packages :
114
114
pkg-manager : yarn
115
115
override-ci-command : yarn install --frozen-lockfile --network-concurrency 1
@@ -126,7 +126,7 @@ jobs:
126
126
docker :
127
127
- image : cirrusci/flutter:<<parameters.version>>
128
128
steps :
129
- - checkout
129
+ - advanced-checkout/shallow- checkout
130
130
- install_flutter_and_dart_packages :
131
131
generate_pigeons : true
132
132
- run : flutter test --coverage
@@ -142,16 +142,10 @@ jobs:
142
142
executor :
143
143
name : android/android-machine
144
144
resource-class : xlarge
145
- tag : 2022.04.1
145
+ tag : default
146
146
steps :
147
- - checkout
147
+ - advanced-checkout/shallow- checkout
148
148
- setup_flutter
149
- - android/start-emulator-and-run-tests :
150
- system-image : system-images;android-30;google_apis;x86
151
- additional-avd-args : -d "Nexus 5"
152
- post-emulator-launch-assemble-command : cd example && flutter build apk
153
- run-tests-working-directory : example/android
154
- test-command : ./gradlew app:connectedAndroidTest -Ptarget=`pwd`/../test_driver/example.dart
155
149
- android/run-tests :
156
150
working-directory : example/android
157
151
test-command : ./gradlew test
@@ -160,42 +154,45 @@ jobs:
160
154
executor :
161
155
name : android/android-machine
162
156
resource-class : xlarge
163
- tag : 2022.04.1
157
+ tag : default
164
158
steps :
165
- - checkout
159
+ - advanced-checkout/shallow- checkout
166
160
- setup_captain :
167
161
platform : android
168
162
- setup_flutter
169
163
- android/start-emulator-and-run-tests :
170
- system-image : system-images;android-30;google_apis;x86
171
- additional-avd-args : -d "pixel_4"
172
- post-emulator-launch-assemble-command : cd example || true && flutter build apk --debug
173
- test-command : cd e2e || true && dotnet test
164
+ run-tests-working-directory : e2e
165
+ system-image : system-images;android-33;default;x86_64
166
+ post-emulator-launch-assemble-command : cd example && flutter build apk --debug
167
+ test-command : dotnet test
174
168
175
169
test_ios :
176
170
macos :
177
- xcode : 13.4.1
171
+ xcode : 15.3.0
178
172
resource_class : macos.m1.medium.gen1
173
+ environment :
174
+ INSTABUG_SOURCEMAPS_UPLOAD_DISABLE : true
179
175
steps :
180
- - checkout
176
+ - advanced-checkout/shallow- checkout
181
177
- setup_ios
182
178
- run :
183
179
name : Build and run tests
184
- working_directory : example/ios
180
+ working_directory : ~/project/ example/ios
185
181
command : |
186
182
xcodebuild -allowProvisioningUpdates \
187
- -workspace Runner.xcworkspace \
188
- -scheme Runner \
189
- -sdk iphonesimulator \
190
- -destination 'name=iPhone 12 Pro Max' \
191
- test | xcpretty
183
+ -workspace Runner.xcworkspace \
184
+ -scheme Runner \
185
+ -resultBundlePath coverage/result.xcresult \
186
+ -sdk iphonesimulator \
187
+ -destination 'platform=iOS Simulator,name=iPhone 15 Pro Max,OS=17.4' \
188
+ test | xcpretty
192
189
193
190
e2e_ios_captain :
194
191
macos :
195
- xcode : 13.4.1
192
+ xcode : 15.3.0
196
193
resource_class : macos.m1.medium.gen1
197
194
steps :
198
- - checkout
195
+ - advanced-checkout/shallow- checkout
199
196
- setup_captain :
200
197
platform : ios
201
198
- setup_ios
@@ -213,7 +210,7 @@ jobs:
213
210
docker :
214
211
- image : cirrusci/flutter
215
212
steps :
216
- - checkout
213
+ - advanced-checkout/shallow- checkout
217
214
- install_flutter_and_dart_packages :
218
215
generate_pigeons : false
219
216
- run :
@@ -224,7 +221,7 @@ jobs:
224
221
docker :
225
222
- image : cirrusci/flutter
226
223
steps :
227
- - checkout
224
+ - advanced-checkout/shallow- checkout
228
225
- install_flutter_and_dart_packages :
229
226
generate_pigeons : true
230
227
- run :
@@ -235,7 +232,7 @@ jobs:
235
232
docker :
236
233
- image : cirrusci/flutter
237
234
steps :
238
- - checkout
235
+ - advanced-checkout/shallow- checkout
239
236
- install_flutter_and_dart_packages :
240
237
generate_pigeons : true
241
238
- run :
@@ -245,11 +242,11 @@ jobs:
245
242
246
243
release :
247
244
macos :
248
- xcode : 13.4.1
245
+ xcode : 15.3.0
249
246
resource_class : macos.m1.medium.gen1
250
247
working_directory : " ~"
251
248
steps :
252
- - checkout :
249
+ - advanced-checkout/shallow- checkout :
253
250
path : ~/project
254
251
# Flutter doesn't support Apple Silicon yet, so we need to install Rosetta use Flutter on M1 machines.
255
252
- run :
@@ -284,6 +281,7 @@ workflows:
284
281
version : 2
285
282
build-test-and-approval-deploy :
286
283
jobs :
284
+ - test_android
287
285
- danger :
288
286
requires :
289
287
- test_flutter-stable
@@ -293,7 +291,6 @@ workflows:
293
291
- test_flutter :
294
292
name : test_flutter-2.10.5
295
293
version : 2.10.5
296
- - test_android
297
294
- e2e_android_captain
298
295
- test_ios
299
296
- e2e_ios_captain
0 commit comments