ci: let the Unit tests workflow configure without add-on packs

app/build.gradle requires every add-on pack on CI, but the Unit tests
workflow builds no APK. -PunitTestsOnly=true lets it fall back to the
local behaviour.
This commit is contained in:
Kurt Himebauch committed 2026-12-02 00:18:23 -05:00
1 parent 25ee14aa2f
commit 5a445356e4
3 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -129,7 +129,7 @@ jobs:
# A Maven 429 fails every test class that needs the missing jar. The jars an attempt did get stay for the next.
for wait in 60 180 0; do
status=0
./gradlew testReleaseUnitTest --console=plain --info --stacktrace -Drobolectric.logging=stderr -PskipRust=true -PndkVersion="$NDK_VERSION" 2>&1 | tee app/build/unit-tests.log || status=$?
./gradlew testReleaseUnitTest --console=plain --info --stacktrace -Drobolectric.logging=stderr -PskipRust=true -PunitTestsOnly=true -PndkVersion="$NDK_VERSION" 2>&1 | tee app/build/unit-tests.log || status=$?
if [ "$status" = 0 ] || [ "$wait" = 0 ] || ! grep -Eq '^[[:space:]]*(Caused by: org\.gradle\.internal\.resource\.transport\.http\.HttpErrorStatusCodeException: Could not GET .*https://repo\.maven\.apache\.org/.*Received status code 429 from server|Caused by: java\.io\.IOException: Server returned HTTP response code: 429 for URL: https://repo\.maven\.apache\.org/)' app/build/unit-tests.log; then
exit "$status"
fi