Merge "Adding Vagrantfile for local testing"

This commit is contained in:
Jenkins 2016-09-07 07:09:58 +00:00 committed by Gerrit Code Review
commit 7acca4c0df
2 changed files with 29 additions and 0 deletions

5
.gitignore vendored
View File

@ -29,6 +29,7 @@ doc/build/
*.log *.log
*.sql *.sql
*.sqlite *.sqlite
logs/*
# OS generated files # # OS generated files #
###################### ######################
@ -61,3 +62,7 @@ releasenotes/build
# Test temp files # Test temp files
tests/plugins tests/plugins
# Vagrant artifacts
.vagrant

24
Vagrantfile vendored Normal file
View File

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