dev 2.1.118 → 2.1.119
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/base/giturl.rb +11 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a1aa8609d8e84aa3fbf402cdfe3577b48ee0491103474a1cbed5237e1bbcb14
|
4
|
+
data.tar.gz: 5048a4cc1f683758898aa8423d05aad14955139f7c8cf894bbbd9b73cf0a3c8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7319de9199df3932b694a32d568b721248391685e55a5f060f38017a283525397ba1826a28145a8bf9cca3bcc6441baee3b49cccae4bf1ed1409ce1d5c683d25
|
7
|
+
data.tar.gz: 3ba5df26010b7d874a3c1fab60df014594feca2dec3add4c0ee8d1806ae48adc93c47a5d38f9e7f612a65f7b4a83124988624eaa9c15993f4b1ae0f89d411e9c
|
data/lib/base/giturl.rb
CHANGED
@@ -22,8 +22,10 @@ class GitUrl
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def self.build_tags url
|
25
|
+
puts `GitUrl.build_tags #{url}`
|
25
26
|
local_dir = Environment.dev_root + "/build/" + get_relative_dir(url)
|
26
27
|
if(!Dir.exists?(local_dir))
|
28
|
+
puts "git clone #{url} #{local_dir}"
|
27
29
|
puts `git clone #{url} #{local_dir}`
|
28
30
|
end
|
29
31
|
stags=''
|
@@ -33,6 +35,7 @@ class GitUrl
|
|
33
35
|
|
34
36
|
end
|
35
37
|
tags = stags.split('\n')
|
38
|
+
puts "tags: #{tags}"
|
36
39
|
tags.each{|tag|
|
37
40
|
build_tag url, tag.strip
|
38
41
|
}
|
@@ -40,15 +43,15 @@ class GitUrl
|
|
40
43
|
|
41
44
|
def self.build_tag url, tag
|
42
45
|
puts "build #{url} #{tag}"
|
43
|
-
|
44
|
-
puts "
|
45
|
-
if(!Dir.exists?(
|
46
|
-
puts "git clone -b #{tag} --single-branch --depth 1 #{url} #{
|
47
|
-
puts `git clone -b #{tag} --single-branch --depth 1 #{url} #{
|
46
|
+
build_dir = get_build_dir_tag(url,tag)
|
47
|
+
puts "build_dir #{build_dir}"
|
48
|
+
if(!Dir.exists?(build_dir))
|
49
|
+
puts "git clone -b #{tag} --single-branch --depth 1 #{url} #{build_dir}"
|
50
|
+
puts `git clone -b #{tag} --single-branch --depth 1 #{url} #{build_dir}`
|
48
51
|
|
49
|
-
if(Dir.exists?(
|
50
|
-
Dir.chdir(
|
51
|
-
puts "rake #{
|
52
|
+
if(Dir.exists?(build_dir))
|
53
|
+
Dir.chdir(build_dir) do
|
54
|
+
puts "rake #{build_dir}"
|
52
55
|
puts `rake`
|
53
56
|
end
|
54
57
|
end
|