 Issue 29342955:
  Issue 3985 - Unified test runner for sitescripts  (Closed)
    
  
    Issue 29342955:
  Issue 3985 - Unified test runner for sitescripts  (Closed) 
  | Index: Vagrantfile | 
| =================================================================== | 
| new file mode 100644 | 
| --- /dev/null | 
| +++ b/Vagrantfile | 
| @@ -0,0 +1,22 @@ | 
| +# -*- mode: ruby -*- | 
| +# vi: set ft=ruby : | 
| + | 
| +# Vagrant configuration for testing the complicated cases. | 
| + | 
| +Vagrant.configure(2) do |config| | 
| + config.vm.box = "debian/contrib-jessie64" | 
| + config.vm.provision "shell", inline: <<-end | 
| 
mathias
2016/05/23 22:25:32
If the script wouldn't be inline one could invoke
 | 
| + set -e | 
| 
mathias
2016/05/23 22:25:32
Please make sure that multiple invocations of "vag
 | 
| + apt-get update | 
| + apt-get install -y python-dev python-virtualenv mercurial python-tox swig libssl-dev | 
| + | 
| + sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password 123' | 
| 
mathias
2016/05/23 22:25:32
Please always use "changeme" globally as default t
 | 
| + sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password 123' | 
| + apt-get install -y mysql-server libmysqlclient-dev | 
| + | 
| + mysql -uroot -p123 -e "create user 'test_user'@'localhost' identified by 'test_password'" | 
| 
mathias
2016/05/23 22:25:32
Same here.. ;-)
 | 
| + mysql -uroot -p123 -e "create database test_db" | 
| + mysql -uroot -p123 -e "grant all on test_db.* to 'test_user'@'localhost'" | 
| + mysql -utest_user -ptest_password test_db -e "source /vagrant/sitescripts/filterhits/schema.sql" | 
| + end | 
| +end |