Skip to content

Commit

Permalink
Added vagrant config for testing clean builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
zerebubuth committed Jan 21, 2015
1 parent 455b86d commit 4e38d1f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -30,3 +30,4 @@ test/.deps/
include/config.h.in
include/config.h
include/stamp-h1
.vagrant/
17 changes: 17 additions & 0 deletions Vagrantfile
@@ -0,0 +1,17 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = 'ubuntu/trusty64'
# config.vm.box_url = "http://domain.com/path/to/above.box"

config.vm.provision 'shell', path: 'scripts/provision.sh'

config.vm.provider 'virtualbox' do |vb|
vb.customize ['modifyvm', :id, '--memory', '2048']
end
end
12 changes: 12 additions & 0 deletions scripts/provision.sh
@@ -0,0 +1,12 @@
#!/bin/bash

apt-get install -y git build-essential automake autoconf;

apt-get install -y libxml2-dev libpqxx3-dev libfcgi-dev \
libboost-dev libboost-regex-dev libboost-program-options-dev \
libboost-date-time-dev libboost-system-dev libmemcached-dev;

# following stuff is for testing only
apt-get install -y postgresql postgresql-contrib postgis \
ruby-libxml ruby-pg
sudo -u postgres createuser -s vagrant

0 comments on commit 4e38d1f

Please sign in to comment.