Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemek Vysoký <premek.vysoky@microsoft.com>2020-10-21 17:29:45 +0300
committerGitHub <noreply@github.com>2020-10-21 17:29:45 +0300
commit641699d3c62a070a69389c9b240b63981da78a32 (patch)
tree50c7df4cfc65fcaa4caa454de4bf6f56f0ac42b0 /eng/install-native-dependencies.sh
parente19294624d34f5b2e4d58176955e38982c59e235 (diff)
Add test leg to the PR build to run libraries tests on Android emulators (#37585)
Diffstat (limited to 'eng/install-native-dependencies.sh')
-rwxr-xr-xeng/install-native-dependencies.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/eng/install-native-dependencies.sh b/eng/install-native-dependencies.sh
index 57896e820ae..927c4245cde 100755
--- a/eng/install-native-dependencies.sh
+++ b/eng/install-native-dependencies.sh
@@ -35,8 +35,19 @@ elif [ "$1" = "OSX" ] || [ "$1" = "tvOS" ] || [ "$1" = "iOS" ]; then
if [ "$?" != "0" ]; then
exit 1;
fi
+elif [ "$1" = "Android" ]; then
+ if [ -z "${ANDROID_OPENSSL_AAR}" ]; then
+ echo "The ANDROID_OPENSSL_AAR variable must be set!"
+ exit 1;
+ fi
+ if [ -d "${ANDROID_OPENSSL_AAR}" ]; then
+ exit 0;
+ fi
+ OPENSSL_VER=1.1.1g-alpha-1
+ curl https://maven.google.com/com/android/ndk/thirdparty/openssl/${OPENSSL_VER}/openssl-${OPENSSL_VER}.aar -L --output /tmp/openssl.zip
+ unzip /tmp/openssl.zip -d "${ANDROID_OPENSSL_AAR}" && rm -rf /tmp/openssl.zip
else
- echo "Must pass \"Linux\", \"tvOS\", \"iOS\" or \"OSX\" as first argument."
+ echo "Must pass \"Linux\", \"Android\", \"tvOS\", \"iOS\" or \"OSX\" as first argument."
exit 1
fi