-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
58 lines (50 loc) · 1.94 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.require_version ">= 1.7.4"
Vagrant.configure("2") do |config|
config.vm.box = "StefanScherer/windows_2019"
config.vm.communicator = "winrm"
["vmware_fusion", "vmware_workstation"].each do |provider|
config.vm.provider provider do |v, override|
v.gui = true
v.vmx["memsize"] = "2048"
v.vmx["numvcpus"] = "2"
v.vmx["vhv.enable"] = "TRUE"
v.enable_vmrun_ip_lookup = false
end
end
config.vm.provider "vmware_fusion" do |v|
v.vmx["gui.fitguestusingnativedisplayresolution"] = "TRUE"
v.vmx["mks.enable3d"] = "TRUE"
v.vmx["mks.forceDiscreteGPU"] = "TRUE"
v.vmx["gui.fullscreenatpoweron"] = "TRUE"
v.vmx["gui.viewmodeatpoweron"] = "fullscreen"
v.vmx["gui.lastPoweredViewMode"] = "fullscreen"
v.vmx["sound.startconnected"] = "TRUE"
v.vmx["sound.present"] = "TRUE"
v.vmx["sound.autodetect"] = "TRUE"
end
config.vm.provider "virtualbox" do |v|
v.gui = true
v.name = "selenium-box"
v.customize ["modifyvm", :id, "--memory", 2048]
v.customize ["modifyvm", :id, "--cpus", 2]
v.customize ["modifyvm", :id, "--vram", 128]
v.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
v.customize ["modifyvm", :id, "--accelerate3d", "on"]
v.customize ["modifyvm", :id, "--accelerate2dvideo", "on"]
v.linked_clone = true if Vagrant::VERSION =~ /^1.8/
end
config.vm.provider "hyperv" do |v|
v.cpus = 2
v.maxmemory = 2048
v.differencing_disk = true
end
config.vm.provision "shell", path: "scripts/install-chocolatey.ps1", privileged: false
config.vm.provision "shell", path: "scripts/install-git.ps1", privileged: false
config.vm.provision "shell", path: "scripts/install-jdk8.ps1", privileged: false
config.vm.provision "shell", path: "scripts/install-gradle.ps1", privileged: false
config.vm.provision "shell", path: "scripts/install-maven.ps1", privileged: false
config.vm.provision "shell", path: "scripts/install-browsers.ps1", privileged: false
config.vm.provision "shell", path: "scripts/install-selenium.ps1", privileged: false
end