We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a51e54 commit c104039Copy full SHA for c104039
src/CodeClimate/Bundle/TestReporterBundle/Entity/CiInfo.php
@@ -33,6 +33,10 @@ public function toArray()
33
return $this->buildboxProperties();
34
}
35
36
+ if (isset($_SERVER["WERCKER"])) {
37
+ return $this->werckerProperties();
38
+ }
39
+
40
return array();
41
42
@@ -107,4 +111,15 @@ protected function buildboxProperties()
107
111
"pull_request" => $_SERVER["BUILDBOX_PULL_REQUEST"]
108
112
);
109
113
114
115
+ protected function werckerProperties()
116
+ {
117
+ return array(
118
+ "name" => "wercker",
119
+ "build_identifier" => $_SERVER["WERCKER_BUILD_ID"],
120
+ "build_url" => $_SERVER["WERCKER_BUILD_URL"],
121
+ "branch" => $_SERVER["WERCKER_GIT_BRANCH"],
122
+ "commit_sha" => $_SERVER["WERCKER_GIT_COMMIT"]
123
+ );
124
110
125
0 commit comments