allure-report-publisher 1.8.1 → 2.0.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: 28ab75e7680995e9117eb144cb3091561c5149f2fca4e93b89ed7dc06bbbf5fb
4
- data.tar.gz: ad1ef5249b916969807efb60619261ba3e24e2063d5914204fe17ded16abb928
3
+ metadata.gz: 38bbaf350b80722c5f23f0abc4ee8e4d6de18559041859d47235bfc1df9afa76
4
+ data.tar.gz: d96fed3494c775fb3bc2ead62ebf8764e5d7374071c398663d987ef75eaf3a78
5
5
  SHA512:
6
- metadata.gz: fada5ee179171b07a3387bd56abdff395413824d8819210c176e7b683fbd8caf3fab58d367c1ec33be89353324395ed6230ad3f763155f4d73a5b2ba95196f47
7
- data.tar.gz: bc06329051f0d2a8317202e9e91b8438225e905beab68ef3ea735547e1c4167b67fe05e3bcb19eca82d577b4ec2d67e54af2d403b09b5e8f43f560f5c1738698
6
+ metadata.gz: b040c46dc3a9d10de59a104e0146c8be976c7c3ac50799a67c35b449eb16d341bb3fb72c2627d2ec77eb69b317b563e8509cf529e54bedc0a1a358539b50ad96
7
+ data.tar.gz: 7043096ee2e3ff7ab81cd58259580f866533ce6e63e9d371772c93a4d30ccf34df06d82eb9f692e4ec7382640c769656e809439e8169bb52781743d934224fd0
data/README.md CHANGED
@@ -5,7 +5,6 @@
5
5
  ![Workflow status](https://github.com/andrcuns/allure-report-publisher/workflows/Test/badge.svg)
6
6
  [![Maintainability](https://api.codeclimate.com/v1/badges/210eaa4f74588fb08313/maintainability)](https://codeclimate.com/github/andrcuns/allure-report-publisher/maintainability)
7
7
  [![Test Coverage](https://api.codeclimate.com/v1/badges/210eaa4f74588fb08313/test_coverage)](https://codeclimate.com/github/andrcuns/allure-report-publisher/test_coverage)
8
- [![Known Vulnerabilities](https://snyk.io/test/github/andrcuns/allure-report-publisher/badge.svg)](https://snyk.io/test/github/andrcuns/allure-report-publisher)
9
8
  [![Test Report](https://img.shields.io/badge/report-allure-blue.svg)](https://storage.googleapis.com/allure-test-reports/allure-report-publisher/refs/heads/main/index.html)
10
9
 
11
10
  Upload your report to a file storage of your choice.
@@ -65,7 +64,7 @@ Examples:
65
64
 
66
65
  ## Environment variables
67
66
 
68
- All named options can be configured via environment variables. Environment variables are prefixed with `ALLURE_REPORT_` and uppercased.
67
+ All named options can be configured via environment variables. Environment variables are prefixed with `ALLURE_` and uppercased.
69
68
 
70
69
  Example: `--results-glob` can be configured via `ALLURE_REPORT_RESULTS_GLOB`
71
70
 
@@ -188,6 +187,10 @@ If reporter is executed with options `--update-pr=comment` and `--unresolved-dis
188
187
 
189
188
  - `ALLURE_FAILURE_ALERT_COMMENT`: comment added to create unresolved discussion note, default: `There are some test failures that need attention`
190
189
 
190
+ ### CI/CD catalog resource
191
+
192
+ [allure-report-publisher CI/CD catalog resource](https://gitlab.com/andrcuns/allure-report-publisher) can be used to easily integrate report publishing in to Gitlab CI pipelines.
193
+
191
194
  # Development
192
195
 
193
196
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -5,6 +5,8 @@ module Dry
5
5
  module Parser
6
6
  class InvalidEnvValue < StandardError; end
7
7
 
8
+ ENV_VAR_PREFIX = "ALLURE_".freeze
9
+
8
10
  class << self
9
11
  def call(command, arguments, prog_name)
10
12
  original_arguments = arguments.dup
@@ -45,7 +47,7 @@ module Dry
45
47
  end
46
48
 
47
49
  def option_from_env(option)
48
- name = "ALLURE_REPORT_#{option.name.to_s.upcase}"
50
+ name = "#{ENV_VAR_PREFIX}#{option.name.to_s.upcase}"
49
51
  value = ENV[name]
50
52
  return if value.nil? || value.empty?
51
53
  return if option.boolean? && !%w[true false].include?(value)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Publisher
4
- VERSION = "1.8.1"
4
+ VERSION = "2.0.0"
5
5
  end
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: 1.8.1
4
+ version: 2.0.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: 2023-11-02 00:00:00.000000000 Z
11
+ date: 2023-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3