Skip to content

Commit 9de6cc6

Browse files
committed
Support GitLab CI
1 parent b11f8ff commit 9de6cc6

File tree

1 file changed

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

1 file changed

+7
-0
lines changed

lib/code_climate/test_reporter/ci.rb

+7
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ def self.service_data(env = ENV)
8888
branch: env['BUILDBOX_BRANCH'],
8989
commit_sha: env['BUILDBOX_COMMIT']
9090
}
91+
elsif env['GITLAB_CI']
92+
{
93+
name: "gitlab-ci",
94+
build_identifier: env['CI_BUILD_ID'],
95+
branch: env['CI_BUILD_REF_NAME'],
96+
commit_sha: env['CI_BUILD_REF']
97+
}
9198
else
9299
{}
93100
end

0 commit comments

Comments
 (0)