mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
convert examples/makebuildserver.config.py to Vagrantfile.yaml
Also, tests/androguard_test.py was removed long ago
This commit is contained in:
parent
abf535aabe
commit
d6008cdb2a
4 changed files with 21 additions and 17 deletions
11
buildserver/Vagrantfile
vendored
11
buildserver/Vagrantfile
vendored
|
@ -1,5 +1,6 @@
|
|||
require 'yaml'
|
||||
require 'pathname'
|
||||
require 'fileutils'
|
||||
|
||||
configfile = {
|
||||
'boot_timeout' => 600,
|
||||
|
@ -14,9 +15,15 @@ configfile = {
|
|||
srvpath = Pathname.new(File.dirname(__FILE__)).realpath
|
||||
configpath = File.join(srvpath, "/Vagrantfile.yaml")
|
||||
if File.exists? configpath
|
||||
YAML.load_file(configpath).each do |k,v|
|
||||
configfile[k] = v
|
||||
c = YAML.load_file(configpath)
|
||||
if c and not c.empty?
|
||||
c.each do |k,v|
|
||||
configfile[k] = v
|
||||
end
|
||||
end
|
||||
else
|
||||
puts "Copying example file to #{configpath}"
|
||||
FileUtils.cp('../examples/Vagrantfile.yaml', configpath)
|
||||
end
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue