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