Module: Publisher::Providers

Defined in:
lib/allure_report_publisher/lib/providers/_provider.rb,
lib/allure_report_publisher/lib/providers/github.rb,
lib/allure_report_publisher/lib/providers/gitlab.rb,
lib/allure_report_publisher/lib/providers/info/_base.rb,
lib/allure_report_publisher/lib/providers/info/github.rb,
lib/allure_report_publisher/lib/providers/info/gitlab.rb

Overview

Namespace for providers executing tests

Defined Under Namespace

Modules: Info Classes: Github, Gitlab, Provider

Class Method Summary collapse

Class Method Details

.infoInfo::Base

CI info class

Returns:



17
18
19
20
21
# File 'lib/allure_report_publisher/lib/providers/_provider.rb', line 17

def self.info
  return Info::Github.instance if ENV["GITHUB_WORKFLOW"]

  Info::Gitlab.instance if ENV["GITLAB_CI"]
end

.providerPublisher::Providers::Base

CI provider class

Returns:

  • (Publisher::Providers::Base)


8
9
10
11
12
# File 'lib/allure_report_publisher/lib/providers/_provider.rb', line 8

def self.provider
  return Github if ENV["GITHUB_WORKFLOW"]

  Gitlab if ENV["GITLAB_CI"]
end