Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Support Heroku CI
Browse files Browse the repository at this point in the history
  • Loading branch information
meganemura committed Oct 8, 2018
1 parent 3609e13 commit dbae219
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/codecov.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,14 @@ def format(result)
params[:build_url] = "#{ENV['SYSTEM_TEAMFOUNDATIONSERVERURI']}/#{ENV['SYSTEM_TEAMPROJECT']}/_build/results?buildId=#{ENV['BUILD_BUILDID']}"
params[:commit] = ENV['BUILD_SOURCEVERSION']
params[:slug] = ENV['BUILD_REPOSITORY_ID']

# Heroku CI
# ---------
elsif ENV['HEROKU_TEST_RUN_ID']
params[:service] = 'heroku'
params[:branch] = ENV['HEROKU_TEST_RUN_BRANCH']
params[:build] = ENV['HEROKU_TEST_RUN_ID']
params[:commit] = ENV['HEROKU_TEST_RUN_COMMIT_VERSION']
end

if params[:branch] == nil
Expand Down

0 comments on commit dbae219

Please sign in to comment.