From 9596eb5af04d25d8ac36c28eedadf8175a0fa122 Mon Sep 17 00:00:00 2001 From: Travis Truman Date: Tue, 6 Sep 2016 14:29:53 -0400 Subject: [PATCH] Adding Vagrantfile for local testing Running `vagrant up ubuntu1404` brings up a Trusty box and runs all of the gate checks Change-Id: I47525461bc1e9a2145e754d1243ee1cb090e906c --- .gitignore | 5 +++++ Vagrantfile | 24 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 Vagrantfile diff --git a/.gitignore b/.gitignore index 036f6839..8f9c766a 100644 --- a/.gitignore +++ b/.gitignore @@ -29,6 +29,7 @@ doc/build/ *.log *.sql *.sqlite +logs/* # OS generated files # ###################### @@ -61,3 +62,7 @@ releasenotes/build # Test temp files tests/plugins + +# Vagrant artifacts +.vagrant + diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 00000000..d8454eef --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,24 @@ +Vagrant.configure(2) do |config| + config.vm.provider "virtualbox" do |v| + v.memory = 2048 + v.cpus = 2 + end + + config.vm.define "ubuntu1404" do |trusty| + trusty.vm.box = "ubuntu/trusty64" + trusty.vm.provision "shell", inline: <<-SHELL + sudo su - + cd /vagrant + ./run_tests.sh + SHELL + end + + config.vm.define "ubuntu1604" do |xenial| + xenial.vm.box = "ubuntu/xenial64" + xenial.vm.provision "shell", inline: <<-SHELL + sudo su - + cd /vagrant + ./run_tests.sh + SHELL + end +end \ No newline at end of file