vx-builder 0.5.61 → 0.5.62
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vx/builder/script_builder_v2/clone.rb +1 -2
- data/lib/vx/builder/task.rb +3 -3
- data/lib/vx/builder/version.rb +1 -1
- data/lib/vx/builder.rb +0 -5
- data/spec/fixtures/script_builder_v2/simple.sh +1 -1
- data/spec/fixtures/script_builder_v2/simple.yml +85 -30
- data/spec/fixtures/test_key1 +27 -0
- data/spec/fixtures/test_key2 +27 -0
- data/spec/lib/builder/task_spec.rb +1 -1
- data/spec/support/create.rb +3 -1
- metadata +6 -38
- data/lib/vx/builder/script_builder/base.rb +0 -77
- data/lib/vx/builder/script_builder/cache.rb +0 -95
- data/lib/vx/builder/script_builder/clojure.rb +0 -34
- data/lib/vx/builder/script_builder/defaults.rb +0 -34
- data/lib/vx/builder/script_builder/deploy.rb +0 -34
- data/lib/vx/builder/script_builder/env.rb +0 -50
- data/lib/vx/builder/script_builder/go.rb +0 -60
- data/lib/vx/builder/script_builder/java.rb +0 -31
- data/lib/vx/builder/script_builder/nodejs.rb +0 -64
- data/lib/vx/builder/script_builder/parallel.rb +0 -19
- data/lib/vx/builder/script_builder/prepare.rb +0 -94
- data/lib/vx/builder/script_builder/python.rb +0 -82
- data/lib/vx/builder/script_builder/ruby.rb +0 -92
- data/lib/vx/builder/script_builder/rust.rb +0 -48
- data/lib/vx/builder/script_builder/scala.rb +0 -50
- data/lib/vx/builder/script_builder/services.rb +0 -26
- data/lib/vx/builder/script_builder/timeouts.rb +0 -21
- data/lib/vx/builder/script_builder.rb +0 -145
- data/spec/lib/builder/script_builder/cache_spec.rb +0 -12
- data/spec/lib/builder/script_builder/clojure_spec.rb +0 -34
- data/spec/lib/builder/script_builder/env_spec.rb +0 -22
- data/spec/lib/builder/script_builder/java_spec.rb +0 -23
- data/spec/lib/builder/script_builder/prepare_spec.rb +0 -46
- data/spec/lib/builder/script_builder/python_spec.rb +0 -32
- data/spec/lib/builder/script_builder/ruby_spec.rb +0 -39
- data/spec/lib/builder/script_builder/scala_spec.rb +0 -33
- data/spec/lib/builder/script_builder_spec.rb +0 -60
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 276cdf41dcc654abb5ca5a3cafe61137e23a7695
|
4
|
+
data.tar.gz: c46def4d917dfc8f405df3037c7883912316e069
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62617292288176935b4f53a490659bda82439d97163f0a72eef966616dfe3444d87b7f1fcaccbdeb37c8210ad1f01ac4199ef6fc4965ade1d227c2b0b7738068
|
7
|
+
data.tar.gz: d7e34b6f1e83b6ae2d6a8ed435510c5ab55b7a01ba00a7bf6556e9b52c82e942a1c76bd08a591e4fd050fcb8566afd98d3dadf470dff9345123debf726dbc870
|
@@ -9,9 +9,8 @@ module Vx
|
|
9
9
|
def call(env)
|
10
10
|
|
11
11
|
env.stage("clone").tap do |e|
|
12
|
-
e.
|
12
|
+
e.add_task "ssh_agent", "key" => env.task.ssh_keys
|
13
13
|
|
14
|
-
e.add_task "ssh_agent", "key" => "$ssh_key"
|
15
14
|
clone = {}
|
16
15
|
clone["repo"] = env.task.src
|
17
16
|
clone["dest"] = "~/#{env.task.name}"
|
data/lib/vx/builder/task.rb
CHANGED
@@ -2,7 +2,7 @@ module Vx
|
|
2
2
|
module Builder
|
3
3
|
class Task
|
4
4
|
|
5
|
-
attr_reader :name, :src, :sha, :
|
5
|
+
attr_reader :name, :src, :sha, :ssh_keys, :branch, :pull_request_id,
|
6
6
|
:cache_url_prefix, :job_id, :build_id, :build_number, :job_number,
|
7
7
|
:project_host, :project_token
|
8
8
|
|
@@ -12,7 +12,7 @@ module Vx
|
|
12
12
|
@sha = options[:sha]
|
13
13
|
@job_id = options[:job_id]
|
14
14
|
@build_id = options[:build_id]
|
15
|
-
@
|
15
|
+
@ssh_keys = options[:ssh_keys]
|
16
16
|
@branch = options[:branch]
|
17
17
|
@pull_request_id = options[:pull_request_id]
|
18
18
|
@cache_url_prefix = options[:cache_url_prefix]
|
@@ -27,7 +27,7 @@ module Vx
|
|
27
27
|
private
|
28
28
|
|
29
29
|
def validate!
|
30
|
-
(name && src && sha &&
|
30
|
+
(name && src && sha && ssh_keys && branch && job_id && build_id &&
|
31
31
|
build_number && job_number && project_host) or
|
32
32
|
raise(MissingKeys)
|
33
33
|
end
|
data/lib/vx/builder/version.rb
CHANGED
data/lib/vx/builder.rb
CHANGED
@@ -8,7 +8,6 @@ module Vx
|
|
8
8
|
autoload :BuildConfiguration, File.expand_path("../builder/build_configuration", __FILE__)
|
9
9
|
autoload :MatrixBuilder, File.expand_path("../builder/matrix_builder", __FILE__)
|
10
10
|
autoload :DeployBuilder, File.expand_path("../builder/deploy_builder", __FILE__)
|
11
|
-
autoload :ScriptBuilder, File.expand_path("../builder/script_builder", __FILE__)
|
12
11
|
autoload :ScriptBuilderV2, File.expand_path("../builder/script_builder_v2", __FILE__)
|
13
12
|
|
14
13
|
module Helper
|
@@ -42,10 +41,6 @@ module Vx
|
|
42
41
|
DeployBuilder.new(matrix_builder, options)
|
43
42
|
end
|
44
43
|
|
45
|
-
def script(task, build_configuration)
|
46
|
-
ScriptBuilder.new task, build_configuration
|
47
|
-
end
|
48
|
-
|
49
44
|
def script_v2(task, build_configuration)
|
50
45
|
ScriptBuilderV2.new task, build_configuration
|
51
46
|
end
|
@@ -21,7 +21,7 @@ git clone -q --depth=1 --branch=master https://github.com/vexor/vx-citool.git ~/
|
|
21
21
|
|
22
22
|
|
23
23
|
|
24
|
-
echo LS0tCi0gbmFtZTogY2xvbmUKICB2YXJzOgogICAgc3NoX2tleTogfAogICAgICAtLS0tLUJFR0lOIFJTQSBQUklWQVRFIEtFWS0tLS0tCiAgICAgIE1JSUVwQUlCQUFLQ0FRRUFwTWthbSttaHdDZENRZHF0dTdVOXA1VlJGbW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VPNB1TnmCVntVVdZZHKkCgYEA9Sk7
|
78
|
+
HEza2tH8rS7iUWpvoKL63hm5QEAHMX6+qbCK5z89z63GPqWQJGI3t14AnN5jP0oT
|
79
|
+
hhe2rHIx7f799MkCksy/5meOuz7XOBiREQlDR5dM7hE8sVWPmCweWyThcXGct9Yk
|
80
|
+
ORQ1EWPEegyjHdpUkEnHoELPHWeJukSTJsZvzJsCgYEA7VWjvMLnb+sHGbp0AxV4
|
81
|
+
JnZKLfwMh9dtjw+lUEfbd+t2o23MU+osareu6eQsdl8WQb2CL0Vhl3uTZdvkkrJa
|
82
|
+
6w4o1Ty+jCG9IwCA8tGRoyaAx3baaQfB3ABC+8G+JtRotSD5FcwEVEqw1DuFpaj+
|
83
|
+
MMzzO8s8eEInrX8tYUz9GIECgYAj01+g9hYxTehXwncuIJipZ8ezNx0cJ38lm3jv
|
84
|
+
QS47NsGonKNQuk8DEhtEP4dlZRYpxIBv4v092/4x4kZoRAuNOkB8wftYn4lB2E0y
|
85
|
+
qSDc0F5cl8Y/v9oZCbFx7kTHmCunrbJjaPGMVgD7OOeJUEN1RmLWp4yuple5EZZT
|
86
|
+
X0ItKwKBgQDbags/0GaJasfG4gNTp0vpRzXeGhCNsVPm72VNodv5fAZGU6Vgfjpy
|
87
|
+
0QlsHl7c148fkvjj3TxriqRWmEosI9vjVptTYjcctBDhhk+gD4ufokqhhtckbfRk
|
88
|
+
EQeydeybKLW49Mewm42mjJMm+CAIpO+TVFYR+/UZxBZN3WhKePOXiA==
|
89
|
+
-----END RSA PRIVATE KEY-----
|
35
90
|
- git_clone:
|
36
91
|
repo: git@github.com:vexor/vx-test-repo.git
|
37
92
|
dest: "~/vexor/vx-test-repo"
|
@@ -0,0 +1,27 @@
|
|
1
|
+
-----BEGIN RSA PRIVATE KEY-----
|
2
|
+
MIIEoQIBAAKCAQEAp+sIWk/X62Aa7FueZOJzXjRLRypKAmUC+wLLv2RsJTqFtLOr
|
3
|
+
pFUfOcDuXYCPWcgxcbR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8eEInrX8tYUz9GIECgYAj01+g9hYxTehXwncuIJipZ8ezNx0cJ38lm3jv
|
22
|
+
QS47NsGonKNQuk8DEhtEP4dlZRYpxIBv4v092/4x4kZoRAuNOkB8wftYn4lB2E0y
|
23
|
+
qSDc0F5cl8Y/v9oZCbFx7kTHmCunrbJjaPGMVgD7OOeJUEN1RmLWp4yuple5EZZT
|
24
|
+
X0ItKwKBgQDbags/0GaJasfG4gNTp0vpRzXeGhCNsVPm72VNodv5fAZGU6Vgfjpy
|
25
|
+
0QlsHl7c148fkvjj3TxriqRWmEosI9vjVptTYjcctBDhhk+gD4ufokqhhtckbfRk
|
26
|
+
EQeydeybKLW49Mewm42mjJMm+CAIpO+TVFYR+/UZxBZN3WhKePOXiA==
|
27
|
+
-----END RSA PRIVATE KEY-----
|
@@ -8,7 +8,7 @@ describe Vx::Builder::Task do
|
|
8
8
|
context "just created" do
|
9
9
|
its(:name) { should eq 'vexor/vx-test-repo' }
|
10
10
|
its(:sha) { should eq '8f53c077072674972e21c82a286acc07fada91f5' }
|
11
|
-
its(:
|
11
|
+
its(:ssh_keys) { should be }
|
12
12
|
its(:cache_url_prefix){ should eq 'http://localhost:3001' }
|
13
13
|
its(:job_id) { should eq 1 }
|
14
14
|
its(:build_id) { should eq 12 }
|
data/spec/support/create.rb
CHANGED
@@ -10,7 +10,9 @@ def create(name, options = {})
|
|
10
10
|
name: 'vexor/vx-test-repo',
|
11
11
|
src: "git@github.com:vexor/vx-test-repo.git",
|
12
12
|
sha: options[:sha] || "8f53c077072674972e21c82a286acc07fada91f5",
|
13
|
-
|
13
|
+
ssh_keys: [fixture("vx_test_repo_insecure_key"),
|
14
|
+
fixture("test_key1"),
|
15
|
+
fixture("test_key2")],
|
14
16
|
branch: options[:branch] || "test/pull-request",
|
15
17
|
cache_url_prefix: "http://localhost:3001",
|
16
18
|
pull_request_id: options[:pull_request_id],
|
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.5.
|
4
|
+
version: 0.5.62
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Galinsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: vx-common
|
@@ -145,24 +145,6 @@ files:
|
|
145
145
|
- lib/vx/builder/helper/trace_sh_command.rb
|
146
146
|
- lib/vx/builder/helper/vxvm_install.rb
|
147
147
|
- lib/vx/builder/matrix_builder.rb
|
148
|
-
- lib/vx/builder/script_builder.rb
|
149
|
-
- lib/vx/builder/script_builder/base.rb
|
150
|
-
- lib/vx/builder/script_builder/cache.rb
|
151
|
-
- lib/vx/builder/script_builder/clojure.rb
|
152
|
-
- lib/vx/builder/script_builder/defaults.rb
|
153
|
-
- lib/vx/builder/script_builder/deploy.rb
|
154
|
-
- lib/vx/builder/script_builder/env.rb
|
155
|
-
- lib/vx/builder/script_builder/go.rb
|
156
|
-
- lib/vx/builder/script_builder/java.rb
|
157
|
-
- lib/vx/builder/script_builder/nodejs.rb
|
158
|
-
- lib/vx/builder/script_builder/parallel.rb
|
159
|
-
- lib/vx/builder/script_builder/prepare.rb
|
160
|
-
- lib/vx/builder/script_builder/python.rb
|
161
|
-
- lib/vx/builder/script_builder/ruby.rb
|
162
|
-
- lib/vx/builder/script_builder/rust.rb
|
163
|
-
- lib/vx/builder/script_builder/scala.rb
|
164
|
-
- lib/vx/builder/script_builder/services.rb
|
165
|
-
- lib/vx/builder/script_builder/timeouts.rb
|
166
148
|
- lib/vx/builder/script_builder_v2.rb
|
167
149
|
- lib/vx/builder/script_builder_v2/base.rb
|
168
150
|
- lib/vx/builder/script_builder_v2/cache.rb
|
@@ -210,6 +192,8 @@ files:
|
|
210
192
|
- spec/fixtures/script_builder_v2/simple.sh
|
211
193
|
- spec/fixtures/script_builder_v2/simple.yml
|
212
194
|
- spec/fixtures/simple.yml
|
195
|
+
- spec/fixtures/test_key1
|
196
|
+
- spec/fixtures/test_key2
|
213
197
|
- spec/fixtures/travis.yml
|
214
198
|
- spec/fixtures/travis_bug_1.yml
|
215
199
|
- spec/fixtures/travis_bug_2.yml
|
@@ -232,15 +216,6 @@ files:
|
|
232
216
|
- spec/lib/builder/configuration_spec.rb
|
233
217
|
- spec/lib/builder/deploy_builder_spec.rb
|
234
218
|
- spec/lib/builder/matrix_builder_spec.rb
|
235
|
-
- spec/lib/builder/script_builder/cache_spec.rb
|
236
|
-
- spec/lib/builder/script_builder/clojure_spec.rb
|
237
|
-
- spec/lib/builder/script_builder/env_spec.rb
|
238
|
-
- spec/lib/builder/script_builder/java_spec.rb
|
239
|
-
- spec/lib/builder/script_builder/prepare_spec.rb
|
240
|
-
- spec/lib/builder/script_builder/python_spec.rb
|
241
|
-
- spec/lib/builder/script_builder/ruby_spec.rb
|
242
|
-
- spec/lib/builder/script_builder/scala_spec.rb
|
243
|
-
- spec/lib/builder/script_builder_spec.rb
|
244
219
|
- spec/lib/builder/script_builder_v2_spec.rb
|
245
220
|
- spec/lib/builder/task_spec.rb
|
246
221
|
- spec/lib/builder_spec.rb
|
@@ -301,6 +276,8 @@ test_files:
|
|
301
276
|
- spec/fixtures/script_builder_v2/simple.sh
|
302
277
|
- spec/fixtures/script_builder_v2/simple.yml
|
303
278
|
- spec/fixtures/simple.yml
|
279
|
+
- spec/fixtures/test_key1
|
280
|
+
- spec/fixtures/test_key2
|
304
281
|
- spec/fixtures/travis.yml
|
305
282
|
- spec/fixtures/travis_bug_1.yml
|
306
283
|
- spec/fixtures/travis_bug_2.yml
|
@@ -323,15 +300,6 @@ test_files:
|
|
323
300
|
- spec/lib/builder/configuration_spec.rb
|
324
301
|
- spec/lib/builder/deploy_builder_spec.rb
|
325
302
|
- spec/lib/builder/matrix_builder_spec.rb
|
326
|
-
- spec/lib/builder/script_builder/cache_spec.rb
|
327
|
-
- spec/lib/builder/script_builder/clojure_spec.rb
|
328
|
-
- spec/lib/builder/script_builder/env_spec.rb
|
329
|
-
- spec/lib/builder/script_builder/java_spec.rb
|
330
|
-
- spec/lib/builder/script_builder/prepare_spec.rb
|
331
|
-
- spec/lib/builder/script_builder/python_spec.rb
|
332
|
-
- spec/lib/builder/script_builder/ruby_spec.rb
|
333
|
-
- spec/lib/builder/script_builder/scala_spec.rb
|
334
|
-
- spec/lib/builder/script_builder_spec.rb
|
335
303
|
- spec/lib/builder/script_builder_v2_spec.rb
|
336
304
|
- spec/lib/builder/task_spec.rb
|
337
305
|
- spec/lib/builder_spec.rb
|
@@ -1,77 +0,0 @@
|
|
1
|
-
module Vx
|
2
|
-
module Builder
|
3
|
-
class ScriptBuilder
|
4
|
-
|
5
|
-
Base = Struct.new(:app) do
|
6
|
-
|
7
|
-
include Helper::TraceShCommand
|
8
|
-
include Common::Helper::UploadShCommand
|
9
|
-
include Helper::VxvmInstall
|
10
|
-
|
11
|
-
def do_cache_key(env)
|
12
|
-
yield env.cache_key
|
13
|
-
end
|
14
|
-
|
15
|
-
def do_script(env)
|
16
|
-
if env.source.script.empty? && !env.source.deploy_modules?
|
17
|
-
yield env.script
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
def do_cached_directories(env)
|
22
|
-
if env.source.cached_directories != false
|
23
|
-
yield env.cached_directories
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
def do_init(env)
|
28
|
-
yield env.init
|
29
|
-
end
|
30
|
-
|
31
|
-
def do_announce(env)
|
32
|
-
yield env.announce
|
33
|
-
end
|
34
|
-
|
35
|
-
def do_before_install(env)
|
36
|
-
yield env.before_install
|
37
|
-
end
|
38
|
-
|
39
|
-
def do_install(env)
|
40
|
-
if env.source.install.empty?
|
41
|
-
yield env.install
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
def do_before_script(env)
|
46
|
-
if env.source.before_script.empty? && !deploy?(env)
|
47
|
-
yield env.before_script
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
def do_deploy_script(env)
|
52
|
-
if deploy?(env)
|
53
|
-
yield env.script
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
def do_before_deploy(env)
|
58
|
-
if deploy?(env)
|
59
|
-
yield env.before_script
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
def do_after_deploy(env)
|
64
|
-
if deploy?(env)
|
65
|
-
yield env.after_success
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
def deploy?(env)
|
70
|
-
env.source.deploy_modules?
|
71
|
-
end
|
72
|
-
|
73
|
-
end
|
74
|
-
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|
@@ -1,95 +0,0 @@
|
|
1
|
-
module Vx
|
2
|
-
module Builder
|
3
|
-
class ScriptBuilder
|
4
|
-
|
5
|
-
class Cache < Base
|
6
|
-
|
7
|
-
include Helper::Config
|
8
|
-
|
9
|
-
CASHER_URL = "https://raw.githubusercontent.com/dima-exe/casher/master/bin/casher"
|
10
|
-
CASHER_BIN = "$HOME/.casher/bin/casher"
|
11
|
-
|
12
|
-
def call(env)
|
13
|
-
rs = app.call env
|
14
|
-
|
15
|
-
if env.task.cache_url_prefix && enabled?(env)
|
16
|
-
|
17
|
-
assign_url_to_env(env)
|
18
|
-
prepare(env)
|
19
|
-
fetch(env)
|
20
|
-
add(env)
|
21
|
-
push(env)
|
22
|
-
end
|
23
|
-
|
24
|
-
rs
|
25
|
-
end
|
26
|
-
|
27
|
-
private
|
28
|
-
|
29
|
-
def enabled?(env)
|
30
|
-
env.source.cache.enabled? && !env.cached_directories.empty?
|
31
|
-
end
|
32
|
-
|
33
|
-
def casher_cmd
|
34
|
-
"test -f #{CASHER_BIN} && #{config.casher_ruby} #{CASHER_BIN}"
|
35
|
-
end
|
36
|
-
|
37
|
-
def assign_url_to_env(env)
|
38
|
-
urls = []
|
39
|
-
branch = env.task.branch
|
40
|
-
if branch != 'master'
|
41
|
-
urls << url_for(env, branch)
|
42
|
-
end
|
43
|
-
urls << url_for(env, 'master')
|
44
|
-
|
45
|
-
env.cache_fetch_url = urls
|
46
|
-
env.cache_push_url = url_for(env, branch)
|
47
|
-
env
|
48
|
-
end
|
49
|
-
|
50
|
-
def url_for(env, branch)
|
51
|
-
name = branch
|
52
|
-
|
53
|
-
key =
|
54
|
-
if env.cache_key.empty?
|
55
|
-
"cache"
|
56
|
-
else
|
57
|
-
env.cache_key.join("-").downcase.gsub(/[^a-z0-9_\-.]/, '-')
|
58
|
-
end
|
59
|
-
|
60
|
-
"#{env.task.cache_url_prefix}/#{name}/#{key}.tgz"
|
61
|
-
end
|
62
|
-
|
63
|
-
def prepare(env)
|
64
|
-
cmd = %{
|
65
|
-
export CASHER_DIR=$HOME/.casher &&
|
66
|
-
( mkdir -p $CASHER_DIR/bin &&
|
67
|
-
/usr/bin/curl #{CASHER_URL} --tcp-nodelay --retry 3 --fail --silent --show-error -o #{CASHER_BIN} &&
|
68
|
-
chmod +x #{CASHER_BIN} ) ||
|
69
|
-
true
|
70
|
-
}.gsub(/\n/, ' ').gsub(/ +/, ' ')
|
71
|
-
env.init << cmd
|
72
|
-
end
|
73
|
-
|
74
|
-
def fetch(env)
|
75
|
-
urls = env.cache_fetch_url.join(" ")
|
76
|
-
env.init << "#{casher_cmd} fetch #{urls} || true"
|
77
|
-
end
|
78
|
-
|
79
|
-
def add(env)
|
80
|
-
env.cached_directories.each do |d|
|
81
|
-
env.init << "#{casher_cmd} add #{d} || true"
|
82
|
-
end
|
83
|
-
env.init << "unset CASHER_DIR"
|
84
|
-
end
|
85
|
-
|
86
|
-
def push(env)
|
87
|
-
if env.cache_push_url && !deploy?(env)
|
88
|
-
env.after_script << "#{casher_cmd} push #{env.cache_push_url}"
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
|
-
end
|
93
|
-
end
|
94
|
-
end
|
95
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
module Vx
|
2
|
-
module Builder
|
3
|
-
class ScriptBuilder
|
4
|
-
|
5
|
-
class Clojure < Base
|
6
|
-
|
7
|
-
def call(env)
|
8
|
-
if enabled?(env)
|
9
|
-
do_announce(env) do |i|
|
10
|
-
i << trace_sh_command("lein version")
|
11
|
-
end
|
12
|
-
|
13
|
-
do_install(env) do |i|
|
14
|
-
i << trace_sh_command("lein deps")
|
15
|
-
end
|
16
|
-
|
17
|
-
do_script(env) do |i|
|
18
|
-
i << trace_sh_command("lein test")
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
app.call(env)
|
23
|
-
end
|
24
|
-
|
25
|
-
private
|
26
|
-
|
27
|
-
def enabled?(env)
|
28
|
-
env.source.language == 'clojure'
|
29
|
-
end
|
30
|
-
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
module Vx
|
2
|
-
module Builder
|
3
|
-
class ScriptBuilder
|
4
|
-
|
5
|
-
class Defaults < Base
|
6
|
-
|
7
|
-
def call(env)
|
8
|
-
env.source.before_install.each do |c|
|
9
|
-
env.before_install << trace_sh_command(c)
|
10
|
-
end
|
11
|
-
|
12
|
-
env.source.install.each do |c|
|
13
|
-
env.install << trace_sh_command(c)
|
14
|
-
end
|
15
|
-
|
16
|
-
env.source.before_script.each do |c|
|
17
|
-
env.before_script << trace_sh_command(c)
|
18
|
-
end
|
19
|
-
|
20
|
-
env.source.script.each do |c|
|
21
|
-
env.script << trace_sh_command(c)
|
22
|
-
end
|
23
|
-
|
24
|
-
env.source.after_success.each do |c|
|
25
|
-
env.after_success << trace_sh_command(c)
|
26
|
-
end
|
27
|
-
|
28
|
-
app.call env
|
29
|
-
end
|
30
|
-
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|