spiegel-keyman/resources/teamcity/android/keyman-android-test.sh
Eberhard Beilharz 0a5342150d
maint(android): use --release for release builds
This will fix the Android release builds. Previously we did a debug
build but then tried to copy files from the release build folder.

The original build config passed `--release` when doing a release build,
which lost when moving to build scripts.

Fixes: #14302
Build-bot: skip
Build-bot: release android
Test-bot: skip
2025-07-07 17:34:08 +02:00

45 lines
1.3 KiB
Bash
Executable file

#!/usr/bin/env bash
# Keyman is copyright (C) SIL Global. MIT License.
#
# TC build script for Keyman Android/Test
# shellcheck disable=SC2164
# shellcheck disable=SC1091
## START STANDARD BUILD SCRIPT INCLUDE
# adjust relative paths as necessary
THIS_SCRIPT="$(readlink -f "${BASH_SOURCE[0]}")"
. "${THIS_SCRIPT%/*}/../../../resources/build/builder.inc.sh"
## END STANDARD BUILD SCRIPT INCLUDE
# shellcheck disable=SC2154
. "${KEYMAN_ROOT}/resources/shellHelperFunctions.sh"
. "${KEYMAN_ROOT}/resources/teamcity/android/android-actions.inc.sh"
################################ Main script ################################
builder_describe \
"Build and run tests for Keyman for Android" \
"--fv additionally build and Test FV Android" \
"all run all actions" \
"clean clean artifact directories" \
"build configure, build and test Keyman for Android"
builder_parse "$@"
cd "${KEYMAN_ROOT}/android"
if builder_has_option --fv; then
TARGETS="engine,app,fv"
else
# shellcheck disable=SC2034
TARGETS="engine,app"
fi
if builder_has_action all; then
android_clean_action
android_build_action "${TARGETS}" --debug
else
builder_run_action clean android_clean_action
builder_run_action build android_build_action "${TARGETS}" --debug
fi