Class: PullReview::Coverage::ContinousBuild::Semaphore

Inherits:
Object
  • Object
show all
Defined in:
lib/pullreview/coverage/continuous_build.rb

Overview

Instance Method Summary collapse

Instance Method Details

#enabled?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/pullreview/coverage/continuous_build.rb', line 40

def enabled?
  !!ENV['SEMAPHORE']
end

#infosObject

:nodoc



45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/pullreview/coverage/continuous_build.rb', line 45

def infos
  {
    name: 'semaphore',
    branch: ENV['BRANCH_NAME'],
    build_id: ENV['SEMAPHORE_BUILD_NUMBER'],
    build_url: build_url(
                ENV['SEMAPHORE_REPO_SLUG'],
                ENV['BRANCH_NAME'],
                ENV['SEMAPHORE_BUILD_NUMBER']
              )
  }
end