Request android default instead of google_apis

It seems some armv7a image disappeared
This commit is contained in:
Alexandre Lissy 2020-06-16 23:44:00 +02:00
parent 0fd28cfbdf
commit a47c9a2b8c
3 changed files with 10 additions and 4 deletions

View File

@ -7,7 +7,7 @@ build:
artifact_url: ${system.android_cache.armeabi_v7a.android_24.url} artifact_url: ${system.android_cache.armeabi_v7a.android_24.url}
artifact_namespace: ${system.android_cache.armeabi_v7a.android_24.namespace} artifact_namespace: ${system.android_cache.armeabi_v7a.android_24.namespace}
scripts: scripts:
build: "taskcluster/android_cache-build.sh armeabi-v7a android-24" build: "taskcluster/android_cache-build.sh armeabi-v7a android-24 default"
package: "taskcluster/android_cache-package.sh" package: "taskcluster/android_cache-package.sh"
metadata: metadata:
name: "Builds Android cache armeabi-v7a / android-24" name: "Builds Android cache armeabi-v7a / android-24"

View File

@ -6,6 +6,7 @@ source $(dirname "$0")/tc-tests-utils.sh
arm_flavor=$1 arm_flavor=$1
api_level=$2 api_level=$2
api_kind=$3
export ANDROID_HOME=${ANDROID_SDK_HOME} export ANDROID_HOME=${ANDROID_SDK_HOME}
@ -17,5 +18,5 @@ android_install_sdk
android_install_sdk_platform "android-27" android_install_sdk_platform "android-27"
if [ "${arm_flavor}" != "sdk" ]; then if [ "${arm_flavor}" != "sdk" ]; then
android_setup_emulator "${arm_flavor}" "${api_level}" android_setup_emulator "${arm_flavor}" "${api_level}" "${api_kind}"
fi; fi;

View File

@ -112,6 +112,11 @@ android_setup_emulator()
local _flavor=$1 local _flavor=$1
local _api_level=${2:-android-25} local _api_level=${2:-android-25}
local _api_kind=${3:-google_apis}
if [ -z "${_api_kind}" ]; then
_api_kind="google_apis"
fi
export PATH=${ANDROID_SDK_HOME}/tools/bin/:${ANDROID_SDK_HOME}/platform-tools/:$PATH export PATH=${ANDROID_SDK_HOME}/tools/bin/:${ANDROID_SDK_HOME}/platform-tools/:$PATH
export DS_BINARY_PREFIX="adb shell LD_LIBRARY_PATH=${ANDROID_TMP_DIR}/ds/ ${ANDROID_TMP_DIR}/ds/" export DS_BINARY_PREFIX="adb shell LD_LIBRARY_PATH=${ANDROID_TMP_DIR}/ds/ ${ANDROID_TMP_DIR}/ds/"
@ -123,11 +128,11 @@ android_setup_emulator()
android_install_sdk_platform "${_api_level}" android_install_sdk_platform "${_api_level}"
# Same, yes in case of license # Same, yes in case of license
yes | sdkmanager --install "system-images;${_api_level};google_apis;${_flavor}" yes | sdkmanager --install "system-images;${_api_level};${_api_kind};${_flavor}"
android_sdk_accept_licenses android_sdk_accept_licenses
avdmanager create avd --name "${_flavor}-ds-pixel-${_api_level}" --device 17 --package "system-images;${_api_level};google_apis;${_flavor}" avdmanager create avd --name "${_flavor}-ds-pixel-${_api_level}" --device 17 --package "system-images;${_api_level};${_api_kind};${_flavor}"
} }
android_start_emulator() android_start_emulator()