Skip to content

Instantly share code, notes, and snippets.

@quantizor
Created May 31, 2016 03:33
Show Gist options
  • Save quantizor/ce91df5d7f3c82ec4020d551ece4d1f2 to your computer and use it in GitHub Desktop.
Save quantizor/ce91df5d7f3c82ec4020d551ece4d1f2 to your computer and use it in GitHub Desktop.
Part 2 of 2: Send the assembled JSON payload to Coveralls
require 'coveralls'
# Craft the payload...
payload = {
:service_job_id => ENV['TRAVIS_JOB_ID'],
:service_name => 'travis-pro',
:source_files => source_files,
}
Coveralls::API.post_json('jobs', payload)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment