buildserver: move apt setup to a shell script

This makes it so there is only a single `apt-get install` command run,
instead of one command per-package like with the chef script.  It also adds
`apt-get upgrade` to make sure that the base box is fully up-to-date.
This commit is contained in:
Hans-Christoph Steiner 2016-07-04 13:52:19 +02:00
parent 2374b12a77
commit aafad6b909
4 changed files with 93 additions and 124 deletions

View file

@ -377,16 +377,12 @@ vagrantfile += """
config.vm.provision "shell", path: "setup-env-vars",
args: ["/home/vagrant/android-sdk"]
config.vm.provision "shell", path: "provision-apt-get-install",
args: ["{0}"]
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
chef.log_level = :debug
chef.json = {
:settings => {
:debian_mirror => "%s",
:user => "vagrant"
}
}
chef.add_recipe "fdroidbuild-general"
chef.add_recipe "kivy"
end
@ -404,7 +400,7 @@ vagrantfile += """
end
end
""" % config['debian_mirror']
""".format(config['debian_mirror'])
# Check against the existing Vagrantfile, and if they differ, we need to