summaryrefslogtreecommitdiffhomepage
path: root/codeclimate/export-coverage.rb
blob: 7a63acd1f110b058c518e047414ff306617eb60a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require_relative 'env'


class ReportCoverage
  class <<self
    def format
      puts
      puts 'Formatting Coverage...'
      puts `./codeclimate/test-reporter-latest-linux-amd64 format-coverage -t simplecov`
    end

    def upload
      puts `./codeclimate/test-reporter-latest-linux-amd64 upload-coverage --id #{ENV['CC_TEST_REPORTER_ID']}`
    end
  end
end