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