From 49e508759502f7f7401d315ebd91e7fa289415b1 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Fri, 5 Dec 2014 01:16:14 -0500 Subject: [PATCH] Have to use Travis to set ANDROID_HOME --- .travis.yml | 2 ++ android_install.sh | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 07a0b3d..aa9b402 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,6 @@ language: java +env: + - ANDROID_HOME="./android-sdk-linux" before_install: - bash android_install.sh $COMPONENTS diff --git a/android_install.sh b/android_install.sh index 028fb73..85b1a9d 100644 --- a/android_install.sh +++ b/android_install.sh @@ -11,14 +11,10 @@ extra-google-m2repository" wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz tar -zxvf android-sdk_r23.0.2-linux.tgz -cd android-sdk-linux/ -export ANDROID_HOME=`pwd` -ls -ls * for COMP in ${COMPONENTS} do - echo "yes" | tools/android update sdk -u -a -t ${COMP} + echo "yes" | android-sdk-linux/tools/android update sdk -u -a -t ${COMP} done cd -