eb0bb51faf
This tox environment will be run with check experimental for now. Ultimately it should become part of the gate testing for the role. Change-Id: I410f029816590dde819a6c97bde5f159f7a791d1 Implements: blueprint support-openvswitch
31 lines
810 B
Ruby
31 lines
810 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/trusty64"
|
|
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 |