fastlane-plugin-firebase_test_lab 1.0.5 → 1.0.7

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
  SHA256:
3
- metadata.gz: c3aff51d27711e97c7fcf6bbcf5f0bb043d9736bfba007b475f341087be5f618
4
- data.tar.gz: debb4bf7b7f1982383ac0edc0c4e1e53d3e511c7a34a4bcca4245a10de030498
3
+ metadata.gz: 51ed848b8aa07385583ae4b39b251b507b42349536aac29a5d1bf57f1f83194e
4
+ data.tar.gz: 0164ad1277309d7c15cc824e2d4aa282a5c83c392ecc1c6f0548c14215de2375
5
5
  SHA512:
6
- metadata.gz: 1b21741fa6d9239822db61503673c65590e537021d0c3671216d9b5f849a7dcff0b3ef33d6556f8c0acb9c59a22b328e41db96d789713f9494dbf7c45059f1e8
7
- data.tar.gz: b709f16e7190584969ee73940d6d0b483b9a24a118009853e2ebf42e71ab2dff50d4e2a8c0e6fd0b6026b44f74f8a9fcd228967992e10ed7f222c7921db0beb0
6
+ metadata.gz: 1d0352e04e107ac1e755bb4b5a7797a1156d06cc79784c552fb55d1bba770c8601a850ff116878978dc5255efdc8e22badf92402f176022c3268ffc6ea2e5c21
7
+ data.tar.gz: 9bbd68973a90bdcc1de778f450e32d9be4e88ebd044432e67c3bcfae2674aa44c45718224461c2dc7fa86f8f6b35dd26cd29d3bf549d370d1ca9f1d5f23f248e
data/README.md CHANGED
@@ -88,6 +88,7 @@ firebase_test_lab_ios_xctest(
88
88
  - `app_path`: You may provide a different path in the local filesystem (e.g: `/path/to/app-bundle.zip`) or on Google Cloud Storage (`gs://your-bucket/path/to/app-bundle.zip`) that points to an app bundle as specified [here](https://firebase.google.com/docs/test-lab/ios/command-line#build_xctests_for_your_app). If a Google Cloud Storage path is used, the service account must have read access to such file.
89
89
  - `gcp_project`: The Google Cloud project name for Firebase Test Lab to run on.
90
90
  - `gcp_requests_timeout`: The timeout, in seconds, to use for all requests to the Google Cloud platform (e.g. uploading your app bundle ZIP). If this parameter is omitted, Google Cloud SDK's default requests timeout value will be used. If you are finding that your ZIP uploads are timing out due to the ZIP file being large and not completing within the set timeout time, increase this value.
91
+ - `gcp_additional_client_info`: Additional information to include in the client information of your test job. For example, if you'd like to include metadata to use in a Google cloud function in response to your test job's outcome. See https://firebase.google.com/docs/reference/functions/functions.testLab.ClientInfo for more information.
91
92
  - `oauth_key_file_path`: The path to the Google Cloud service account key. If not set, the Google application default credential will be used.
92
93
  - `devices`: An array of devices for your app to be tested on. Each device is represented as a ruby hash, with `ios_model_id`, `ios_version_id`, `locale` and `orientation` properties, the first two of which are required. If not set, it will default to iPhone X on iOS 11.2. This array cannot be empty.
93
94
  - `async`: If set to true, the action will not wait for the test results but exit immediately.
@@ -64,7 +64,8 @@ module Fastlane
64
64
  app_gcs_link,
65
65
  result_storage,
66
66
  params[:devices],
67
- params[:timeout_sec])
67
+ params[:timeout_sec],
68
+ params[:gcp_additional_client_info])
68
69
 
69
70
  # In theory, matrix_id should be available. Keep it to catch unexpected Firebase Test Lab API response
70
71
  if matrix_id.nil?
@@ -80,7 +80,14 @@ module Fastlane
80
80
  end
81
81
  end
82
82
 
83
- def start_job(gcp_project, app_path, result_path, devices, timeout_sec)
83
+ def start_job(gcp_project, app_path, result_path, devices, timeout_sec, additional_client_info)
84
+ if additional_client_info.nil?
85
+ additional_client_info = { version: VERSION }
86
+ else
87
+ additional_client_info["version"] = VERSION
88
+ end
89
+ additional_client_info = additional_client_info.map { |k,v| { key: k, value: v } }
90
+
84
91
  body = {
85
92
  projectId: gcp_project,
86
93
  testSpecification: {
@@ -107,10 +114,7 @@ module Fastlane
107
114
  clientInfo: {
108
115
  name: PLUGIN_NAME,
109
116
  clientInfoDetails: [
110
- {
111
- key: "version",
112
- value: VERSION
113
- }
117
+ additional_client_info
114
118
  ]
115
119
  }
116
120
  }
@@ -1,6 +1,6 @@
1
1
  module Fastlane
2
2
  module FirebaseTestLab
3
- VERSION = "1.0.5"
3
+ VERSION = "1.0.7"
4
4
  PLUGIN_NAME = "fastlane-plugin-firebase_test_lab"
5
5
  end
6
6
  end
@@ -11,6 +11,10 @@ module Fastlane
11
11
  FastlaneCore::ConfigItem.new(key: :gcp_requests_timeout,
12
12
  description: "The timeout (in seconds) to use for all Google Cloud requests (such as uploading your tests ZIP)",
13
13
  optional: true),
14
+ FastlaneCore::ConfigItem.new(key: :gcp_additional_client_info,
15
+ description: "A hash of additional client info you'd like to submit to Test Lab",
16
+ type: Hash,
17
+ optional: true),
14
18
  FastlaneCore::ConfigItem.new(key: :app_path,
15
19
  description: "Path to the app, either on the filesystem or GCS address (gs://)",
16
20
  default_value:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-firebase_test_lab
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shihua Zheng
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-25 00:00:00.000000000 Z
11
+ date: 2020-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.15.0
75
+ version: 1.25.1
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 1.15.0
82
+ version: 1.25.1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: tty-spinner
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -179,8 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  requirements: []
182
- rubyforge_project:
183
- rubygems_version: 2.7.6
182
+ rubygems_version: 3.0.3
184
183
  signing_key:
185
184
  specification_version: 4
186
185
  summary: Test your app with Firebase Test Lab with ease using fastlane