Add Vagrantfile for local role testing
Running `vagrant up` will now execute the same steps run by the role's gating process Change-Id: I22a21d1f495ac2fc5a7b2b864285253af2730723
This commit is contained in:
parent
75bd092b9e
commit
22f77167e8
|
@ -64,3 +64,6 @@ tests/plugins
|
|||
|
||||
# Files created by releasenotes build
|
||||
releasenotes/build
|
||||
|
||||
# Vagrant testing artifacts
|
||||
.vagrant
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
Vagrant.configure(2) do |config|
|
||||
config.vm.box = "ubuntu/trusty64"
|
||||
config.vm.provider "virtualbox" do |v|
|
||||
v.memory = 2048
|
||||
v.cpus = 2
|
||||
end
|
||||
config.vm.provision "shell", inline: <<-SHELL
|
||||
sudo su -
|
||||
cd /vagrant
|
||||
apt-get update
|
||||
./run_tests.sh
|
||||
SHELL
|
||||
end
|
Loading…
Reference in New Issue