allure-report-publisher 0.1.0 → 0.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bb81eada76c7024e4a570187d02e2383677552daef81b14e1e1457ca2fbc6be
|
4
|
+
data.tar.gz: 27db25caad167473b073a6057f82981d648889d800c3fddb879c3c046d5dc951
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b3d2e2a7faa93ad323cb24ea892aeb3601c904e30c4fdadaf78732bd903945c7ba2e488440bb5a1d834e0ec62a1616c83aea48e697596edd02d271fcf8d0719
|
7
|
+
data.tar.gz: 400d890b0e1b315d1aab1a246482a31849a38c3a78b231310ffc285b5fd14d677ee3b3badfcf098f9f15d982091f7d85dac6642f5e6b0d0bd2f7e1b5f1509510
|
data/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
[](https://rubygems.org/gems/allure-report-publisher)
|
2
|
+
[](https://rubygems.org/gems/allure-report-publisher)
|
2
3
|
[](https://hub.docker.com/r/andrcuns/allure-report-publisher)
|
4
|
+
[](https://hub.docker.com/r/andrcuns/allure-report-publisher)
|
3
5
|

|
4
|
-
[](
|
6
|
+
[](https://storage.googleapis.com/allure-test-reports/allure-report-publisher/refs/heads/main/index.html)
|
5
7
|
[](https://codeclimate.com/github/andrcuns/allure-report-publisher/maintainability)
|
6
8
|
[](https://codeclimate.com/github/andrcuns/allure-report-publisher/test_coverage)
|
7
9
|
|
@@ -43,16 +45,16 @@ Description:
|
|
43
45
|
Generate and upload allure report
|
44
46
|
|
45
47
|
Arguments:
|
46
|
-
TYPE
|
48
|
+
TYPE # REQUIRED Cloud storage type: (s3/gcs)
|
47
49
|
|
48
50
|
Options:
|
49
|
-
--results-glob=VALUE
|
50
|
-
--bucket=VALUE
|
51
|
-
--prefix=VALUE
|
52
|
-
--
|
53
|
-
--[no-]copy-latest
|
54
|
-
--[no-]color
|
55
|
-
--help, -h
|
51
|
+
--results-glob=VALUE # Allure results files glob. Required: true
|
52
|
+
--bucket=VALUE # Bucket name. Required: true
|
53
|
+
--prefix=VALUE # Optional prefix for report path. Required: false
|
54
|
+
--update-pr=VALUE # Add report url to PR via comment or description update. Required: false: (comment/description)
|
55
|
+
--[no-]copy-latest # Keep copy of latest report at base prefix path, default: false
|
56
|
+
--[no-]color # Toggle color output, default: false
|
57
|
+
--help, -h # Print this help
|
56
58
|
|
57
59
|
Examples:
|
58
60
|
allure-report-publisher upload s3 --results-glob='path/to/allure-result/**/*' --bucket=my-bucket
|
@@ -61,11 +63,28 @@ Examples:
|
|
61
63
|
|
62
64
|
### AWS S3
|
63
65
|
|
64
|
-
|
66
|
+
Requires environment variables `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` or credentials file `~/.aws/credentials`
|
65
67
|
|
66
68
|
### Google Cloud Storage
|
67
69
|
|
68
|
-
|
70
|
+
Requires on of the following environment variables.
|
71
|
+
|
72
|
+
credentials.json file location:
|
73
|
+
|
74
|
+
- `STORAGE_CREDENTIALS`
|
75
|
+
- `STORAGE_KEYFILE`
|
76
|
+
- `GOOGLE_CLOUD_CREDENTIALS`
|
77
|
+
- `GOOGLE_CLOUD_KEYFILE`
|
78
|
+
- `GCLOUD_KEYFILE`
|
79
|
+
|
80
|
+
credentials.json contents:
|
81
|
+
|
82
|
+
- `GOOGLE_CLOUD_CREDENTIALS_JSON`
|
83
|
+
- `STORAGE_CREDENTIALS_JSON`
|
84
|
+
- `STORAGE_KEYFILE_JSON`
|
85
|
+
- `GOOGLE_CLOUD_CREDENTIALS_JSON`
|
86
|
+
- `GOOGLE_CLOUD_KEYFILE_JSON`
|
87
|
+
- `GCLOUD_KEYFILE_JSON`
|
69
88
|
|
70
89
|
## Development
|
71
90
|
|
@@ -22,7 +22,7 @@ module Publisher
|
|
22
22
|
option :update_pr,
|
23
23
|
type: :string,
|
24
24
|
values: %w[comment description],
|
25
|
-
desc: "Add report url to PR via comment or description update"
|
25
|
+
desc: "Add report url to PR via comment or description update. Required: false"
|
26
26
|
option :copy_latest,
|
27
27
|
type: :boolean,
|
28
28
|
default: false,
|
@@ -52,7 +52,7 @@ module Publisher
|
|
52
52
|
uploader.report_urls.each { |k, v| log("#{k}: #{v}", :green) }
|
53
53
|
return unless args[:update_pr] && uploader.pr?
|
54
54
|
|
55
|
-
log("
|
55
|
+
log("Adding reports urls")
|
56
56
|
Spinner.spin("updating", exit_on_error: false) { uploader.add_url_to_pr }
|
57
57
|
end
|
58
58
|
|
@@ -99,7 +99,7 @@ module Publisher
|
|
99
99
|
# @param [String] error_message
|
100
100
|
# @return [void]
|
101
101
|
def spinner_error(error_message)
|
102
|
-
colored_message = colorize(error_message, error_color)
|
102
|
+
colored_message = colorize("failed\n#{error_message}", error_color)
|
103
103
|
return spinner.error(colored_message) if tty?
|
104
104
|
|
105
105
|
spinner.stop
|