Sha256: 01eb1e591cc67eddcc6a4a929588427563379acd74bc3947c4c527beac51f6d0

Contents?: true

Size: 678 Bytes

Versions: 19

Compression:

Stored size: 678 Bytes

Contents

#!/usr/bin/env ruby

require "codeclimate-test-reporter"
require "tmpdir"

if ENV["CODECLIMATE_REPO_TOKEN"]
  tmpdir = Dir.tmpdir
  puts "Searching #{tmpdir} for files to POST."
  coverage_report_files = Dir.glob("#{tmpdir}/codeclimate-test-coverage-*")
  if coverage_report_files.any?
    puts "Found: "
    puts coverage_report_files.join("\n")
    client = CodeClimate::TestReporter::Client.new
    print "Sending reports to #{client.host}..."
    client.batch_post_results(coverage_report_files)
    puts "done."
  else
    puts "No files found to POST."
  end
else
  $stderr.puts "Cannot batch post - environment variable CODECLIMATE_REPO_TOKEN must be set."
  exit(1)
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
codeclimate-test-reporter-1.0.9 bin/cc-tddium-post-worker
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/bin/cc-tddium-post-worker
dirwatch-0.0.8 vendor/bundle/ruby/2.5.0/gems/codeclimate-test-reporter-1.0.8/bin/cc-tddium-post-worker
dirwatch-0.0.6 vendor/bundle/ruby/2.3.0/gems/codeclimate-test-reporter-1.0.8/bin/cc-tddium-post-worker
dirwatch-0.0.5 vendor/bundle/ruby/2.3.0/gems/codeclimate-test-reporter-1.0.8/bin/cc-tddium-post-worker
dirwatch-0.0.4 vendor/bundle/ruby/2.3.0/gems/codeclimate-test-reporter-1.0.8/bin/cc-tddium-post-worker
dirwatch-0.0.3 vendor/bundle/ruby/2.3.0/gems/codeclimate-test-reporter-1.0.8/bin/cc-tddium-post-worker
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/codeclimate-test-reporter-1.0.8/bin/cc-tddium-post-worker
codeclimate-test-reporter-1.0.8 bin/cc-tddium-post-worker
codeclimate-test-reporter-1.0.7 bin/cc-tddium-post-worker
codeclimate-test-reporter-1.0.6 bin/cc-tddium-post-worker
codeclimate-test-reporter-1.0.5 bin/cc-tddium-post-worker
codeclimate-test-reporter-1.0.4 bin/cc-tddium-post-worker
codeclimate-test-reporter-1.0.3 bin/cc-tddium-post-worker
codeclimate-test-reporter-1.0.2 bin/cc-tddium-post-worker
codeclimate-test-reporter-1.0.1 bin/cc-tddium-post-worker
codeclimate-test-reporter-1.0.0 bin/cc-tddium-post-worker
codeclimate-test-reporter-1.0.0.pre.rc2 bin/cc-tddium-post-worker
codeclimate-test-reporter-1.0.0.pre.rc1 bin/cc-tddium-post-worker