chiark / gitweb /
buildserver: allow gradle to install newer build-tools versions
authorHans-Christoph Steiner <hans@eds.org>
Tue, 14 Mar 2017 11:39:03 +0000 (12:39 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Tue, 14 Mar 2017 11:39:03 +0000 (12:39 +0100)
gradle will now automatically download and install missing bits of the
Android SDK.  While we prefer to have the SDK packages fully verified, we
should allow this behavior on the buildserver to ensure that builds work
even when the buildserver can't be updated.  Since each build starts from a
clean snapshot, this auto-installed build-tools will only be used for the
single build, so it won't affect other apps.

buildserver/provision-android-sdk

index 00456fbec9c72fea7ab35043639d8124832b8684..56f72e068f8ee4817b80df7903ec291a6e56ff55 100644 (file)
@@ -81,3 +81,7 @@ echo y | $ANDROID_HOME/tools/bin/sdkmanager "extras;m2repository;com;android;sup
 
 chmod -R a+rX $ANDROID_HOME/
 find $ANDROID_HOME/ -type f -executable -print0 | xargs -0 chmod a+x
+
+# allow gradle to install newer build-tools versions
+chgrp vagrant $ANDROID_HOME/build-tools
+chmod g+w $ANDROID_HOME/build-tools