Skip to content

ci: upgrade android orb, node orbe android image #454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 46 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
34fc650
ci: upgrade android orb, node orb and android_image versions
AndrewAminInstabug Mar 26, 2024
53f4d25
ci: apply Circle Ci recommendations
AndrewAminInstabug Mar 26, 2024
85eb460
ci: fix missing tag circle ci error
AndrewAminInstabug Mar 26, 2024
a19c000
ci: fix image android:2024.01.1-ndk is not a valid resource class
AndrewAminInstabug Mar 26, 2024
3d3d29d
Updated config.yml
AndrewAminInstabug Mar 26, 2024
a47f3b7
ci: add default to android tag
AndrewAminInstabug Mar 26, 2024
511f102
ci: add "Quotes" in order to solve the [cd: too many arguments] error
AndrewAminInstabug Mar 27, 2024
f416e47
ci: revert commit [511f102]
AndrewAminInstabug Mar 31, 2024
636cb7b
ci: revert commit [511f102]
AndrewAminInstabug Apr 1, 2024
6a687c0
ci: update emulator image to "Pixel 4"
AndrewAminInstabug Apr 1, 2024
bd2165c
ci: update emulator image to "pixel_4"
AndrewAminInstabug Apr 1, 2024
d04c348
ci: remove [ additional-avd-args: -d "pixel_4"]
AndrewAminInstabug Apr 1, 2024
dae6967
ci: upgrade [android system-image from android-30 to android-33 ]
AndrewAminInstabug Apr 2, 2024
d6b2b04
ci: upgrade [system image to x86_64]
AndrewAminInstabug Apr 2, 2024
2f45c1d
ci: upgrade [system image to x86_64]
AndrewAminInstabug Apr 2, 2024
cd72fe6
chore(CI): using x86 android emulator system image
ahmedAlaaInstabug Apr 16, 2024
4f40ef3
chore(CI): using x86 android emulator system image
ahmedAlaaInstabug Apr 16, 2024
685ebac
chore (CI): change system-image to [system-images;android-29;default;…
AndrewAminInstabug Apr 18, 2024
2c776aa
chore (CI): change system-image to [system-images;android-29;default;…
AndrewAminInstabug Apr 18, 2024
9651941
chore (CI): add install avd command
AndrewAminInstabug Apr 18, 2024
cefc7d8
chore (CI): hash non related jobs
AndrewAminInstabug Apr 18, 2024
73f08e0
chore (CI): hash non related jobs
AndrewAminInstabug Apr 18, 2024
fdaa814
chore (CI): rename emulator
AndrewAminInstabug Apr 18, 2024
bacd3e4
chore (CI): rename emulator
AndrewAminInstabug Apr 18, 2024
9c9fae2
chore (CI): rename emulator
AndrewAminInstabug Apr 18, 2024
72409f7
chore (CI): rename emulator
ahmedAlaaInstabug Apr 21, 2024
b044bd4
chore (CI): rename emulator
ahmedAlaaInstabug Apr 21, 2024
e9e93ab
chore (CI): rename emulator
ahmedAlaaInstabug Apr 21, 2024
519f9e2
chore (CI): rename emulator
ahmedAlaaInstabug Apr 21, 2024
bc0d9de
ci: remove espresso test cases
ahmedAlaaInstabug Apr 23, 2024
d493712
ci: remove espresso test cases
ahmedAlaaInstabug Apr 23, 2024
6324d0a
ci: remove espresso test cases
ahmedAlaaInstabug Apr 23, 2024
dbca05c
ci: remove espresso test cases
ahmedAlaaInstabug Apr 23, 2024
0a48986
ci: remove espresso test cases
ahmedAlaaInstabug Apr 23, 2024
9c484fd
ci: remove espresso test cases
ahmedAlaaInstabug Apr 23, 2024
c9f0b1e
ci: remove espresso test cases
ahmedAlaaInstabug Apr 23, 2024
337c6f3
ci: remove espresso test cases
ahmedAlaaInstabug Apr 23, 2024
23a7551
ci: remove espresso test cases
ahmedAlaaInstabug Apr 23, 2024
6b8cba3
ci: remove espresso test cases
ahmedAlaaInstabug Apr 23, 2024
44bb0bd
ci: remove espresso test cases
ahmedAlaaInstabug Apr 23, 2024
8cbfc1d
ci: remove espresso test cases
ahmedAlaaInstabug Apr 23, 2024
e592bbd
ci: remove espresso test cases
ahmedAlaaInstabug Apr 23, 2024
50cfbde
ci: remove espresso test cases
ahmedAlaaInstabug Apr 23, 2024
ad8d783
ci: remove espresso test cases
ahmedAlaaInstabug Apr 23, 2024
4e73561
ci: remove espresso test cases
ahmedAlaaInstabug Apr 23, 2024
b3e0a2f
ci: remove espresso test cases
ahmedAlaaInstabug Apr 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 32 additions & 35 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
version: 2.1

orbs:
android: circleci/[email protected]
android: circleci/android@2.5.0
flutter: circleci/[email protected]
node: circleci/[email protected]
node: circleci/[email protected]
advanced-checkout: vsco/[email protected]

commands:
setup_flutter:
Expand Down Expand Up @@ -103,13 +104,12 @@ commands:
name: Build Pigeons
command: dart run build_runner build --delete-conflicting-outputs


jobs:
danger:
executor:
name: node/default
steps:
- checkout
- advanced-checkout/shallow-checkout
- node/install-packages:
pkg-manager: yarn
override-ci-command: yarn install --frozen-lockfile --network-concurrency 1
Expand All @@ -126,7 +126,7 @@ jobs:
docker:
- image: cirrusci/flutter:<<parameters.version>>
steps:
- checkout
- advanced-checkout/shallow-checkout
- install_flutter_and_dart_packages:
generate_pigeons: true
- run: flutter test --coverage
Expand All @@ -142,16 +142,10 @@ jobs:
executor:
name: android/android-machine
resource-class: xlarge
tag: 2022.04.1
tag: default
steps:
- checkout
- advanced-checkout/shallow-checkout
- setup_flutter
- android/start-emulator-and-run-tests:
system-image: system-images;android-30;google_apis;x86
additional-avd-args: -d "Nexus 5"
post-emulator-launch-assemble-command: cd example && flutter build apk
run-tests-working-directory: example/android
test-command: ./gradlew app:connectedAndroidTest -Ptarget=`pwd`/../test_driver/example.dart
- android/run-tests:
working-directory: example/android
test-command: ./gradlew test
Expand All @@ -160,42 +154,45 @@ jobs:
executor:
name: android/android-machine
resource-class: xlarge
tag: 2022.04.1
tag: default
steps:
- checkout
- advanced-checkout/shallow-checkout
- setup_captain:
platform: android
- setup_flutter
- android/start-emulator-and-run-tests:
system-image: system-images;android-30;google_apis;x86
additional-avd-args: -d "pixel_4"
post-emulator-launch-assemble-command: cd example || true && flutter build apk --debug
test-command: cd e2e || true && dotnet test
run-tests-working-directory: e2e
system-image: system-images;android-33;default;x86_64
post-emulator-launch-assemble-command: cd example && flutter build apk --debug
test-command: dotnet test

test_ios:
macos:
xcode: 13.4.1
xcode: 15.3.0
resource_class: macos.m1.medium.gen1
environment:
INSTABUG_SOURCEMAPS_UPLOAD_DISABLE: true
steps:
- checkout
- advanced-checkout/shallow-checkout
- setup_ios
- run:
name: Build and run tests
working_directory: example/ios
working_directory: ~/project/example/ios
command: |
xcodebuild -allowProvisioningUpdates \
-workspace Runner.xcworkspace \
-scheme Runner \
-sdk iphonesimulator \
-destination 'name=iPhone 12 Pro Max' \
test | xcpretty
-workspace Runner.xcworkspace \
-scheme Runner \
-resultBundlePath coverage/result.xcresult \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 15 Pro Max,OS=17.4' \
test | xcpretty

e2e_ios_captain:
macos:
xcode: 13.4.1
xcode: 15.3.0
resource_class: macos.m1.medium.gen1
steps:
- checkout
- advanced-checkout/shallow-checkout
- setup_captain:
platform: ios
- setup_ios
Expand All @@ -213,7 +210,7 @@ jobs:
docker:
- image: cirrusci/flutter
steps:
- checkout
- advanced-checkout/shallow-checkout
- install_flutter_and_dart_packages:
generate_pigeons: false
- run:
Expand All @@ -224,7 +221,7 @@ jobs:
docker:
- image: cirrusci/flutter
steps:
- checkout
- advanced-checkout/shallow-checkout
- install_flutter_and_dart_packages:
generate_pigeons: true
- run:
Expand All @@ -235,7 +232,7 @@ jobs:
docker:
- image: cirrusci/flutter
steps:
- checkout
- advanced-checkout/shallow-checkout
- install_flutter_and_dart_packages:
generate_pigeons: true
- run:
Expand All @@ -245,11 +242,11 @@ jobs:

release:
macos:
xcode: 13.4.1
xcode: 15.3.0
resource_class: macos.m1.medium.gen1
working_directory: "~"
steps:
- checkout:
- advanced-checkout/shallow-checkout:
path: ~/project
# Flutter doesn't support Apple Silicon yet, so we need to install Rosetta use Flutter on M1 machines.
- run:
Expand Down Expand Up @@ -284,6 +281,7 @@ workflows:
version: 2
build-test-and-approval-deploy:
jobs:
- test_android
- danger:
requires:
- test_flutter-stable
Expand All @@ -293,7 +291,6 @@ workflows:
- test_flutter:
name: test_flutter-2.10.5
version: 2.10.5
- test_android
- e2e_android_captain
- test_ios
- e2e_ios_captain
Expand Down
6 changes: 3 additions & 3 deletions e2e/Utils/CaptainTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ public class CaptainTest : IDisposable
{
AndroidApp = Path.GetFullPath("../../../../example/build/app/outputs/flutter-apk/app-debug.apk"),
AndroidAppId = "com.instabug.flutter.example",
AndroidVersion = "11",
AndroidVersion = "13",
IosApp = Path.GetFullPath("../../../../example/build/ios/iphonesimulator/Runner.app"),
IosAppId = "com.instabug.InstabugSample",
IosVersion = "15.5",
IosDevice = "iPhone 13 Pro Max"
IosVersion = "17.4",
IosDevice = "iPhone 15 Pro Max"
};
protected static readonly Captain captain = new(_config);

Expand Down