fastlane-plugin-wpmreleasetoolkit 5.3.0 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a29c8bfbf5d7754cf59109a7dcf521efc91fab3b4314027db41f08a95390c7b
4
- data.tar.gz: c4abdb17c40e79e17ce13a630ac9496768364b479a2496aa26fd9e4c633cae0c
3
+ metadata.gz: ab2ce164571f692b1378b62adade73faab9e319127ecd08b86a131a490d5185d
4
+ data.tar.gz: 3a0eb54e84aeeb1df3d71f5e7d91c586c3427c7055545fd28bc3b7a2cfcdb9cb
5
5
  SHA512:
6
- metadata.gz: d1050f9832b07111a7a8c1740e3ec95c2d59372449b84d901d8ec97f01f1f2ab47abf1383f743569f77666f04d76440e4d167a5d02b1e457da788b67ff8088a8
7
- data.tar.gz: 8986d9c68fd931d1a384f8735b9d661bd7523fef0b88d18d0371379a61bbc3f25b6ede7b287d2b2b89dc6e2a315121a80324aacd1b127c64bdd996bc8e203fd8
6
+ metadata.gz: ab32b891a6e254a1406241624dd6117e233ebe541f40b405d614d2cb827e73f904b71afe9e1d1c8cf6f067c1285b05bb452d4137af7b8886ee20793e67e243c7
7
+ data.tar.gz: b61749dedc931a5e58cbf3357f6c24fcdf01e5a704648d9b082f51b4ce44b5f0b11457ce593efe684bb2c88eebfcbf70164de13bda199bcc1f988b3dbfbe825e
@@ -33,6 +33,7 @@ module Fastlane
33
33
  apk_path: params[:apk_path],
34
34
  test_apk_path: params[:test_apk_path],
35
35
  device: device,
36
+ test_targets: params[:test_targets],
36
37
  type: params[:type]
37
38
  )
38
39
 
@@ -106,6 +107,13 @@ module Fastlane
106
107
  UI.user_error!("Invalid test APK: #{value}") unless File.exist?(value)
107
108
  end
108
109
  ),
110
+ FastlaneCore::ConfigItem.new(
111
+ key: :test_targets,
112
+ description: 'A list of one or more test target filters to apply',
113
+ type: String,
114
+ optional: true,
115
+ default_value: nil
116
+ ),
109
117
  FastlaneCore::ConfigItem.new(
110
118
  key: :model,
111
119
  description: 'The device model to use to run the test',
@@ -58,7 +58,7 @@ module Fastlane
58
58
 
59
59
  def self.details
60
60
  # Optional:
61
- 'Creates a release and uploads the provided assets'
61
+ 'Given a file containing release notes and a version, extracts the notes for that version into a dedicated file.'
62
62
  end
63
63
 
64
64
  def self.available_options
@@ -291,6 +291,7 @@ module Fastlane
291
291
  uri.open(options) { |f| Nokogiri::XML(f.read.gsub("\t", ' '), nil, Encoding::UTF_8.to_s) }
292
292
  rescue StandardError => e
293
293
  UI.error "Error downloading #{locale} - #{e.message}"
294
+ retry if e.is_a?(OpenURI::HTTPError) && UI.confirm("Retry downloading `#{locale}`?")
294
295
  return nil
295
296
  end
296
297
  end
@@ -152,6 +152,7 @@ module Fastlane
152
152
  IO.copy_stream(uri.open(options), destination)
153
153
  rescue StandardError => e
154
154
  UI.error "Error downloading locale `#{locale}` — #{e.message} (#{uri})"
155
+ retry if e.is_a?(OpenURI::HTTPError) && UI.confirm("Retry downloading `#{locale}`?")
155
156
  return nil
156
157
  end
157
158
  end
@@ -20,20 +20,21 @@ module Fastlane
20
20
  # @param [FirebaseDevice] device The virtual device to run tests on.
21
21
  # @param [String] type The type of test to run.
22
22
  #
23
- def self.run_tests(project_id:, apk_path:, test_apk_path:, device:, type: 'instrumentation')
23
+ def self.run_tests(project_id:, apk_path:, test_apk_path:, device:, test_targets: nil, type: 'instrumentation')
24
24
  raise "Unable to find apk: #{apk_path}" unless File.file?(apk_path)
25
25
  raise "Unable to find apk: #{test_apk_path}" unless File.file?(test_apk_path)
26
26
  raise "Invalid Type: #{type}" unless VALID_TEST_TYPES.include?(type)
27
27
 
28
- command = Shellwords.join [
29
- 'gcloud', 'firebase', 'test', 'android', 'run',
30
- '--project', project_id,
31
- '--type', type,
32
- '--app', apk_path,
33
- '--test', test_apk_path,
34
- '--device', device.to_s,
35
- '--verbosity', 'info',
36
- ]
28
+ params = {
29
+ project: project_id,
30
+ type: type,
31
+ app: apk_path,
32
+ test: test_apk_path,
33
+ 'test-targets': test_targets,
34
+ device: device.to_s,
35
+ verbosity: 'info'
36
+ }.compact.flat_map { |k, v| ["--#{k}", v] }
37
+ command = Shellwords.join(['gcloud', 'firebase', 'test', 'android', 'run', *params])
37
38
 
38
39
  log_file_path = Fastlane::Actions.lane_context[:FIREBASE_TEST_LOG_FILE_PATH]
39
40
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Wpmreleasetoolkit
3
- VERSION = '5.3.0'
3
+ VERSION = '5.4.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-wpmreleasetoolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.0
4
+ version: 5.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Automattic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-11 00:00:00.000000000 Z
11
+ date: 2022-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport