allure-report-publisher 0.3.3 → 0.4.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afcdc88e8485bd055209a9f491cb198901c5cb446e570ee1ab8c3cc2432011ba
|
4
|
+
data.tar.gz: ed2c0fa61421286a0b4608c5f5797992523666a3e198e27ad18e535452fc43f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 770f766f2c0bc61de3ad9fe98adfd743e66bfe12a0db4ff32664cf8290a4a45d81c248ffe766d909547f92354534e286e2b2f75f64dd21297b2024fd382ff43c
|
7
|
+
data.tar.gz: 14412b38a85ca375806391e21d77952a893896091e07a7f90c5569a09574614f934960e257ebc52610d21dff8f61c819bbb907c9ad25f59c03666ffc66761474
|
data/README.md
CHANGED
@@ -66,6 +66,12 @@ Multiple cloud storage providers are supported
|
|
66
66
|
|
67
67
|
Requires environment variables `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` or credentials file `~/.aws/credentials`
|
68
68
|
|
69
|
+
Additional configuration:
|
70
|
+
|
71
|
+
- `AWS_REGION`: configure s3 region, default: `us-east-1`
|
72
|
+
- `AWS_FORCE_PATH_STYLE`: when set to true, the bucket name is always left in the request URI and never moved to the host as a sub-domain, default: `false`
|
73
|
+
- `AWS_ENDPOINT`: custom s3 endpoint when used with other s3 compatible storage
|
74
|
+
|
69
75
|
## Google Cloud Storage
|
70
76
|
|
71
77
|
Requires on of the following environment variables.
|
@@ -108,7 +108,7 @@ module Publisher
|
|
108
108
|
#
|
109
109
|
# @return [String]
|
110
110
|
def project
|
111
|
-
@project ||= allure_project || env("CI_PROJECT_PATH")
|
111
|
+
@project ||= allure_project || env("CI_MERGE_REQUEST_PROJECT_PATH") || env("CI_PROJECT_PATH")
|
112
112
|
end
|
113
113
|
|
114
114
|
# Merge request iid
|
@@ -11,7 +11,7 @@ module Publisher
|
|
11
11
|
#
|
12
12
|
# @return [Aws::S3::Client]
|
13
13
|
def client
|
14
|
-
@client ||= Aws::S3::Client.new(
|
14
|
+
@client ||= Aws::S3::Client.new(client_args)
|
15
15
|
rescue Aws::Sigv4::Errors::MissingCredentialsError
|
16
16
|
raise(<<~MSG.strip)
|
17
17
|
missing aws credentials, provide credentials with one of the following options:
|
@@ -20,6 +20,14 @@ module Publisher
|
|
20
20
|
MSG
|
21
21
|
end
|
22
22
|
|
23
|
+
def client_args
|
24
|
+
@client_args ||= {
|
25
|
+
region: ENV["AWS_REGION"] || "us-east-1",
|
26
|
+
force_path_style: ENV["AWS_FORCE_PATH_STYLE"] == "true",
|
27
|
+
endpoint: ENV["AWS_ENDPOINT"]
|
28
|
+
}.compact
|
29
|
+
end
|
30
|
+
|
23
31
|
# Report url
|
24
32
|
#
|
25
33
|
# @return [String]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: allure-report-publisher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrejs Cunskis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-s3
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 1.93.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.
|
22
|
+
version: 1.106.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 1.93.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 1.
|
32
|
+
version: 1.106.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: dry-cli
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
196
|
- !ruby/object:Gem::Version
|
197
197
|
version: '0'
|
198
198
|
requirements: []
|
199
|
-
rubygems_version: 3.2.
|
199
|
+
rubygems_version: 3.2.22
|
200
200
|
signing_key:
|
201
201
|
specification_version: 4
|
202
202
|
summary: Allure report uploader
|