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:
Travis Truman 2016-05-11 13:26:11 -04:00
parent 75bd092b9e
commit 22f77167e8
2 changed files with 16 additions and 0 deletions

3
.gitignore vendored
View File

@ -64,3 +64,6 @@ tests/plugins
# Files created by releasenotes build
releasenotes/build
# Vagrant testing artifacts
.vagrant

13
Vagrantfile vendored Normal file
View File

@ -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