vx-builder 0.6.12 → 0.6.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a31854dd72a84531b4c120e88ddebadd4c8ef631
4
- data.tar.gz: d7700cb3208f4bd5ad8aae44d947a49e23f7f17b
3
+ metadata.gz: 6639fdd2e323439f610f6799cb765b9304513bd6
4
+ data.tar.gz: 0cdaba7682ad14ba97cdf5c06440bc5af1a0eb29
5
5
  SHA512:
6
- metadata.gz: f0d70ce799311979d746eaa058b07605bc6b185af7074f0eb449e079162c141af24207751656e25418c94a9d820a5328baf8cac88e711970676cb870ead451b2
7
- data.tar.gz: c3f9c96e81d0b55374f8a21298b4192b050212efc518b87e09d6ce18bdfa38bbe8389cfbe73525dcfc5b40463871aec276b9f1d80212150b9435dca2e82c8158
6
+ metadata.gz: 15785a4531584e06405221c6ca8f5aca625bb066ce1e128b99e77a16fc4c26f711424b0f77b04084933aff7d129f5902281149d7f04a1c4e92f6be19f00b2a7d
7
+ data.tar.gz: 5f293d52ec19cbd1076cfe3fc2a080af606fd8787b4ef9ca1699e49194de7ea31a87541307146f3bf70fe8b6a83c9045193a2dd52e09155b98ba1c9c4f0f1bf1
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Vx::Builder
1
+ # Vx::Builder [![Vexor status](http://ci.vexor.io/projects/1f6b7075-cbba-4c12-aa8c-520b3dbbd39b/status.svg)](https://ci.vexor.io/ui/projects/1f6b7075-cbba-4c12-aa8c-520b3dbbd39b/builds)
2
2
 
3
3
  TODO: Write a gem description
4
4
 
@@ -5,12 +5,15 @@ module Vx
5
5
  class Java < Base
6
6
 
7
7
  def call(env)
8
- if java(env)
9
- =begin
8
+ if version = java(env)
10
9
  do_cache_key(env) do |i|
11
- i << "jdk-#{java env}"
10
+ i << "jdk-#{version}"
12
11
  end
13
12
 
13
+ env.stage("install").tap do |i|
14
+ i.add_task "jdk", "action" => "install", "version" => version
15
+ end
16
+ =begin
14
17
  env.stage("before_install").tap do |i|
15
18
  end
16
19
 
@@ -1,5 +1,5 @@
1
1
  module Vx
2
2
  module Builder
3
- VERSION = "0.6.12"
3
+ VERSION = "0.6.13"
4
4
  end
5
5
  end
@@ -34,7 +34,26 @@ describe "(integration v2) go" do
34
34
  io.write "set -e\n"
35
35
  io.write b.script.to_script
36
36
  end
37
- system("env", "-", "USER=$USER", "HOME=#{path}", "bash", "script.sh" )
37
+ system("env", "-", "USER=#{ENV['USER']}", "HOME=#{path}", "bash", "script.sh" )
38
+ expect($?.to_i).to eq 0
39
+ end
40
+ end
41
+
42
+ it "should succesfuly run lang/clojure with different jdk version", real: true do
43
+ file = {"language" => "clojure", "jdk" => "oraclejdk8"} .to_yaml
44
+ task = create(
45
+ :task,
46
+ sha: "HEAD",
47
+ branch: "lang/clojure"
48
+ )
49
+
50
+ b = build(file, task: task)
51
+ Dir.chdir(path) do
52
+ File.open("script.sh", "w") do |io|
53
+ io.write "set -e\n"
54
+ io.write b.script.to_script
55
+ end
56
+ system("env", "-", "USER=#{ENV['USER']}", "HOME=#{path}", "bash", "script.sh" )
38
57
  expect($?.to_i).to eq 0
39
58
  end
40
59
  end
@@ -34,7 +34,7 @@ describe "(integration v2) nodejs" do
34
34
  io.write "set -e\n"
35
35
  io.write b.script.to_script
36
36
  end
37
- system("env", "-", "USER=$USER", "HOME=#{path}", "bash", "script.sh" )
37
+ system("env", "-", "USER=#{ENV['USER']}", "HOME=#{path}", "bash", "script.sh" )
38
38
  expect($?.to_i).to eq 0
39
39
  end
40
40
  end
@@ -56,7 +56,7 @@ describe "(integration v2) nodejs" do
56
56
  io.write "set -e\n"
57
57
  io.write b.script.to_script
58
58
  end
59
- system("env", "-", "USER=$USER", "HOME=#{path}", "bash", "script.sh" )
59
+ system("env", "-", "USER=#{ENV['USER']}", "HOME=#{path}", "bash", "script.sh" )
60
60
  expect($?.to_i).to eq 0
61
61
  end
62
62
  end
@@ -55,7 +55,7 @@ describe "(integration v2) python" do
55
55
  io.write "set -e\n"
56
56
  io.write b.scripts.first.to_script
57
57
  end
58
- system("env", "-", "USER=$USER", "HOME=#{path}", "bash", "script.sh" )
58
+ system("env", "-", "USER=#{ENV['USER']}", "HOME=#{path}", "bash", "script.sh" )
59
59
  expect($?.to_i).to eq 0
60
60
  end
61
61
  end
@@ -38,7 +38,7 @@ describe "(integration v2) ruby" do
38
38
  io.write "set -e\n"
39
39
  io.write b.scripts[0].to_script
40
40
  end
41
- system("env", "-", "USER=$USER", "HOME=#{path}", "bash", "script.sh" )
41
+ system("env", "-", "USER=#{ENV['USER']}", "HOME=#{path}", "bash", "script.sh" )
42
42
  expect($?.to_i).to eq 0
43
43
  end
44
44
  end
@@ -57,7 +57,7 @@ describe "(integration v2) ruby" do
57
57
  io.write "set -e\n"
58
58
  io.write b.scripts[0].to_script
59
59
  end
60
- system("env", "-", "USER=$USER", "HOME=#{path}", "bash", "script.sh" )
60
+ system("env", "-", "USER=#{ENV['USER']}", "HOME=#{path}", "bash", "script.sh" )
61
61
  expect($?.to_i).to_not eq 0
62
62
  end
63
63
  end
@@ -76,7 +76,7 @@ describe "(integration v2) ruby" do
76
76
  io.write "set -e\n"
77
77
  io.write b.scripts[0].to_script
78
78
  end
79
- system("env", "-", "USER=$USER", "HOME=#{path}", "bash", "script.sh" )
79
+ system("env", "-", "USER=#{ENV['USER']}", "HOME=#{path}", "bash", "script.sh" )
80
80
  expect($?.to_i).to eq 0
81
81
  end
82
82
  end
@@ -95,7 +95,7 @@ describe "(integration v2) ruby" do
95
95
  io.write "set -e\n"
96
96
  io.write b.scripts[0].to_script
97
97
  end
98
- system("env", "-", "USER=$USER", "HOME=#{path}", "bash", "script.sh" )
98
+ system("env", "-", "USER=#{ENV['USER']}", "HOME=#{path}", "bash", "script.sh" )
99
99
  expect($?.to_i).to eq 0
100
100
  end
101
101
  end
@@ -114,7 +114,7 @@ describe "(integration v2) ruby" do
114
114
  io.write "set -e\n"
115
115
  io.write b.scripts[0].to_script
116
116
  end
117
- system("env", "-", "USER=$USER", "HOME=#{path}", "bash", "script.sh" )
117
+ system("env", "-", "USER=#{ENV['USER']}", "HOME=#{path}", "bash", "script.sh" )
118
118
  expect($?.to_i).to eq 0
119
119
  end
120
120
  end
@@ -133,7 +133,7 @@ describe "(integration v2) ruby" do
133
133
  io.write "set -e\n"
134
134
  io.write b.scripts[0].to_script
135
135
  end
136
- system("env", "-", "USER=$USER", "HOME=#{path}", "bash", "script.sh" )
136
+ system("env", "-", "USER=#{ENV['USER']}", "HOME=#{path}", "bash", "script.sh" )
137
137
  expect($?.to_i).to eq 0
138
138
  end
139
139
  end
@@ -34,7 +34,7 @@ describe "(integration v2) rust" do
34
34
  io.write "set -e\n"
35
35
  io.write b.script.to_script
36
36
  end
37
- system("env", "-", "USER=$USER", "HOME=#{path}", "bash", "script.sh" )
37
+ system("env", "-", "USER=#{ENV['USER']}", "HOME=#{path}", "bash", "script.sh" )
38
38
  expect($?.to_i).to eq 0
39
39
  end
40
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vx-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.12
4
+ version: 0.6.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Galinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-29 00:00:00.000000000 Z
11
+ date: 2015-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vx-common
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  version: '0'
244
244
  requirements: []
245
245
  rubyforge_project:
246
- rubygems_version: 2.2.2
246
+ rubygems_version: 2.4.5
247
247
  signing_key:
248
248
  specification_version: 4
249
249
  summary: Write a gem summary