monitoring: build latest taler-android then same adb pay smoke
Add run-android-build-and-smoke.sh (assembleFdroidDebug from taler-android master) and wire APK_PATH/PKG into the existing smoke.
This commit is contained in:
parent
f79d6350c3
commit
b1c8e5ddb2
5 changed files with 143 additions and 9 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
# Android wallet smoke: install published F-Droid APK, open withdraw/pay URIs via adb.
|
||||
# Android wallet smoke: install APK (published F-Droid **or** from-source), open
|
||||
# withdraw/pay URIs via adb.
|
||||
#
|
||||
# No root required if:
|
||||
# - adb is available (package android-tools-adb / platform-tools)
|
||||
|
|
@ -7,10 +8,12 @@
|
|||
# - optional user-local SDK under $HOME/Android/Sdk (emulator)
|
||||
#
|
||||
# Usage:
|
||||
# ./android-test/run-android-pay-smoke.sh # auto stack (GOA if local, else stage)
|
||||
# ./android-test/run-android-pay-smoke.sh # published F-Droid APK
|
||||
# STACK=goa ./android-test/run-android-pay-smoke.sh
|
||||
# STACK=stage ./android-test/run-android-pay-smoke.sh
|
||||
# SERIAL=emulator-5554 ./android-test/run-android-pay-smoke.sh
|
||||
# # from-source (built first):
|
||||
# ./android-test/run-android-build-and-smoke.sh
|
||||
# APK_PATH=/path/to.apk PKG=net.taler.wallet.fdroid.debug ./run-android-pay-smoke.sh
|
||||
#
|
||||
# Published APK (default): F-Droid Taler Wallet 1.6.1 (854)
|
||||
# https://f-droid.org/packages/net.taler.wallet.fdroid/
|
||||
|
|
@ -20,6 +23,8 @@ ROOT=$(cd "$(dirname "$0")" && pwd)
|
|||
APK_DIR="${APK_DIR:-$ROOT/apks}"
|
||||
APK_URL="${APK_URL:-https://f-droid.org/repo/net.taler.wallet.fdroid_854.apk}"
|
||||
APK_NAME="${APK_NAME:-net.taler.wallet.fdroid_854.apk}"
|
||||
# Optional override: full path to an already-built APK (from-source)
|
||||
APK_PATH="${APK_PATH:-}"
|
||||
PKG="${PKG:-net.taler.wallet.fdroid}"
|
||||
STACK="${STACK:-auto}" # auto | goa | stage
|
||||
SERIAL="${SERIAL:-}"
|
||||
|
|
@ -77,13 +82,18 @@ case "$STACK" in
|
|||
esac
|
||||
echo "stack: $STACK bank: $BANK"
|
||||
|
||||
# APK
|
||||
APK_PATH="$APK_DIR/$APK_NAME"
|
||||
if [ ! -f "$APK_PATH" ]; then
|
||||
# APK: explicit path, or download published F-Droid into APK_DIR
|
||||
if [ -n "$APK_PATH" ] && [ -f "$APK_PATH" ]; then
|
||||
:
|
||||
elif [ -f "$APK_DIR/$APK_NAME" ]; then
|
||||
APK_PATH="$APK_DIR/$APK_NAME"
|
||||
else
|
||||
APK_PATH="$APK_DIR/$APK_NAME"
|
||||
echo "downloading published wallet APK…"
|
||||
curl -fL --retry 3 -o "$APK_PATH" "$APK_URL"
|
||||
fi
|
||||
echo "apk: $APK_PATH ($(wc -c <"$APK_PATH") bytes)"
|
||||
echo "pkg: $PKG"
|
||||
|
||||
"${ADB[@]}" wait-for-device
|
||||
"${ADB[@]}" install -r "$APK_PATH"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue