chiark / gitweb /
buildserver: allow gradle to install new components
authorHans-Christoph Steiner <hans@eds.org>
Wed, 22 Mar 2017 09:59:44 +0000 (10:59 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Mon, 3 Apr 2017 18:18:54 +0000 (20:18 +0200)
Google is making gradle automatically download Android SDK components that
are needed by the build, but not already present.  We need to support that
since it would be a lot of work to fight it.  Plus, since each build starts
from the fresh snapshot, it should not be such a big deal to let each
build install stuff during the process.

closes #268

buildserver/provision-android-sdk

index e5a4202a25afff10c26479da2b83c36df8241820..54f89cb652e7452b66109a973127d59a122f2ee4 100644 (file)
@@ -82,6 +82,8 @@ echo y | $ANDROID_HOME/tools/bin/sdkmanager "extras;m2repository;com;android;sup
 echo y | $ANDROID_HOME/tools/bin/sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2"
 
 chmod -R a+rX $ANDROID_HOME/
+chgrp vagrant $ANDROID_HOME
+chmod g+w $ANDROID_HOME
 find $ANDROID_HOME/ -type f -executable -print0 | xargs -0 chmod a+x
 
 # allow gradle to install newer build-tools versions