mirror of
https://github.com/ActivityLauncher/ActivityLauncher.git
synced 2026-10-03 12:16:18 +00:00
ci: increase disk-size to 8192M and add PackageManager readiness check in run_instrumented_tests.sh
This commit is contained in:
parent
9de3c6341b
commit
e7aa1ca683
2 changed files with 12 additions and 4 deletions
4
.github/workflows/android-ci.yml
vendored
4
.github/workflows/android-ci.yml
vendored
|
|
@ -74,7 +74,7 @@ jobs:
|
|||
arch: x86_64
|
||||
target: google_apis_ps16k
|
||||
profile: small_phone
|
||||
disk-size: 4096M
|
||||
disk-size: 8192M
|
||||
ram-size: 4096M
|
||||
disable-animations: true
|
||||
script: bash scripts/run_instrumented_tests.sh
|
||||
|
|
@ -116,7 +116,7 @@ jobs:
|
|||
arch: x86_64
|
||||
target: google_apis_ps16k
|
||||
profile: small_phone
|
||||
disk-size: 4096M
|
||||
disk-size: 8192M
|
||||
ram-size: 4096M
|
||||
disable-animations: true
|
||||
script: bash scripts/run_upgrade_test.sh
|
||||
|
|
|
|||
|
|
@ -1,10 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Wait for boot (android-emulator-runner already does this, but be safe)
|
||||
echo "Waiting for device..."
|
||||
echo "Waiting for device & PackageManager..."
|
||||
adb wait-for-device
|
||||
|
||||
for i in {1..30}; do
|
||||
if adb shell pm path android >/dev/null 2>&1; then
|
||||
echo "PackageManager service is ready!"
|
||||
break
|
||||
fi
|
||||
echo "Waiting for PackageManager service..."
|
||||
sleep 2
|
||||
done
|
||||
|
||||
res=0
|
||||
./gradlew connectedOssNoadsDebugAndroidTest -PAPPID=de.szalkowski.activitylauncher.oss --build-cache || res=$?
|
||||
mkdir -p screenshots
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue