Update Vagrantfile for Multi-OS testing

Change-Id: Ic9dc3e3755f36db63298de3348fd6ff3c3a60a91
This commit is contained in:
Jesse Pretorius 2016-08-09 14:15:31 -05:00 committed by Jesse Pretorius (odyssey4me)
parent 4d154ae1ad
commit 2c7730152d

55
Vagrantfile vendored
View File

@ -1,13 +1,46 @@
Vagrant.configure(2) do |config| Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |v| config.vm.define "ubuntu1404" do |trusty|
v.memory = 2048 trusty.vm.box = "ubuntu/trusty64"
v.cpus = 2
trusty.vm.provider "virtualbox" do |v|
v.memory = 2048
v.cpus = 2
end
trusty.vm.provision "shell", inline: <<-SHELL
sudo su -
cd /vagrant
apt-get update
./run_tests.sh
SHELL
end end
config.vm.provision "shell", inline: <<-SHELL
sudo su - config.vm.define "ubuntu1604" do |xenial|
cd /vagrant xenial.vm.box = "ubuntu/xenial64"
apt-get update xenial.vm.provider "virtualbox" do |v|
./run_tests.sh v.memory = 2048
SHELL v.cpus = 2
end end
xenial.vm.provision "shell", inline: <<-SHELL
sudo su -
cd /vagrant
apt-get update
./run_tests.sh
SHELL
end
config.vm.define "centos7" do |centos7|
centos7.vm.box = "centos/7"
centos7.vm.provider "virtualbox" do |v|
v.memory = 2048
v.cpus = 2
end
centos7.vm.provision "shell", inline: <<-SHELL
sudo su -
cd /home/vagrant/sync
./run_tests.sh
SHELL
end
end