Class: TestDots::CIAdapters::TravisCI

Inherits:
Base
  • Object
show all
Defined in:
lib/test_dots/ci_adapters/travis_ci.rb

Instance Method Summary collapse

Methods inherited from Base

#url

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/test_dots/ci_adapters/travis_ci.rb', line 4

def active?
  ENV.has_key?('TRAVIS')
end

#branchObject



8
9
10
# File 'lib/test_dots/ci_adapters/travis_ci.rb', line 8

def branch
  ENV['TRAVIS_BRANCH']
end

#buildObject



12
13
14
# File 'lib/test_dots/ci_adapters/travis_ci.rb', line 12

def build
  ENV['TRAVIS_BUILD_NUMBER']
end