allow overriding vagrant box in test Vagrantfile via ENV variable

This commit is contained in:
Paulo Bittencourt 2014-03-17 21:13:41 -04:00
parent 552a791ef4
commit f22cccb741
1 changed files with 7 additions and 2 deletions

9
test/Vagrantfile vendored
View File

@ -6,8 +6,13 @@ if Gem::Version.new(::Vagrant::VERSION) < Gem::Version.new('1.5')
end end
Vagrant.configure('2') do |config| Vagrant.configure('2') do |config|
config.vm.box = 'precise64'
config.vm.box_url = 'http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-vagrant-amd64-disk1.box' if ENV.key? 'VAGRANT_BOX'
config.vm.box = ENV['VAGRANT_BOX']
else
config.vm.box = 'precise64'
config.vm.box_url = 'http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-vagrant-amd64-disk1.box'
end
config.hostmanager.enabled = true config.hostmanager.enabled = true
config.hostmanager.manage_host = true config.hostmanager.manage_host = true