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 +4 -4
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_firebase_test.rb +8 -0
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/extract_release_notes_for_version_action.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_localize_helper.rb +1 -0
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_l10n_helper.rb +1 -0
- data/lib/fastlane/plugin/wpmreleasetoolkit/models/firebase_test_runner.rb +11 -10
- data/lib/fastlane/plugin/wpmreleasetoolkit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab2ce164571f692b1378b62adade73faab9e319127ecd08b86a131a490d5185d
|
4
|
+
data.tar.gz: 3a0eb54e84aeeb1df3d71f5e7d91c586c3427c7055545fd28bc3b7a2cfcdb9cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
'
|
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
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
'
|
34
|
-
|
35
|
-
|
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
|
|
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.
|
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
|
+
date: 2022-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|