2021-07-27 12:12:19 -04:00
|
|
|
# This Vagrantfile can be used to develop Vagrant. Note that VirtualBox
|
|
|
|
|
# doesn't run in VirtualBox so you can't actually _run_ Vagrant within
|
|
|
|
|
# the VM created by this Vagrantfile, but you can use it to develop the
|
|
|
|
|
# Ruby, run unit tests, etc.
|
2014-08-08 15:30:06 -04:00
|
|
|
|
|
|
|
|
Vagrant.configure("2") do |config|
|
2022-07-28 15:12:50 -04:00
|
|
|
config.vm.box = "hashicorp/bionic64"
|
|
|
|
|
config.vm.hostname = "vagrant"
|
|
|
|
|
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
|
2021-06-02 17:38:22 -04:00
|
|
|
|
2022-07-28 15:12:50 -04:00
|
|
|
["vmware_desktop", "virtualbox", "hyperv"].each do |provider|
|
|
|
|
|
config.vm.provider provider do |v, override|
|
|
|
|
|
v.memory = "2048"
|
|
|
|
|
end
|
2021-05-20 17:28:14 -04:00
|
|
|
end
|
|
|
|
|
|
2022-07-28 15:12:50 -04:00
|
|
|
# We split apart `install_rvm` from `setup_tests` because rvm says to
|
|
|
|
|
# logout and log back in just after installing RVM.
|
|
|
|
|
# https://github.com/rvm/ubuntu_rvm#3-reboot
|
|
|
|
|
config.vm.provision "shell", path: "scripts/install_rvm"
|
2021-06-02 17:38:22 -04:00
|
|
|
|
2022-07-28 15:12:50 -04:00
|
|
|
config.vm.provision "shell", path: "scripts/setup_tests"
|
2021-05-20 17:26:30 -04:00
|
|
|
|
2022-07-28 15:12:50 -04:00
|
|
|
config.push.define "www", strategy: "local-exec" do |push|
|
|
|
|
|
push.script = "scripts/website_push_www.sh"
|
2021-05-20 15:11:16 -04:00
|
|
|
end
|
|
|
|
|
|
2022-07-28 15:12:50 -04:00
|
|
|
config.push.define "docs", strategy: "local-exec" do |push|
|
|
|
|
|
push.script = "scripts/website_push_docs.sh"
|
2021-05-12 15:57:04 -04:00
|
|
|
end
|
2014-08-08 15:30:06 -04:00
|
|
|
end
|