More Travis deploy script fixes (#14549)

* More restricted versioning on iOS

* Escape the key base64 and don't echo it back on travis

* Have match not print back the cert url
This commit is contained in:
xster
2018-02-09 18:29:14 -08:00
committed by GitHub
parent 97e779328d
commit 248919fa9f
2 changed files with 11 additions and 4 deletions

View File

@@ -25,9 +25,11 @@ if [ -n "$TRAVIS" ]; then
export ANDROID_HOME=`pwd`/android-sdk
export PATH=`pwd`/android-sdk/tools/bin:$PATH
mkdir -p /home/travis/.android # silence sdkmanager warning
set +x # Travis's env variable hiding is a bit wonky. Don't echo back this line.
if [ -n "$ANDROID_GALLERY_UPLOAD_KEY" ]; then
echo $ANDROID_GALLERY_UPLOAD_KEY | base64 --decode > /home/travis/.android/debug.keystore
echo "$ANDROID_GALLERY_UPLOAD_KEY" | base64 --decode > /home/travis/.android/debug.keystore
fi
set -x
echo 'count=0' > /home/travis/.android/repositories.cfg # silence sdkmanager warning
# suppressing output of sdkmanager to keep log under 4MB (travis limit)
echo y | sdkmanager "tools" >/dev/null