yarab#8_gemini

pull/2098/head^2
Moe 4 months ago
parent 88819ad11e
commit 216369a79d

@ -48,23 +48,17 @@ jobs:
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -memory 4096
disable-animations: true
script: |
# 1. Start recording in background
# 1. Start recording
adb shell screenrecord --time-limit 180 /sdcard/benchmark_video.mp4 &
# 2. Run ONLY the StartupBenchmark class (filters out the 15+ tests)
# '|| true' ensures the script continues so we can PULL the video even on failure
./gradlew :benchmarks:connectedDemoBenchmarkAndroidTest \
-Pandroid.testInstrumentationRunnerArguments.class=com.google.samples.apps.nowinandroid.startup.StartupBenchmark \
-Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.suppressErrors=EMULATOR || true
# 2. Run ONLY the Startup tests (ONE CONTINUOUS LINE - NO BACKSLASHES)
./gradlew :benchmarks:connectedDemoBenchmarkAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.google.samples.apps.nowinandroid.startup.StartupBenchmark -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.suppressErrors=EMULATOR || true
# 3. Pull the video (Adding extra sleep to ensure recording finishes)
echo "Stopping recording and pulling video..."
# 3. Pull the video (This will run even if the tests above fail)
echo "Pulling video file..."
adb shell pkill -2 screenrecord || true
sleep 5
adb pull /sdcard/benchmark_video.mp4 .
# 4. Verify the file exists for the next step
ls -lh benchmark_video.mp4
adb pull /sdcard/benchmark_video.mp4 benchmark_video.mp4
- name: Upload Artifacts
if: always()

Loading…
Cancel
Save