Method: RunLoop::Environment.gitlab?

Defined in:
lib/run_loop/environment.rb

.gitlab?Boolean

Returns true if running in Teamcity

Checks the value of GITLAB_CI

Returns:

  • (Boolean)


128
129
130
131
# File 'lib/run_loop/environment.rb', line 128

def self.gitlab?
  value = ENV["GITLAB_CI"]
  !!value && value != ''
end