vagrant-gpii-ci 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34f333fe7dab9d5a9d7cce696ee92c0393b9edd1
4
- data.tar.gz: 5a57b071b54babf95d35a9783b270c0ebcaee40d
3
+ metadata.gz: c18cb8461cb2c1d40fee507d112b8849d9e4dd55
4
+ data.tar.gz: 1084314c7f12dbf7e22b4e342196b747c15c10dc
5
5
  SHA512:
6
- metadata.gz: 805f875edb7a29b3c945932e0b4231faafa3a50db67b60fce0f6acee146666fad1ece7f96343bfba2fc041356def697e9d32dae748663e31b6d24c1ebe16ef2f
7
- data.tar.gz: 6c7d40583bff99bbde2f97241987df40836005fc090730ab9a6db63b2cc98097db69a522c587f73cbf01df0d12dca64dc280d833f50bd1955a2252ea305100e0
6
+ metadata.gz: 540511175a240cb005ddb242262bfe20ca3bfe67075d0e3ff197932fca347425f8f8087073aa0c55a7dbefc2de7b71b94b28c614de93a5e5239f11bcf97ecbe2
7
+ data.tar.gz: c4ba518fb112510ed4e54bfcdcdcc2e8f6a4a7be99bb41e804fd8e29c168fcba09b58e7bfec7a21483090aa3f4313ad111d85ad558a3c07636cb1e1cdacfa5ba
@@ -54,11 +54,18 @@ module VagrantPlugins
54
54
 
55
55
  def get_ci_tests(definition)
56
56
  ci_tests = {}
57
+ if not definition.include?(".ci_env")
58
+ puts "WARNING: .ci_env not declared in the definition file"
59
+ return ci_tests
60
+ elsif not definition.include?(".ci_stages")
61
+ puts "WARNING: .ci_stages not declared in the definition file"
62
+ return ci_tests
63
+ end
57
64
  definition[".ci_env"]["vms"].each do | vmname, vmdetails |
58
65
 
59
66
  ci_tests["#{vmname}"] = {}
60
67
  ci_tests["#{vmname}"]["shell"] = {}
61
- definition["stages"].each do |stage|
68
+ definition[".ci_stages"].each do |stage|
62
69
  definition.each do |stagename, stagecontent|
63
70
  # Ignore the statements that start with a dot
64
71
  next if stagename.start_with?(".") or stagename.eql?("stages") or not stagecontent["stage"].eql?(stage)
@@ -97,6 +104,9 @@ module VagrantPlugins
97
104
  ci_environment_vms
98
105
  end
99
106
  def get_ci_environment(definition)
107
+ if not definition.include?(".ci_env")
108
+ return {}
109
+ end
100
110
  ci_environment_vms = inject_private_network_config(definition[".ci_env"]["vms"])
101
111
  #TODO: load additional yaml files to extend the definition of the vms
102
112
  end
@@ -110,10 +120,12 @@ module VagrantPlugins
110
120
 
111
121
  vm.customize ["modifyvm", :id, "--memory", ci_vm_definition["memory"] ]
112
122
  vm.customize ["modifyvm", :id, "--cpus", ci_vm_definition["cpu"] ]
113
-
123
+
124
+ vm.customize ["modifyvm", :id, "--vram", "256"]
114
125
  if ci_vm_definition["3d"] == true then
115
- vm.customize ["modifyvm", :id, "--vram", "128"]
116
126
  vm.customize ["modifyvm", :id, "--accelerate3d", "on"]
127
+ else
128
+ vm.customize ["modifyvm", :id, "--accelerate3d", "off"]
117
129
  end
118
130
 
119
131
  if ci_vm_definition["sound"] == true then
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module GPIICi
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-gpii-ci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alfredo Matas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-14 00:00:00.000000000 Z
11
+ date: 2017-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler