File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/CodeClimate/Bundle/TestReporterBundle/Entity Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ public function toArray()
33
33
return $ this ->buildboxProperties ();
34
34
}
35
35
36
+ if (isset ($ _SERVER ["WERCKER " ])) {
37
+ return $ this ->werckerProperties ();
38
+ }
39
+
36
40
return array ();
37
41
}
38
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
}
You can’t perform that action at this time.
0 commit comments