class Xccoveralls::Runner
Attributes
coveralls_configuration[R]
repo_token[R]
xccov[R]
Public Class Methods
new( repo_token: nil, derived_data_path: nil, source_path: nil, ignorefile_path: nil )
click to toggle source
# File lib/xccoveralls/runner.rb, line 11 def initialize( repo_token: nil, derived_data_path: nil, source_path: nil, ignorefile_path: nil ) options = { derived_data_path: derived_data_path, source_path: source_path, ignorefile_path: ignorefile_path } @xccov = Xccoveralls::Xccov.new(options) @repo_token = repo_token FastlaneCore::PrintTable.print_values( config: options, title: "Summary for #{Xccoveralls::NAME} #{Xccoveralls::VERSION}" ) end
Public Instance Methods
run!()
click to toggle source
# File lib/xccoveralls/runner.rb, line 28 def run! org_repo_token = ENV['COVERALLS_REPO_TOKEN'] ENV['COVERALLS_REPO_TOKEN'] = repo_token || org_repo_token @coveralls_configuration = Coveralls::Configuration.configuration Coveralls::API.post_json 'jobs', xccov.to_json ENV['COVERALLS_REPO_TOKEN'] = org_repo_token end