Install all android sdk packages at once

Spotted by Hans at fdroidserver. The 'update sdk' tool will download the
package index at each run, so installing one package at a time will be rather
inefficient.
This commit is contained in:
Daniel Martí 2015-09-01 11:31:21 -07:00
parent b14faf5352
commit f9181b85f9

View File

@ -11,11 +11,7 @@ before_script:
- export ANDROID_HOME=$PWD/android-sdk - export ANDROID_HOME=$PWD/android-sdk
- export PATH="$ANDROID_HOME/tools:$PATH" - export PATH="$ANDROID_HOME/tools:$PATH"
- echo " == Installing Android SDK components" - echo " == Installing Android SDK components"
- echo y | android -s update sdk --no-ui -a -t platform-tools - echo y | android -s update sdk --no-ui -a -t platform-tools,tools,build-tools-23.0.0,android-22,extra-android-m2repository
- echo y | android -s update sdk --no-ui -a -t tools
- echo y | android -s update sdk --no-ui -a -t build-tools-23.0.0
- echo y | android -s update sdk --no-ui -a -t android-22
- echo y | android -s update sdk --no-ui -a -t extra-android-m2repository
- echo " == Installing Gradle" - echo " == Installing Gradle"
- wget -q -O gradle.zip https://services.gradle.org/distributions/gradle-2.4-bin.zip - wget -q -O gradle.zip https://services.gradle.org/distributions/gradle-2.4-bin.zip
- unzip -q gradle.zip - unzip -q gradle.zip