Skip to content

Commit 908e914

Browse files
none: checking emulator is up before running tests and installing ruby version for ios
1 parent 39d1997 commit 908e914

File tree

3 files changed

+20
-11
lines changed

3 files changed

+20
-11
lines changed

.circleci/config.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ executors:
2121

2222
orbs:
2323
android: circleci/[email protected]
24-
node: circleci/[email protected]
2524

2625
# Always run job
2726
run_always: &run_always
@@ -117,13 +116,12 @@ jobs:
117116
executor:
118117
name: android/android-machine
119118
resource-class: large
120-
tag: default
119+
tag: 2021.10.1
121120
working_directory: ~/project
122121
steps:
123122
- checkout:
124123
path: ~/project
125-
- node/install:
126-
node-version: '18.17.0'
124+
127125
- attach_workspace:
128126
at: ~/project
129127

@@ -149,6 +147,19 @@ jobs:
149147
no-window: true
150148
post-emulator-launch-assemble-command: echo Emulator Started
151149

150+
- run:
151+
name: Wait for emulator to boot completely
152+
command: |
153+
# Wait for emulator to fully boot
154+
adb wait-for-device
155+
# Wait until the device is fully booted
156+
BOOT_COMPLETED=$(adb shell getprop sys.boot_completed | tr -d '\r')
157+
while [ "$BOOT_COMPLETED" != "1" ]; do
158+
sleep 5
159+
BOOT_COMPLETED=$(adb shell getprop sys.boot_completed | tr -d '\r')
160+
echo "Waiting for emulator to boot: $BOOT_COMPLETED"
161+
done
162+
152163
- run:
153164
working_directory: example/e2e
154165
name: Run UI Tests
@@ -175,12 +186,10 @@ jobs:
175186
- run:
176187
name: Set Ruby Version
177188
command: |
178-
# Check available Ruby versions
179-
rbenv versions
180-
# Try to install Ruby 3.3.5 if not available
181-
rbenv install 3.3.5 || true
189+
# Try to install Ruby 3.3.4 if not available
190+
rbenv install 3.3.4 || true
182191
# Set global Ruby version
183-
rbenv global 3.3.5
192+
rbenv global 3.3.4
184193
rbenv rehash
185194
# Verify Ruby version
186195
ruby --version

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.5
1+
3.3.4

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source 'https://rubygems.org'
22

33
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4-
ruby '3.3.5'
4+
ruby '3.3.4'
55

66
gem 'activesupport', '~> 7.2'
77
gem 'cocoapods', '~> 1.16'

0 commit comments

Comments
 (0)