Skip to content

Commit

Permalink
Added vagrantfile to run the application
Browse files Browse the repository at this point in the history
  • Loading branch information
sriki77 authored and Srikanth committed Aug 11, 2013
1 parent ce78b09 commit 8f1efa1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

$script = <<BOX_INIT
apt-get update
apt-get install -y cmake make libboost-all-dev libgtest-dev google-mock lcov
# build gtest
cd /usr/src/gtest
sudo cmake .
sudo make
sudo mv libg* /usr/lib/
BOX_INIT

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.hostname = "cppenvcheck"
config.vm.provision :shell, :inline=>$script
config.vm.synced_folder ".", "/vagrant", :extra => "dmode=777,fmode=777"
end

0 comments on commit 8f1efa1

Please sign in to comment.