From acac122e9ad15da578683cbadbea35018387b4ca Mon Sep 17 00:00:00 2001 From: Travis Truman Date: Sat, 5 Mar 2016 15:42:37 -0500 Subject: [PATCH] Adding Vagrantfile for local developer testing This Vagrantfile attempts to replicate the gate check testing to the extent possible to allow developers to run all tests locally in a Vagrant environment prior to submitting changes for review. Memory and CPU config is adjusted as Galera cannot install/run successfully on the default config. Change-Id: I1289d576934244edf0176ec4e25a11fc75738c0f --- .gitignore | 3 +++ Vagrantfile | 13 +++++++++++++ run_tests.sh | 0 3 files changed, 16 insertions(+) create mode 100644 Vagrantfile mode change 100644 => 100755 run_tests.sh diff --git a/.gitignore b/.gitignore index 9ffa62a..63ae8eb 100644 --- a/.gitignore +++ b/.gitignore @@ -60,3 +60,6 @@ releasenotes/build # Test temp files tests/plugins + +# Vagrant testing artifacts +.vagrant diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..d09fc56 --- /dev/null +++ b/Vagrantfile @@ -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 \ No newline at end of file diff --git a/run_tests.sh b/run_tests.sh old mode 100644 new mode 100755