Method: RunLoop::Environment.travis?

Defined in:
lib/run_loop/environment.rb

.travis?Boolean

Returns true if running in Travis CI

Checks the value of TRAVIS

Returns:

  • (Boolean)


104
105
106
107
# File 'lib/run_loop/environment.rb', line 104

def self.travis?
  value = ENV["TRAVIS"]
  !!value && value != ''
end