allure-report-publisher 4.7.3 → 4.7.5
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/README.md +2 -1
- data/lib/allure_report_publisher/lib/uploaders/_uploader.rb +7 -0
- data/lib/allure_report_publisher/lib/uploaders/gcs.rb +4 -3
- data/lib/allure_report_publisher/lib/uploaders/gitlab_artifacts.rb +1 -1
- data/lib/allure_report_publisher/lib/uploaders/s3.rb +4 -3
- data/lib/allure_report_publisher/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '04328fb7e71b1d874817dbd35fbe2fe51486e591e3776423f354f47896f08dcd'
|
4
|
+
data.tar.gz: '0523621548baf13baa35f04b65deae8eb0f520ea734a9f208c64b603e5c7d792'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02b9b929ca9ca7d33ac8c3e61ece444ecd4b45e7743dc0b81f1dae94315c95b64f7cbb7806fa7ed049c3d97b1872c135d0b3dece671e1dcb483efc943a5ea2d2
|
7
|
+
data.tar.gz: bf598fb6e8b15bb7278bdac8b902f7de8d8d5ea98bb243c853c5bbde61d74e59dc2575b9c1e340d54b6d0d18ab4fec4f35c32b894abe63bf3bbdece53a97ba75
|
data/README.md
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
[](https://hub.docker.com/r/andrcuns/allure-report-publisher)
|
4
4
|
[](https://hub.docker.com/r/andrcuns/allure-report-publisher)
|
5
5
|

|
6
|
+
[](https://codecov.io/gh/andrcuns/allure-report-publisher)
|
6
7
|
|
7
8
|
Upload your report to a file storage of your choice.
|
8
9
|
|
@@ -13,7 +14,7 @@ Upload your report to a file storage of your choice.
|
|
13
14
|
## Rubygems
|
14
15
|
|
15
16
|
```shell
|
16
|
-
gem install allure-report-
|
17
|
+
gem install allure-report-publisher
|
17
18
|
```
|
18
19
|
|
19
20
|
## Docker
|
@@ -177,6 +177,13 @@ module Publisher
|
|
177
177
|
.reject(&:directory?)
|
178
178
|
end
|
179
179
|
|
180
|
+
# History files array
|
181
|
+
#
|
182
|
+
# @return [Array<Pathname>]
|
183
|
+
def history_files
|
184
|
+
@history_files ||= report_files.select { |file| file.fnmatch?("*/history/*") }
|
185
|
+
end
|
186
|
+
|
180
187
|
# Get run id
|
181
188
|
#
|
182
189
|
# @return [String]
|
@@ -41,12 +41,13 @@ module Publisher
|
|
41
41
|
def download_history
|
42
42
|
log_debug("Downloading previous run history")
|
43
43
|
HISTORY.each do |file_name|
|
44
|
-
|
44
|
+
source_file = key(prefix, "history", file_name)
|
45
|
+
file = bucket.file(source_file)
|
45
46
|
raise(HistoryNotFoundError, "Allure history from previous runs not found!") unless file
|
46
47
|
|
47
48
|
file_path = path(common_info_path, "history", file_name)
|
48
49
|
file.download(file_path)
|
49
|
-
log_debug("Downloaded '#{
|
50
|
+
log_debug("Downloaded '#{source_file}' to '#{file_path}'")
|
50
51
|
end
|
51
52
|
end
|
52
53
|
|
@@ -55,7 +56,7 @@ module Publisher
|
|
55
56
|
# @return [void]
|
56
57
|
def upload_history
|
57
58
|
log_debug("Uploading report history")
|
58
|
-
upload_to_gcs(
|
59
|
+
upload_to_gcs(history_files, prefix)
|
59
60
|
end
|
60
61
|
|
61
62
|
# Upload allure report
|
@@ -139,7 +139,7 @@ module Publisher
|
|
139
139
|
# this will only work with history json files, see: https://github.com/NARKOZ/gitlab/issues/621
|
140
140
|
response = client.download_job_artifact_file(project_id, job_id, artifact_path)
|
141
141
|
|
142
|
-
File.write(local_path, response.
|
142
|
+
File.write(local_path, response.string)
|
143
143
|
end
|
144
144
|
end
|
145
145
|
end
|
@@ -63,13 +63,14 @@ module Publisher
|
|
63
63
|
def download_history
|
64
64
|
log_debug("Downloading previous run history")
|
65
65
|
HISTORY.each do |file_name|
|
66
|
+
source_file = key(prefix, "history", file_name)
|
66
67
|
file_path = path(common_info_path, "history", file_name)
|
67
68
|
client.get_object(
|
68
69
|
response_target: file_path,
|
69
|
-
key:
|
70
|
+
key: source_file,
|
70
71
|
bucket: bucket_name
|
71
72
|
)
|
72
|
-
log_debug("Downloaded '#{
|
73
|
+
log_debug("Downloaded '#{source_file}' to '#{file_path}'")
|
73
74
|
end
|
74
75
|
rescue Aws::S3::Errors::NoSuchKey
|
75
76
|
raise(HistoryNotFoundError, "Allure history from previous runs not found!")
|
@@ -80,7 +81,7 @@ module Publisher
|
|
80
81
|
# @return [void]
|
81
82
|
def upload_history
|
82
83
|
log_debug("Uploading report history")
|
83
|
-
upload_to_s3(
|
84
|
+
upload_to_s3(history_files, prefix)
|
84
85
|
end
|
85
86
|
|
86
87
|
# Upload allure report
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: allure-report-publisher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.7.
|
4
|
+
version: 4.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrejs Cunskis
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
version: 1.93.1
|
19
19
|
- - "<"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.
|
21
|
+
version: 1.200.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -28,7 +28,7 @@ dependencies:
|
|
28
28
|
version: 1.93.1
|
29
29
|
- - "<"
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
version: 1.
|
31
|
+
version: 1.200.0
|
32
32
|
- !ruby/object:Gem::Dependency
|
33
33
|
name: dry-cli
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|