openstack-ansible-os_neutron/Vagrantfile
Andy McCrae 00c1bb4ea3 Remove Trusty support from os_neutron role
Change-Id: I68190e4d5bbb99ceaa139229fa39b7499644df6e
Implements: blueprint trusty-removal
2016-12-15 13:20:29 +00:00

32 lines
811 B
Ruby

# Runs various tests defined in the tox.ini
#
# To run everything but functional tests:
# vagrant up --provision-with bootstrap
#
# To run docs, linters and functional:
# vagrant up
#
# To run docs, linters and func_ovs tests:
# TOX_ENV=func_ovs vagrant up
#
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.provider "virtualbox" do |v|
v.memory = 2048
v.cpus = 2
end
# Run docs, linters, etc, but no functional tests
config.vm.provision "bootstrap", type: "shell", inline: <<-SHELL
sudo su -
cd /vagrant
apt-get update
FUNCTIONAL_TEST=false ./run_tests.sh
SHELL
# Run functional tests
config.vm.provision "func_test", type: "shell", inline: <<-SHELL
sudo su -
cd /vagrant
tox -e #{ENV['TOX_ENV'] || "functional"}
SHELL
end