fix: enable command tracing for build commands

This commit is contained in:
Akash Yadav
2025-01-17 01:32:30 +05:30
parent 448b881b8b
commit 6a2f35cfe3

View File

@@ -89,23 +89,23 @@ build-apk:
before_script:
- mkdir -p $(dirname "$SB_GAPI_KEY_FILE") && echo "$SB_GAPI_KEY" > "$SB_GAPI_KEY_FILE"
- |
bash -c "\
bash -x -c "\
# See Dockerfile
source /opt/env_docker.sh
# Set ANDROID_NDK
echo "export ANDROID_NDK=$ANDROID_HOME/ndk/27.2.12479018" >> scripts/env_local.sh
export ANDROID_NDK=$ANDROID_HOME/ndk/27.2.12479018
[ -d "$ANDROID_NDK" ] || { echo "ANDROID_NDK($ANDROID_NDK) does not exist!"; exit 1; };
# Get sources
./scripts/get_sources.sh
bash -x ./scripts/get_sources.sh
# Update environment variables
source scripts/env_local.sh
# Patch source
./scripts/prebuild.sh "$VERSION_NAME" "$VERSION_CODE"
bash -x ./scripts/prebuild.sh "$VERSION_NAME" "$VERSION_CODE"
"
script:
- |
@@ -113,7 +113,7 @@ build-apk:
source scripts/env_local.sh
# Build
bash scripts/build.sh
bash -x bash scripts/build.sh
artifacts:
untracked: false
when: on_success