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 +4 -4
- data/README.md +1 -1
- data/lib/vx/builder/script_builder_v2/java.rb +6 -3
- data/lib/vx/builder/version.rb +1 -1
- data/spec/integration/script_builder_v2/clojure_spec.rb +20 -1
- data/spec/integration/script_builder_v2/nodejs_spec.rb +2 -2
- data/spec/integration/script_builder_v2/python_spec.rb +1 -1
- data/spec/integration/script_builder_v2/ruby_spec.rb +6 -6
- data/spec/integration/script_builder_v2/rust_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6639fdd2e323439f610f6799cb765b9304513bd6
|
4
|
+
data.tar.gz: 0cdaba7682ad14ba97cdf5c06440bc5af1a0eb29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15785a4531584e06405221c6ca8f5aca625bb066ce1e128b99e77a16fc4c26f711424b0f77b04084933aff7d129f5902281149d7f04a1c4e92f6be19f00b2a7d
|
7
|
+
data.tar.gz: 5f293d52ec19cbd1076cfe3fc2a080af606fd8787b4ef9ca1699e49194de7ea31a87541307146f3bf70fe8b6a83c9045193a2dd52e09155b98ba1c9c4f0f1bf1
|
data/README.md
CHANGED
@@ -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-#{
|
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
|
|
data/lib/vx/builder/version.rb
CHANGED
@@ -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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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.
|
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-
|
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.
|
246
|
+
rubygems_version: 2.4.5
|
247
247
|
signing_key:
|
248
248
|
specification_version: 4
|
249
249
|
summary: Write a gem summary
|