Skip to content

Commit b6efdee

Browse files
committed
CI: Launch emulator on instrumented tests job without gmd
1 parent 231877d commit b6efdee

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.buildkite/pipeline.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,28 @@ steps:
2323

2424
- label: "Instrumented tests without GMD (ReviewsUITest)"
2525
command: |
26+
echo "--- 📋 Checking Android SDK"
27+
adb --version
28+
emulator -list-avds
29+
echo "--- 🤖 Launching Emulator(s)"
30+
emulator -avd pixel5api34 -no-snapshot -no-boot-anim -no-audio &
31+
echo "--- 🤖 Waiting for Emulator(s) to Start"
32+
adb wait-for-device
33+
while [ "$(adb shell getprop sys.boot_completed | tr -d '\r')" != "1" ]; do
34+
sleep 1
35+
done
36+
echo "--- 🤖 Unlock Emulator(s)"
37+
adb shell dumpsys window | grep mDreamingLockscreen
38+
adb -s emulator-5554 shell input keyevent 82
39+
echo "--- 🤖 Checking Emulator(s)"
40+
adb devices
41+
adb shell dumpsys window | grep mDreamingLockscreen
2642
echo "--- 🧪 Testing"
2743
./gradlew :WooCommerce:connectedVanillaDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.woocommerce.android.e2e.tests.ui.ReviewsUITest
44+
echo "--- 🤖 Checking Emulator(s)"
45+
adb devices
46+
echo "--- 🤖 Stopping Emulator(s)"
47+
adb -s emulator-5554 emu kill
2848
plugins: [ $CI_TOOLKIT ]
2949
artifact_paths:
3050
- "**/build/reports/androidTests/connected/**/**/**/*"

0 commit comments

Comments
 (0)