ecb 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commands/xcode_build.rb +3 -12
- data/lib/ecb.rb +1 -1
- data/lib/info.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2195395bfb25f9adb652d49bc962a30519de48e
|
4
|
+
data.tar.gz: 5c73f50e6229b3672f2737beb217b6e97646f376
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8d8ce9ff05aa2adb9ee52aa62a5b247b02ebae86b4dc33e2dae8349142f0b1dadfacda2a05f713b7476ec84ce34fd04dd9a444e64510d3a7d9735b288df2e98
|
7
|
+
data.tar.gz: d946574bbbe51a5bcaaabb834b592e9e3a7bd48f853dad7b6193bb92d932275be04f3c071fd0f34d20013b2a8e0234152af2744af98e911db25e88aa94877496
|
data/lib/commands/xcode_build.rb
CHANGED
@@ -19,7 +19,6 @@ module Commands
|
|
19
19
|
def required_options
|
20
20
|
@required_options ||= Set.new [
|
21
21
|
:config,
|
22
|
-
:branch
|
23
22
|
]
|
24
23
|
end
|
25
24
|
|
@@ -30,9 +29,6 @@ module Commands
|
|
30
29
|
opts.on('-c', "--config name", "Required - Name of the config we are building from.") do |v|
|
31
30
|
options[:config] = v
|
32
31
|
end
|
33
|
-
opts.on('-b', "--branch name", "Required - Name git branch that we are building from.") do |v|
|
34
|
-
options[:branch] = v
|
35
|
-
end
|
36
32
|
|
37
33
|
opts.on('-r', "--config-repo name", EcbSharedLib::REPO_COMMAND_DETAILS) do |v|
|
38
34
|
options[:config_repo] = v
|
@@ -48,7 +44,7 @@ module Commands
|
|
48
44
|
# if the repo specifies a branch then we will do the initial fetch from that branch
|
49
45
|
# if the create_dev_branch flag is set, we will create a local and tracking branch with
|
50
46
|
# the developer initials prepended
|
51
|
-
def do_build(build, archivePath
|
47
|
+
def do_build(build, archivePath)
|
52
48
|
workspace = build[:workspace]
|
53
49
|
scheme = build[:scheme]
|
54
50
|
xcconfig = build[:xcconfig]
|
@@ -57,9 +53,7 @@ module Commands
|
|
57
53
|
configuration = build[:configuration]
|
58
54
|
extra_configs = build[:extra_configs]
|
59
55
|
provisioning_file = build[:provisioning_file]
|
60
|
-
|
61
|
-
branchCmd = "git push --delete origin #{branch}"
|
62
|
-
|
56
|
+
|
63
57
|
if !archivePath.empty? then
|
64
58
|
archive = 'archive'
|
65
59
|
else
|
@@ -68,14 +62,12 @@ module Commands
|
|
68
62
|
|
69
63
|
cmd = "xcodebuild #{archive} -workspace #{workspace} -scheme #{scheme} -xcconfig '#{xcconfig}' -configuration #{configuration} -derivedDataPath build -archivePath '#{archivePath}/#{archiveName}' #{extra_configs}"
|
70
64
|
if EcbSharedLib::CL.do_cmd_result(cmd, '.') != 0
|
71
|
-
EcbSharedLib::CL.do_cmd(branchCmd, '.')
|
72
65
|
raise "Xcode Build failed."
|
73
66
|
end
|
74
67
|
|
75
68
|
if !archivePath.empty? then
|
76
69
|
cmd = "xcodebuild -exportArchive -exportFormat IPA -archivePath '#{archivePath}/#{archiveName}' -exportPath '#{archivePath}/#{exportName}' -exportProvisioningProfile '#{provisioning_file}'"
|
77
70
|
if EcbSharedLib::CL.do_cmd_result(cmd, '.') != 0
|
78
|
-
EcbSharedLib::CL.do_cmd(branchCmd, '.')
|
79
71
|
raise "Xcode Export Arcive failed."
|
80
72
|
end
|
81
73
|
end
|
@@ -86,7 +78,6 @@ module Commands
|
|
86
78
|
# the file is expected to be in JSON format
|
87
79
|
config_name = options[:config]
|
88
80
|
archivePath = options[:archive]
|
89
|
-
branch = options[:branch]
|
90
81
|
|
91
82
|
config_repo = options[:config_repo]
|
92
83
|
config_repo_url = EcbSharedLib.prepare_config_repo(config_repo)
|
@@ -105,7 +96,7 @@ module Commands
|
|
105
96
|
|
106
97
|
builds = info[:builds]
|
107
98
|
builds.each do |build|
|
108
|
-
do_build(build, archivePath
|
99
|
+
do_build(build, archivePath)
|
109
100
|
cmd = "git checkout ."
|
110
101
|
EcbSharedLib::CL.do_cmd(cmd, '.')
|
111
102
|
end
|
data/lib/ecb.rb
CHANGED
data/lib/info.rb
CHANGED