From 9d6266c5a67fdf3198fcbde27daf8da1c0791284 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Tue, 4 Jun 2013 22:39:46 +0100 Subject: [PATCH] Install build tools 17.0.0 on build server Only the cached version is implemented, I haven't found the right 'android update sdk' command yet. --- .../cookbooks/android-sdk/recipes/default.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/buildserver/cookbooks/android-sdk/recipes/default.rb b/buildserver/cookbooks/android-sdk/recipes/default.rb index f01459d7..78f5eccc 100644 --- a/buildserver/cookbooks/android-sdk/recipes/default.rb +++ b/buildserver/cookbooks/android-sdk/recipes/default.rb @@ -28,6 +28,22 @@ execute "add-android-sdk-path" do not_if "grep #{sdk_loc} /home/#{user}/.bashrc" end +script "add_build_tools" do + interpreter "bash" + user user + cwd "/tmp" + code " + if [ -f /vagrant/cache/build-tools/17.0.0.tar.gz ] ; then + echo Installing from cache + tar -C #{sdk_loc}/build-tools -z -x -f /vagrant/cache/build-tools/17.0.0.tar.gz + else + echo Need the right install filter for this + fi + " + not_if "test -d #{sdk_loc}/build-tools/17.0.0" +end + + %w{android-3 android-4 android-7 android-8 android-10 android-11 android-12 android-13 android-14 android-15 android-16 android-17 extra-android-support}.each do |sdk| -- 2.30.2