fastlane 2.30.1 → 2.30.2

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: d1248e1ed87877416d15edb712d731e443c73c8c
4
- data.tar.gz: 4d5f9dfc19dd7f446e3b8de6c25e669cbabcf74b
3
+ metadata.gz: aa87a292e82422b8fc3ff9a95f2141fe7759c508
4
+ data.tar.gz: 65b8e2e2624b35c97a8d03899738737b85e304f8
5
5
  SHA512:
6
- metadata.gz: 5c63b183783fde53cda33446f49a2cfbd9535366293f9d193a5391610d35b9580149b8719f34c22e7a24006f229cf64c339c5840165810f9f6e627abbee92827
7
- data.tar.gz: 6550d1d4418c94f2e5e6ef659292ca8cedec2c87c9b7de443ec708bb914767f28c22163e8f4d28e0fdfdf0d682bbd2be6101cd419f0702d2e7569d730f112a08
6
+ metadata.gz: cc2d9409e2bcdbcd71283abf5e01b6be124d30340ed8230936139af5aed247c4741b4153cffe4ac04b0fcca2ccde37172a67a9761ab0096f6b5b1b4e62807d6b
7
+ data.tar.gz: 2e62b4c2fea4f88ae5b8456912daf1420a57eb59262e7d61a37a79e7e6f5bd011cfec4d0211486d7475c020e25c350502921d7924b3d02ae25c66d1d48136bcd
@@ -252,12 +252,14 @@ module Fastlane
252
252
  class_ref.run(arguments)
253
253
  end
254
254
  end
255
+ rescue \
256
+ FastlaneCore::Interface::FastlaneBuildFailure, # build_failure!
257
+ FastlaneCore::Interface::FastlaneTestFailure => e # test_failure!
258
+ raise e
255
259
  rescue FastlaneCore::Interface::FastlaneError => e # user_error!
256
260
  FastlaneCore::CrashReporter.report_crash(type: :user_error, exception: e, action: method_sym)
257
261
  collector.did_raise_error(method_sym)
258
262
  raise e
259
- rescue FastlaneCore::Interface::FastlaneTestFailure => e # test_failure!
260
- raise e
261
263
  rescue Exception => e # rubocop:disable Lint/RescueException
262
264
  # high chance this is actually FastlaneCore::Interface::FastlaneCrash, but can be anything else
263
265
  # Catches all exceptions, since some plugins might use system exits to get out
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.30.1'.freeze
2
+ VERSION = '2.30.2'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  end
@@ -68,6 +68,8 @@ module FastlaneCore
68
68
 
69
69
  def save_file(payload: "{}")
70
70
  File.write(crash_report_path, payload)
71
+ rescue
72
+ UI.message("fastlane failed to write the crash report to #{crash_report_path}.")
71
73
  end
72
74
 
73
75
  def send_report(payload: "{}")
@@ -70,6 +70,10 @@ module Commander
70
70
  FastlaneCore::CrashReporter.report_crash(type: :option_parser, exception: e, action: @program[:name])
71
71
  abort e.to_s
72
72
  end
73
+ rescue \
74
+ FastlaneCore::Interface::FastlaneBuildFailure, # build_failure!
75
+ FastlaneCore::Interface::FastlaneTestFailure => e # test_failure!
76
+ display_user_error!(e, e.to_s)
73
77
  rescue FastlaneCore::Interface::FastlaneError => e # user_error!
74
78
  collector.did_raise_error(@program[:name])
75
79
  show_github_issues(e.message) if e.show_github_issues
@@ -83,8 +87,6 @@ module Commander
83
87
  puts ""
84
88
  FastlaneCore::CrashReporter.report_crash(type: :system, exception: e, action: @program[:name])
85
89
  raise e
86
- rescue FastlaneCore::Interface::FastlaneTestFailure => e # test_failure!
87
- display_user_error!(e, e.to_s)
88
90
  rescue Faraday::SSLError => e # SSL issues are very common
89
91
  handle_ssl_error!(e)
90
92
  rescue Faraday::ConnectionFailed => e
@@ -126,6 +126,10 @@ module FastlaneCore
126
126
  end
127
127
  end
128
128
 
129
+ # raised from build_failure!
130
+ class FastlaneBuildFailure < FastlaneError
131
+ end
132
+
129
133
  # raised from test_failure!
130
134
  class FastlaneTestFailure < StandardError
131
135
  end
@@ -150,6 +154,16 @@ module FastlaneCore
150
154
  raise FastlaneError.new(options), error_message.to_s
151
155
  end
152
156
 
157
+ # Use this method to exit the program because of a build failure
158
+ # that's caused by the source code of the user. Example for this
159
+ # is that gym will fail when the code doesn't compile or because
160
+ # settings for the project are incorrect.
161
+ # By using this method we'll have more accurate results about
162
+ # fastlane failures
163
+ def build_failure!(error_message, options = {})
164
+ raise FastlaneBuildFailure.new(options), error_message.to_s
165
+ end
166
+
153
167
  # Use this method to exit the program because of a test failure
154
168
  # that's caused by the source code of the user. Example for this
155
169
  # is that scan will fail when the tests fail.
@@ -55,7 +55,7 @@ module Gym
55
55
  print_xcode_path_instructions
56
56
  print_xcode_version
57
57
  raise_legacy_build_api_error(output) if Gym.config[:use_legacy_build_api]
58
- UI.user_error!("Error building the application - see the log above", error_info: output)
58
+ UI.build_failure!("Error building the application - see the log above", error_info: output)
59
59
  end
60
60
 
61
61
  # @param [Array] The output of the errored build (line by line)
@@ -86,7 +86,7 @@ module Gym
86
86
  print "provisioning profile and code signing identity."
87
87
  end
88
88
  print_full_log_path
89
- UI.user_error!("Error packaging up the application", error_info: output)
89
+ UI.build_failure!("Error packaging up the application", error_info: output)
90
90
  end
91
91
 
92
92
  def handle_empty_archive
@@ -96,7 +96,7 @@ module Gym
96
96
  print "Also, make sure to have a valid code signing identity and provisioning profile installed"
97
97
  print "Follow this guide to setup code signing https://docs.fastlane.tools/codesigning/GettingStarted/"
98
98
  print "If your intention was only to export an ipa be sure to provide a valid archive at the archive path."
99
- UI.user_error!("Archive invalid")
99
+ UI.build_failure!("Archive invalid")
100
100
  end
101
101
 
102
102
  def find_standard_output_path(output)
@@ -110,7 +110,7 @@ module Gym
110
110
  UI.error("and was removed with Xcode 8.3")
111
111
  UI.error("Please update your Fastfile to include the export_method too")
112
112
  UI.error("more information about how to migrate away: https://github.com/fastlane/fastlane/releases/tag/2.24.0")
113
- UI.user_error!("Build failed. Please remove the `use_legacy_build_api` option in your Fastfile and try again", error_info: output)
113
+ UI.build_failure!("Build failed. Please remove the `use_legacy_build_api` option in your Fastfile and try again", error_info: output)
114
114
  end
115
115
 
116
116
  private
@@ -287,7 +287,7 @@ module Spaceship
287
287
 
288
288
  # look up the app_id by the bundle_id
289
289
  if bundle_id
290
- app = Spaceship::App.find(bundle_id)
290
+ app = Spaceship::App.set_client(client).find(bundle_id)
291
291
  raise "Could not find app with bundle id '#{bundle_id}'" unless app
292
292
  app_id = app.app_id
293
293
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.30.1
4
+ version: 2.30.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2017-05-11 00:00:00.000000000 Z
18
+ date: 2017-05-12 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier