fastlane-plugin-accessibility_test 0.1.14 → 0.1.15

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: aee50f08f35caab0d4c599f29636493a4177d19d67d458770abea94555dc12a4
4
- data.tar.gz: 4c9eb9342c82ca5e3751d3b9c4dc9abd43de0020e316f06ff1566d0f53b23e16
3
+ metadata.gz: 1b3949e93ba1bbf6ee4203b7928c66ff4cefd9b9381d5e0aa68116e5112cb741
4
+ data.tar.gz: 5e8987b5c4288576b68cbd48e14c18cd53641b0e2b705e798a943aa541458279
5
5
  SHA512:
6
- metadata.gz: 9a2f22cab3dca50b8bb93795abcd6afb6a4bdacc8c298dd48231d48da2764ccfb238a3b2b1c1c1ccd83807236773d0e3ecd3419f97c24ca1699bd2ad7a69ff3d
7
- data.tar.gz: ade1f5132210e70946764b72959dd0ef0fd862f4bf45157aee8c089498802c7b3cb76995c20304ac55dc96a5ae8c5f8263c7a6ee8898f3fd3048e0b96e9ed01f
6
+ metadata.gz: 741d86fc0e91bf93e712212a4eb55b01ec3138c80f86d21e7d23b1ee40ac83e1b3c38fc4b249b406dfcc3a4b4e4208c86265fe68a88a00beb2800c0f2960d887
7
+ data.tar.gz: e72bff23e7f705b99cde14ed08eee7a45f7c90c99576d31a6dfc055900039de4a88e3e0ffb9fc74798128b97c41791557db55b4ae7c7968f327848d971a9f6fd
@@ -8,8 +8,10 @@ module Fastlane
8
8
  class AccessibilityTestAction < Action
9
9
  def self.run(params)
10
10
  download_dir = params[:download_dir]
11
- firebase_test_lab_results_bucket = params[:firebase_test_lab_results_bucket] ? "#{params[:project_id]}_test_results" : params[:firebase_test_lab_results_bucket]
12
- firebase_test_lab_results_dir = "firebase_test_result_#{DateTime.now.strftime('%Y-%m-%d-%H:%M:%S')}"
11
+
12
+ results_bucket = params[:firebase_test_lab_results_bucket] || "#{params[:project_id]}_test_results"
13
+ results_dir = params[:firebase_test_lab_results_dir] || "firebase_test_result_#{DateTime.now.strftime('%Y-%m-%d-%H:%M:%S')}"
14
+
13
15
  devices = params[:devices]
14
16
  device_names = devices.map(&method(:device_name))
15
17
  results = []
@@ -22,15 +24,15 @@ module Fastlane
22
24
  app_apk: params[:app_apk],
23
25
  console_log_file_name: "#{download_dir}/firebase_os_test_console.log",
24
26
  timeout: params[:timeout],
25
- firebase_test_lab_results_bucket: firebase_test_lab_results_bucket,
26
- firebase_test_lab_results_dir: firebase_test_lab_results_dir,
27
+ firebase_test_lab_results_bucket: results_bucket,
28
+ firebase_test_lab_results_dir: results_dir,
27
29
  extra_options: "--no-record-video #{params[:extra_test_lab_options]}"
28
30
  )
29
31
 
30
32
  UI.message "Fetch screenshots and accessibility meta data from Firebase Test Lab results bucket"
31
33
  device_names.each do |device_name|
32
34
  `mkdir -p #{download_dir}/#{device_name}`
33
- Action.sh "gsutil -m rsync -d -r gs://#{firebase_test_lab_results_bucket}/#{firebase_test_lab_results_dir}/#{device_name}/artifacts #{download_dir}/#{device_name}"
35
+ Action.sh "gsutil -m rsync -d -r gs://#{results_bucket}/#{results_dir}/#{device_name}/artifacts #{download_dir}/#{device_name}"
34
36
  end
35
37
 
36
38
  UI.message "Execute accessibility check"
@@ -44,7 +46,7 @@ module Fastlane
44
46
  UI.message "Push screenshots and accessibility meta data from Firebase Test Lab results bucket"
45
47
  device_names.each do |device_name|
46
48
  `mkdir -p #{download_dir}/#{device_name}`
47
- Action.sh "gsutil -m rsync -d -r #{download_dir}/#{device_name} gs://#{firebase_test_lab_results_bucket}/#{firebase_test_lab_results_dir}/#{device_name}/artifacts"
49
+ Action.sh "gsutil -m rsync -d -r #{download_dir}/#{device_name} gs://#{results_bucket}/#{results_dir}/#{device_name}/artifacts"
48
50
  end
49
51
 
50
52
  UI.message "Extract test result"
@@ -59,7 +61,7 @@ module Fastlane
59
61
  {
60
62
  title: proto.title,
61
63
  message: proto.message,
62
- image: Helper.firebase_object_url(firebase_test_lab_results_bucket, "#{firebase_test_lab_results_dir}/#{device_name}/artifacts/#{File.basename(filePath, ".meta")}.png"),
64
+ image: Helper.firebase_object_url(results_bucket, "#{results_dir}/#{device_name}/artifacts/#{File.basename(filePath, ".meta")}.png"),
63
65
  type: proto.result_type
64
66
  }
65
67
  )
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AccessibilityTest
3
- VERSION = "0.1.14"
3
+ VERSION = "0.1.15"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-accessibility_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takeshi Tsukamoto