chiark / gitweb /
gitlab-ci: install all android packages at once
authorHans-Christoph Steiner <hans@eds.org>
Tue, 1 Sep 2015 17:57:40 +0000 (19:57 +0200)
committerHans-Christoph Steiner <hans@eds.org>
Tue, 1 Sep 2015 17:57:40 +0000 (19:57 +0200)
the `android` utility is pretty stupid, it doesn't really cache the
package index info.  So each time it is run, it tries to fetch the
indexes from the network.  This combines all android package installs
to a single command to make things run quicker.

.gitlab-ci.yml

index 309695bd54c15d504c651ca38ef112595af70490..298bf5048585c68b0f1b6cc46b0a07a6da62da53 100644 (file)
@@ -16,9 +16,7 @@ before_script:
   - export ANDROID_HOME=$PWD/android-sdk
   - export PATH="$ANDROID_HOME/tools:$PATH"
   - 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 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 platform-tools,tools,build-tools-23.0.0
 
 test:
   script: