fastlane-plugin-firebase_test_lab_android 0.3.0 → 0.3.1

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: df8aeae7794db5b23673eb910a96f9c1e8308d65e9d9f9beac948dc7905516bf
4
- data.tar.gz: b6cca85ac8c9ad7daa58437e2d297c32c1fde37c14435241252208d4c3ae16a9
3
+ metadata.gz: b5df1b55057301961ac5fc035503aaa7049f5cd77c1d56f30eec972bb1782df7
4
+ data.tar.gz: 32428261d6dc294799bbad13961d6e79fd79354cc92a91667c4b519383ccd265
5
5
  SHA512:
6
- metadata.gz: 6037e16d9489ff0a302535f25adec5588ce7feee2268e8f78498185d96113169b29091955b37ac462965ba9eb82c2277e673782b725db0d6d1f67a6117b35682
7
- data.tar.gz: 0607f39a00764fc0b0700179c52d9d98a4d286f475931aa6526980e612024d3897b273cdf07676654149831a6ce1df3d09e2d4ca12f568a7e191904b9873315c
6
+ metadata.gz: 3b05325ba3314808b20841c73b78fe6af598c6fbf9eb0fcd014f444306a7d61e6b829a5bf81c8d28919ce0376b5371ba725e43c7dd9249c3ffb2b799ffb90974
7
+ data.tar.gz: 88775e38353bdc6463f484687f317df606cc07b35cb5b60963297fb63184459ca85959a3b875c563d75dc27f045c5de473eb08ef91268dde60e2e3d516b7af33
@@ -67,7 +67,7 @@ module Fastlane
67
67
  pr_number = params[:github_pr_number]
68
68
  api_token = params[:github_api_token]
69
69
  if owner && repository && pr_number && api_token
70
- prefix, comment = Helper.make_github_text(json, params[:project_id], results_bucket, results_dir)
70
+ prefix, comment = Helper.make_github_text(json, params[:project_id], results_bucket, results_dir, params[:type])
71
71
  # Delete past comments
72
72
  GitHubNotifier.delete_comments(owner, repository, pr_number, prefix, api_token)
73
73
  GitHubNotifier.put_comment(owner, repository, pr_number, comment, api_token)
@@ -95,7 +95,7 @@ module Fastlane
95
95
  return success, body
96
96
  end
97
97
 
98
- def self.make_github_text(json, project_id, bucket, dir)
98
+ def self.make_github_text(json, project_id, bucket, dir, test_type)
99
99
  prefix = "<img src=\"https://github.com/cats-oss/fastlane-plugin-firebase_test_lab_android/blob/master/art/firebase_test_lab_logo.png?raw=true\" width=\"65%\" loading=\"lazy\" />"
100
100
  cells = json.map { |data|
101
101
  axis = data["axis_value"]
@@ -104,7 +104,12 @@ module Fastlane
104
104
  status = "#{emoji_status(outcome)} #{outcome}"
105
105
  message = data["test_details"]
106
106
  logcat = "<a href=\"#{firebase_object_url(bucket, "#{dir}/#{axis}/logcat")}\" target=\"_blank\" >#{random_emoji_cat}</a>"
107
- sitemp = "<img src=\"#{firebase_object_url(bucket, "#{dir}/#{axis}/artifacts/sitemap.png")}\" height=\"64px\" loading=\"lazy\" target=\"_blank\" />"
107
+ if test_type == "robo"
108
+ sitemp = "<img src=\"#{firebase_object_url(bucket, "#{dir}/#{axis}/artifacts/sitemap.png")}\" height=\"64px\" loading=\"lazy\" target=\"_blank\" />"
109
+ else
110
+ sitemp = "--"
111
+ end
112
+
108
113
  "| **#{device}** | #{status} | #{message} | #{logcat} | #{sitemp} |\n"
109
114
  }.inject(&:+)
110
115
  comment = <<~EOS
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module FirebaseTestLabAndroid
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-firebase_test_lab_android
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - wasabeef