Skip to content

Commit aa45682

Browse files
ci: upgrade android orb, node orbe android image (#454)
* ci: upgrade android orb, node orb and android_image versions * ci: apply Circle Ci recommendations * ci: fix missing tag circle ci error * ci: fix image android:2024.01.1-ndk is not a valid resource class error * Updated config.yml * ci: add default to android tag * ci: remove [ additional-avd-args: -d "pixel_4"] * ci: upgrade [android system-image from android-30 to android-33 ] * ci: upgrade [system image to x86_64] * ci: upgrade [system image to x86_64] * chore(CI): using x86 android emulator system image * chore(CI): using x86 android emulator system image * chore (CI): change system-image to [system-images;android-29;default;x86] * chore (CI): add install avd command * chore (CI): hash non related jobs * chore (CI): rename emulator * ci: remove espresso test cases --------- Co-authored-by: Ahmed alaa <[email protected]>
1 parent 84da8e5 commit aa45682

File tree

2 files changed

+35
-38
lines changed

2 files changed

+35
-38
lines changed

.circleci/config.yml

Lines changed: 32 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
version: 2.1
22

33
orbs:
4-
android: circleci/[email protected]
4+
android: circleci/android@2.5.0
55
flutter: circleci/[email protected]
6-
node: circleci/[email protected]
6+
node: circleci/[email protected]
7+
advanced-checkout: vsco/[email protected]
78

89
commands:
910
setup_flutter:
@@ -103,13 +104,12 @@ commands:
103104
name: Build Pigeons
104105
command: dart run build_runner build --delete-conflicting-outputs
105106

106-
107107
jobs:
108108
danger:
109109
executor:
110110
name: node/default
111111
steps:
112-
- checkout
112+
- advanced-checkout/shallow-checkout
113113
- node/install-packages:
114114
pkg-manager: yarn
115115
override-ci-command: yarn install --frozen-lockfile --network-concurrency 1
@@ -126,7 +126,7 @@ jobs:
126126
docker:
127127
- image: cirrusci/flutter:<<parameters.version>>
128128
steps:
129-
- checkout
129+
- advanced-checkout/shallow-checkout
130130
- install_flutter_and_dart_packages:
131131
generate_pigeons: true
132132
- run: flutter test --coverage
@@ -142,16 +142,10 @@ jobs:
142142
executor:
143143
name: android/android-machine
144144
resource-class: xlarge
145-
tag: 2022.04.1
145+
tag: default
146146
steps:
147-
- checkout
147+
- advanced-checkout/shallow-checkout
148148
- 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
155149
- android/run-tests:
156150
working-directory: example/android
157151
test-command: ./gradlew test
@@ -160,42 +154,45 @@ jobs:
160154
executor:
161155
name: android/android-machine
162156
resource-class: xlarge
163-
tag: 2022.04.1
157+
tag: default
164158
steps:
165-
- checkout
159+
- advanced-checkout/shallow-checkout
166160
- setup_captain:
167161
platform: android
168162
- setup_flutter
169163
- 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
174168

175169
test_ios:
176170
macos:
177-
xcode: 13.4.1
171+
xcode: 15.3.0
178172
resource_class: macos.m1.medium.gen1
173+
environment:
174+
INSTABUG_SOURCEMAPS_UPLOAD_DISABLE: true
179175
steps:
180-
- checkout
176+
- advanced-checkout/shallow-checkout
181177
- setup_ios
182178
- run:
183179
name: Build and run tests
184-
working_directory: example/ios
180+
working_directory: ~/project/example/ios
185181
command: |
186182
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
192189
193190
e2e_ios_captain:
194191
macos:
195-
xcode: 13.4.1
192+
xcode: 15.3.0
196193
resource_class: macos.m1.medium.gen1
197194
steps:
198-
- checkout
195+
- advanced-checkout/shallow-checkout
199196
- setup_captain:
200197
platform: ios
201198
- setup_ios
@@ -213,7 +210,7 @@ jobs:
213210
docker:
214211
- image: cirrusci/flutter
215212
steps:
216-
- checkout
213+
- advanced-checkout/shallow-checkout
217214
- install_flutter_and_dart_packages:
218215
generate_pigeons: false
219216
- run:
@@ -224,7 +221,7 @@ jobs:
224221
docker:
225222
- image: cirrusci/flutter
226223
steps:
227-
- checkout
224+
- advanced-checkout/shallow-checkout
228225
- install_flutter_and_dart_packages:
229226
generate_pigeons: true
230227
- run:
@@ -235,7 +232,7 @@ jobs:
235232
docker:
236233
- image: cirrusci/flutter
237234
steps:
238-
- checkout
235+
- advanced-checkout/shallow-checkout
239236
- install_flutter_and_dart_packages:
240237
generate_pigeons: true
241238
- run:
@@ -245,11 +242,11 @@ jobs:
245242

246243
release:
247244
macos:
248-
xcode: 13.4.1
245+
xcode: 15.3.0
249246
resource_class: macos.m1.medium.gen1
250247
working_directory: "~"
251248
steps:
252-
- checkout:
249+
- advanced-checkout/shallow-checkout:
253250
path: ~/project
254251
# Flutter doesn't support Apple Silicon yet, so we need to install Rosetta use Flutter on M1 machines.
255252
- run:
@@ -284,6 +281,7 @@ workflows:
284281
version: 2
285282
build-test-and-approval-deploy:
286283
jobs:
284+
- test_android
287285
- danger:
288286
requires:
289287
- test_flutter-stable
@@ -293,7 +291,6 @@ workflows:
293291
- test_flutter:
294292
name: test_flutter-2.10.5
295293
version: 2.10.5
296-
- test_android
297294
- e2e_android_captain
298295
- test_ios
299296
- e2e_ios_captain

e2e/Utils/CaptainTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ public class CaptainTest : IDisposable
99
{
1010
AndroidApp = Path.GetFullPath("../../../../example/build/app/outputs/flutter-apk/app-debug.apk"),
1111
AndroidAppId = "com.instabug.flutter.example",
12-
AndroidVersion = "11",
12+
AndroidVersion = "13",
1313
IosApp = Path.GetFullPath("../../../../example/build/ios/iphonesimulator/Runner.app"),
1414
IosAppId = "com.instabug.InstabugSample",
15-
IosVersion = "15.5",
16-
IosDevice = "iPhone 13 Pro Max"
15+
IosVersion = "17.4",
16+
IosDevice = "iPhone 15 Pro Max"
1717
};
1818
protected static readonly Captain captain = new(_config);
1919

0 commit comments

Comments
 (0)