diff --git a/.travis.yml b/.travis.yml index 575b184..07a0b3d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,4 @@ language: java -env: - - COMPONENTS="tools,platform-tools,build-tools-21.1.1,android-21,extra-android-m2repository,extra-android-support,extra-google-m2repository" ANDROID_HOME="./android-sdk-linux" before_install: - bash android_install.sh $COMPONENTS diff --git a/android_install.sh b/android_install.sh index a39adda..d4fe15c 100644 --- a/android_install.sh +++ b/android_install.sh @@ -1,14 +1,23 @@ #!/bin/bash - +COMPONENTS=" +tools +platform-tools +build-tools-21.1.1 +android-21 +extra-android-m2repository +extra-android-support +extra-google-m2repository" + wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz tar xf android-sdk_r23.0.2-linux.tgz cd android-sdk-linux/ export ANDROID_HOME=`pwd` +ls android-sdk-linux/ -COMPONENT_ARRAY=$(echo $COMPONENTS | tr "," "\n") -for COMP in $COMPONENT_ARRAY +for COMP in ${COMPONENTS} do - echo "yes" | tools/android update sdk -u -a -t $COMP + echo "yes" | tools/android update sdk -u -a -t ${COMP} done cd -