Skip to content

Commit e3db998

Browse files
committed
Add Drone to CI Service Data.
1 parent a1f08bb commit e3db998

File tree

1 file changed

+9
-0
lines changed
  • lib/code_climate/test_reporter

1 file changed

+9
-0
lines changed

lib/code_climate/test_reporter/ci.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ def self.service_data
4545
branch: ENV['WERCKER_GIT_BRANCH'],
4646
commit_sha: ENV['WERCKER_GIT_COMMIT']
4747
}
48+
elsif ENV['CI_NAME'] =~ /DRONE/i
49+
{
50+
name: "drone",
51+
build_identifier: ENV['CI_BUILD_NUMBER'],
52+
build_url: ENV['CI_BUILD_URL'],
53+
branch: ENV['CI_BRANCH'],
54+
commit_sha: ENV['CI_BUILD_NUMBER'],
55+
pull_request: ENV['CI_PULL_REQUEST']
56+
}
4857
elsif ENV['CI_NAME'] =~ /codeship/i
4958
{
5059
name: "codeship",

0 commit comments

Comments
 (0)