module Coveralls

def should_run?

def should_run?
  # Fail early if we're not on a CI
  unless will_run?
    Coveralls::Output.puts("[Coveralls] Outside the CI environment, not sending data.", :color => "yellow")
    return false
  end
  if ENV["COVERALLS_RUN_LOCALLY"] || (defined?(@run_locally) && @run_locally)
    Coveralls::Output.puts("[Coveralls] Creating a new job on Coveralls from local coverage results.", :color => "cyan")
  end
  true
end