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
This commit is contained in:
parent
fb5488203a
commit
acac122e9a
|
@ -60,3 +60,6 @@ releasenotes/build
|
|||
|
||||
# Test temp files
|
||||
tests/plugins
|
||||
|
||||
# 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