Method: Coveralls#should_run?
- Defined in:
- lib/coveralls.rb
#should_run? ⇒ Boolean
79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/coveralls.rb', line 79 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 |