thrust 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tasks/testflight.rake +1 -9
- data/lib/thrust/android/deploy.rb +17 -7
- data/lib/thrust/ios/deploy.rb +29 -19
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61067cb4daeb431ef6273f47bb72187c0ba5573a
|
4
|
+
data.tar.gz: 87bad3017b087b47a85b74757f3d36ad5eb787ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc0d52a8654adb83ef3e369441a709acddf2e620f40d7cb35616649a706341da8c40fb4ecbe6d65a21bcc2c47c651edbe9f859644938df36eb7f8d39390359b5
|
7
|
+
data.tar.gz: 9c0bbd55a2c12afb30999bf093515154d6423dcc2e8b2efc941c021e25a0c42e54adb60d9629797671f23fa6dc8246f9ee088090cbfa2db1c56cce8b92b99452
|
data/lib/tasks/testflight.rake
CHANGED
@@ -14,15 +14,7 @@ namespace :testflight do
|
|
14
14
|
else
|
15
15
|
desc "Deploy iOS build to #{task_name} (use NOTIFY=false to prevent team notification)"
|
16
16
|
task task_name do |_, _|
|
17
|
-
|
18
|
-
Thrust::IOS::DeployProvider.new.instance(@thrust, deployment_config, task_name).run
|
19
|
-
rescue Exception => e
|
20
|
-
puts "\n\n"
|
21
|
-
puts e.message.red
|
22
|
-
puts "\n\n"
|
23
|
-
|
24
|
-
Thrust::Git.new($stdout, Thrust::Executor.new).reset
|
25
|
-
end
|
17
|
+
Thrust::IOS::DeployProvider.new.instance(@thrust, deployment_config, task_name).run
|
26
18
|
end
|
27
19
|
end
|
28
20
|
end
|
@@ -12,16 +12,26 @@ module Thrust
|
|
12
12
|
|
13
13
|
def run
|
14
14
|
@git.ensure_clean
|
15
|
-
@git.checkout_tag(@deployment_config.tag) if @deployment_config.tag
|
16
15
|
|
17
|
-
|
18
|
-
|
16
|
+
begin
|
17
|
+
@git.checkout_tag(@deployment_config.tag) if @deployment_config.tag
|
19
18
|
|
20
|
-
|
21
|
-
|
19
|
+
@tools.change_build_number(Time.now.utc.strftime('%y%m%d%H%M'), @git.current_commit)
|
20
|
+
apk_path = @tools.build_signed_release
|
22
21
|
|
23
|
-
|
24
|
-
|
22
|
+
autogenerate_notes = @deployment_config.note_generation_method == 'autotag'
|
23
|
+
@testflight.upload(apk_path, @deployment_config.notify, @deployment_config.distribution_list, autogenerate_notes, @deployment_target)
|
24
|
+
|
25
|
+
@git.create_tag(@deployment_target)
|
26
|
+
@git.reset
|
27
|
+
rescue Exception => e
|
28
|
+
@out.puts "\n\n"
|
29
|
+
@out.puts e.message.red
|
30
|
+
@out.puts "\n\n"
|
31
|
+
|
32
|
+
@git.reset
|
33
|
+
exit 1
|
34
|
+
end
|
25
35
|
end
|
26
36
|
end
|
27
37
|
end
|
data/lib/thrust/ios/deploy.rb
CHANGED
@@ -14,31 +14,41 @@ module Thrust
|
|
14
14
|
|
15
15
|
def run
|
16
16
|
@git.ensure_clean
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
17
|
+
|
18
|
+
begin
|
19
|
+
@git.checkout_tag(@deployment_config.tag) if @deployment_config.tag
|
20
|
+
|
21
|
+
if @deployment_config.versioning_method != 'none'
|
22
|
+
if @deployment_config.versioning_method == 'commits'
|
23
|
+
@agv_tool.change_build_number(@git.commit_count, nil, @thrust_config.app_config.path_to_xcodeproj)
|
24
|
+
elsif @deployment_config.versioning_method == 'timestamp-sha'
|
25
|
+
@agv_tool.change_build_number(@git.current_commit, Time.now.utc.strftime('%y%m%d%H%M'), @thrust_config.app_config.path_to_xcodeproj)
|
26
|
+
else
|
27
|
+
@agv_tool.change_build_number(@git.current_commit, nil, @thrust_config.app_config.path_to_xcodeproj)
|
28
|
+
end
|
26
29
|
end
|
27
|
-
end
|
28
30
|
|
29
|
-
|
30
|
-
|
31
|
+
app_name = @thrust_config.app_config.app_name
|
32
|
+
target = @deployment_config.ios_target || app_name
|
31
33
|
|
32
|
-
|
34
|
+
ipa_file = @x_code_tools.cleanly_create_ipa(target, app_name, @thrust_config.app_config.ios_distribution_certificate, @deployment_config.ios_provisioning_search_query)
|
33
35
|
|
34
|
-
|
35
|
-
|
36
|
+
dsym_path = "#{@x_code_tools.build_configuration_directory}/#{app_name}.app.dSYM"
|
37
|
+
dsym_path = nil unless File.exist?(dsym_path)
|
36
38
|
|
37
|
-
|
38
|
-
|
39
|
+
autogenerate_notes = @deployment_config.note_generation_method == 'autotag'
|
40
|
+
@testflight.upload(ipa_file, @deployment_config.notify, @deployment_config.distribution_list, autogenerate_notes, @deployment_target, dsym_path)
|
39
41
|
|
40
|
-
|
41
|
-
|
42
|
+
@git.create_tag(@deployment_target)
|
43
|
+
@git.reset
|
44
|
+
rescue Exception => e
|
45
|
+
@out.puts "\n\n"
|
46
|
+
@out.puts e.message.red
|
47
|
+
@out.puts "\n\n"
|
48
|
+
|
49
|
+
@git.reset
|
50
|
+
exit 1
|
51
|
+
end
|
42
52
|
end
|
43
53
|
end
|
44
54
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thrust
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Levine
|
@@ -27,7 +27,7 @@ authors:
|
|
27
27
|
autorequire:
|
28
28
|
bindir: bin
|
29
29
|
cert_chain: []
|
30
|
-
date:
|
30
|
+
date: 2015-01-09 00:00:00.000000000 Z
|
31
31
|
dependencies:
|
32
32
|
- !ruby/object:Gem::Dependency
|
33
33
|
name: colorize
|