Chetan Gaonker | b926c64 | 2016-05-10 08:19:03 -0700 | [diff] [blame] | 1 | # -*- mode: ruby -*- |
| 2 | # vi: set ft=ruby : |
| 3 | |
| 4 | Vagrant.configure(2) do |config| |
| 5 | |
| 6 | if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil |
| 7 | config.vm.synced_folder ".", "/cord-tester", mount_options: ["dmode=700,fmode=600"] |
| 8 | else |
| 9 | config.vm.synced_folder ".", "/cord-tester" |
| 10 | end |
| 11 | |
| 12 | config.vm.define "cordtest" do |d| |
| 13 | d.vm.box = "ubuntu/trusty64" |
| 14 | d.vm.hostname = "cordtest" |
| 15 | d.vm.network "private_network", ip: "10.100.198.202" |
| 16 | d.vm.provision :shell, path: "src/test/setup/prerequisites.sh" |
| 17 | d.vm.provider "virtualbox" do |v| |
| 18 | v.memory = 3000 |
| 19 | end |
| 20 | end |
| 21 | |
Chetan Gaonker | b926c64 | 2016-05-10 08:19:03 -0700 | [diff] [blame] | 22 | if Vagrant.has_plugin?("vagrant-cachier") |
| 23 | config.cache.scope = :box |
| 24 | end |
| 25 | |
| 26 | end |