Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: Vagrantfile

Issue 29342955: Issue 3985 - Unified test runner for sitescripts (Closed)
Patch Set: Created May 23, 2016, 9:50 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # -*- mode: ruby -*-
2 # vi: set ft=ruby :
3
4 # Vagrant configuration for testing the complicated cases.
5
6 Vagrant.configure(2) do |config|
7 config.vm.box = "debian/contrib-jessie64"
8 config.vm.provision "shell", inline: <<-end
mathias 2016/05/23 22:25:32 If the script wouldn't be inline one could invoke
9 set -e
mathias 2016/05/23 22:25:32 Please make sure that multiple invocations of "vag
10 apt-get update
11 apt-get install -y python-dev python-virtualenv mercurial python-tox swig li bssl-dev
12
13 sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password pas sword 123'
mathias 2016/05/23 22:25:32 Please always use "changeme" globally as default t
14 sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_aga in password 123'
15 apt-get install -y mysql-server libmysqlclient-dev
16
17 mysql -uroot -p123 -e "create user 'test_user'@'localhost' identified by 'te st_password'"
mathias 2016/05/23 22:25:32 Same here.. ;-)
18 mysql -uroot -p123 -e "create database test_db"
19 mysql -uroot -p123 -e "grant all on test_db.* to 'test_user'@'localhost'"
20 mysql -utest_user -ptest_password test_db -e "source /vagrant/sitescripts/fi lterhits/schema.sql"
21 end
22 end
OLDNEW

Powered by Google App Engine
This is Rietveld