Skip to content

Commit 7a2c723

Browse files
committed
add logging
1 parent 6d157c5 commit 7a2c723

File tree

1 file changed

+42
-18
lines changed

1 file changed

+42
-18
lines changed

.circleci/config.yml

Lines changed: 42 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ run_on_release: &run_on_release
3737
branches:
3838
ignore: /.*/
3939

40-
4140
commands:
4241
attach_project:
4342
steps:
@@ -140,15 +139,41 @@ jobs:
140139
system-image: system-images;android-29;default;x86
141140
install: true
142141

143-
- android/start-emulator:
142+
- android/start-emulator:
144143
avd-name: Android_29
145144
no-window: true
146145
post-emulator-launch-assemble-command: echo Emulator Started
147146

147+
- run:
148+
name: Wait for emulator to finish booting
149+
command: |
150+
echo "⏳ Waiting for emulator to boot..."
151+
adb wait-for-device
152+
boot_completed=""
153+
until [[ "$boot_completed" == "1" ]]; do
154+
boot_completed=$(adb shell getprop sys.boot_completed 2>/dev/null | tr -d '\r')
155+
echo "boot_completed=$boot_completed"
156+
sleep 5
157+
done
158+
echo "✅ Emulator boot complete"
159+
160+
- run:
161+
name: Log emulator + Intercom info
162+
command: |
163+
echo "🛰 Connected ADB devices:"
164+
adb devices
165+
166+
echo "📱 Installed packages:"
167+
adb shell pm list packages | grep intercom || true
168+
169+
echo "📜 Last 100 lines of logcat:"
170+
adb logcat -d | tail -n 100 || true
171+
148172
- run:
149173
name: Install app on emulator
150174
command: |
151-
adb install -r ~/project/example/android/app/build/outputs/apk/debug/app-debug.apk
175+
adb install -r ~/project/example/android/app/build/outputs/apk/release/app-release.apk
176+
152177
153178
- run:
154179
working_directory: example/test
@@ -236,7 +261,6 @@ jobs:
236261
name: Publish the package
237262
command: npm publish
238263

239-
240264
workflows:
241265
version: 2.1
242266
build-and-test:
@@ -260,21 +284,21 @@ workflows:
260284
requires:
261285
- install-dependencies
262286
- android-e2e-test:
263-
<<: *run_always
264-
requires:
265-
- install-dependencies
266-
- lint
267-
- typescript
268-
- unit-tests
269-
- build-package
287+
<<: *run_always
288+
requires:
289+
- install-dependencies
290+
- lint
291+
- typescript
292+
- unit-tests
293+
- build-package
270294
- ios-e2e-test:
271-
<<: *run_always
272-
requires:
273-
- install-dependencies
274-
- lint
275-
- typescript
276-
- unit-tests
277-
- build-package
295+
<<: *run_always
296+
requires:
297+
- install-dependencies
298+
- lint
299+
- typescript
300+
- unit-tests
301+
- build-package
278302

279303
- release-to-npm:
280304
<<: *run_on_release

0 commit comments

Comments
 (0)