Sha256: f4420df0f3b90d98bfe958843911bd1fe8978767e6171ef94f52cc788fc5e35b

Contents?: true

Size: 569 Bytes

Versions: 13

Compression:

Stored size: 569 Bytes

Contents

#!/usr/bin/env ruby

require "codeclimate-test-reporter"

repo_token = ENV["CODECLIMATE_REPO_TOKEN"]
if repo_token.nil? || repo_token.empty?
  STDERR.puts "Cannot post results: environment variable CODECLIMATE_REPO_TOKEN must be set."
  exit
end

COVERAGE_FILE = ARGV.first || "coverage/.resultset.json"

abort "Coverage results not found" unless File.exist?(COVERAGE_FILE)

begin
  results = JSON.parse(File.read(COVERAGE_FILE))
rescue JSON::ParserError => e
  abort "Error encountered while parsing #{COVERAGE_FILE}: #{e}"
end

CodeClimate::TestReporter.run(results)

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
codeclimate-test-reporter-1.0.9 bin/codeclimate-test-reporter
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/bin/codeclimate-test-reporter
dirwatch-0.0.8 vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/bin/codeclimate-test-reporter
dirwatch-0.0.6 vendor/bundle/ruby/2.3.0/gems/codeclimate-test-reporter-1.0.8/bin/codeclimate-test-reporter
dirwatch-0.0.5 vendor/bundle/ruby/2.3.0/gems/codeclimate-test-reporter-1.0.8/bin/codeclimate-test-reporter
dirwatch-0.0.4 vendor/bundle/ruby/2.3.0/gems/codeclimate-test-reporter-1.0.8/bin/codeclimate-test-reporter
dirwatch-0.0.3 vendor/bundle/ruby/2.3.0/gems/codeclimate-test-reporter-1.0.8/bin/codeclimate-test-reporter
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/codeclimate-test-reporter-1.0.8/bin/codeclimate-test-reporter
codeclimate-test-reporter-1.0.8 bin/codeclimate-test-reporter
codeclimate-test-reporter-1.0.7 bin/codeclimate-test-reporter
codeclimate-test-reporter-1.0.6 bin/codeclimate-test-reporter
codeclimate-test-reporter-1.0.5 bin/codeclimate-test-reporter
codeclimate-test-reporter-1.0.4 bin/codeclimate-test-reporter