module Slather::CoverageService::Coveralls
def coveralls_coverage_data
def coveralls_coverage_data if ci_service == :travis_ci if travis_job_id { :service_job_id => travis_job_id, :service_name => "travis-ci", :source_files => coverage_files.map(&:as_json) }.to_json else raise StandardError, "Environment variable `TRAVIS_JOB_ID` not set. Is this running on a travis build?" end else raise StandardError, "No support for ci named #{ci_service}" end end