pilot 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 533e8f51f9202cc687cfe86f236696a50422c36d
4
- data.tar.gz: 86803a68fc3c50644bff42b45c27826b992dc9b1
3
+ metadata.gz: 0c1746c0a6bf77a5c917369c8448365672b010ad
4
+ data.tar.gz: 6702ec8bd930e56b5e1fc3ee0413658c7315dc0e
5
5
  SHA512:
6
- metadata.gz: 15afe8a23cf73b15b76c7357a7da4b90548438a735fda293f75ef06946b18b976e5209c80346a8a0a17fc0a127520bbd0c1f88dd53935046b98297bf464178d1
7
- data.tar.gz: 9d5b06674b5356a1d4a275adec8465e5b05ca9709c65cf167656cc016761e9e31183d0ee3cf87cab8fb52dbfe5fc6976146f6d50fad7985ec530febdac10ab95
6
+ metadata.gz: 0f4dc4e037ec39a7581ac41b16c3ad119559144d7f9fa75c0b656635648e6708eaa76803e7f161bd37f6ea9a949aec7daa9d0ae64f02e47f40149c81496285ab
7
+ data.tar.gz: a0a1e01b97d0884225368e882fc3442bc2e7caf97eda36cc487e47627e2eaa1d5cbf6cde8dd4d7bd26bfae81870ac66610e9bbfb5292b7b494fb973da234c2d6
@@ -18,18 +18,30 @@ module Pilot
18
18
  transporter = FastlaneCore::ItunesTransporter.new(options[:username])
19
19
  result = transporter.upload(app.apple_id, package_path)
20
20
 
21
- if result
22
- UI.message("Successfully uploaded the new binary to iTunes Connect")
21
+ unless result
22
+ UI.user_error!("Error uploading ipa file, for more information see above")
23
+ end
23
24
 
24
- unless config[:skip_submission]
25
- uploaded_build = wait_for_processing_build
26
- distribute_build(uploaded_build, options)
25
+ UI.message("Successfully uploaded the new binary to iTunes Connect")
27
26
 
28
- UI.message("Successfully distributed build to beta testers 🚀")
29
- end
30
- else
31
- UI.user_error!("Error uploading ipa file, more information see above")
27
+ if config[:skip_waiting_for_build_processing]
28
+ UI.important("Skip waiting for build processing")
29
+ UI.important("This means that no changelog will be set and no build will be distributed to testers")
30
+ return
31
+ end
32
+
33
+ UI.message("If you want to skip waiting for the processing to be finished, use the `skip_waiting_for_build_processing` option")
34
+ uploaded_build = wait_for_processing_build # this might take a while
35
+
36
+ # First, set the changelog (if necessary)
37
+ if options[:changelog].to_s.length > 0
38
+ uploaded_build.update_build_information!(whats_new: options[:changelog])
39
+ UI.success "Successfully set the changelog for build"
32
40
  end
41
+
42
+ return if config[:skip_submission]
43
+ distribute_build(uploaded_build, options)
44
+ UI.message("Successfully distributed build to beta testers 🚀")
33
45
  end
34
46
 
35
47
  def list(options)
@@ -80,6 +92,7 @@ module Pilot
80
92
  UI.message("Waiting for iTunes Connect to finish processing the new build (#{latest_build.train_version} - #{latest_build.build_version})")
81
93
  end
82
94
 
95
+ UI.user_error!("Error receiving the newly uploaded binary, please check iTunes Connect") if latest_build.nil?
83
96
  full_build = nil
84
97
 
85
98
  while full_build.nil? || full_build.processing
@@ -109,9 +122,6 @@ module Pilot
109
122
  def distribute_build(uploaded_build, options)
110
123
  UI.message("Distributing new build to testers")
111
124
 
112
- # First, set the changelog (if necessary)
113
- uploaded_build.update_build_information!(whats_new: options[:changelog])
114
-
115
125
  # Submit for review before external testflight is available
116
126
  if options[:distribute_external]
117
127
  uploaded_build.client.submit_testflight_build_for_review!(
data/lib/pilot/options.rb CHANGED
@@ -40,6 +40,12 @@ module Pilot
40
40
  description: "Skip the distributing action of pilot and only upload the ipa file",
41
41
  is_string: false,
42
42
  default_value: false),
43
+ FastlaneCore::ConfigItem.new(key: :skip_waiting_for_build_processing,
44
+ short_option: "-z",
45
+ env_name: "PILOT_SKIP_WAITING_FOR_BUILD_PROCESSING",
46
+ description: "Don't wait for the build to process. If set to true, the changelog won't be set",
47
+ is_string: false,
48
+ default_value: false),
43
49
  FastlaneCore::ConfigItem.new(key: :apple_id,
44
50
  short_option: "-p",
45
51
  env_name: "PILOT_APPLE_ID",
data/lib/pilot/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Pilot
2
- VERSION = "1.6.0"
2
+ VERSION = "1.7.0"
3
3
  DESCRIPTION = "The best way to manage your TestFlight testers and builds from your terminal"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pilot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-15 00:00:00.000000000 Z
11
+ date: 2016-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -259,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
259
259
  version: '0'
260
260
  requirements: []
261
261
  rubyforge_project:
262
- rubygems_version: 2.4.8
262
+ rubygems_version: 2.4.0
263
263
  signing_key:
264
264
  specification_version: 4
265
265
  summary: The best way to manage your TestFlight testers and builds from your terminal