android_install takes care of everything

This commit is contained in:
Bradlee Speice 2014-12-05 01:09:39 -05:00
parent 8aa296dc16
commit 20d54645f8
2 changed files with 12 additions and 5 deletions

View File

@ -1,6 +1,4 @@
language: java 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: before_install:
- bash android_install.sh $COMPONENTS - bash android_install.sh $COMPONENTS

View File

@ -1,14 +1,23 @@
#!/bin/bash - #!/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 wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz
tar xf android-sdk_r23.0.2-linux.tgz tar xf android-sdk_r23.0.2-linux.tgz
cd android-sdk-linux/ cd android-sdk-linux/
export ANDROID_HOME=`pwd` export ANDROID_HOME=`pwd`
ls android-sdk-linux/
COMPONENT_ARRAY=$(echo $COMPONENTS | tr "," "\n") for COMP in ${COMPONENTS}
for COMP in $COMPONENT_ARRAY
do do
echo "yes" | tools/android update sdk -u -a -t $COMP echo "yes" | tools/android update sdk -u -a -t ${COMP}
done done
cd - cd -