File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
src/CodeClimate/Bundle/TestReporterBundle/Entity Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ public function toArray()
29
29
return $ this ->codeshipProperties ();
30
30
}
31
31
32
+ if (isset ($ _SERVER ["BUILDBOX " ])) {
33
+ return $ this ->buildboxProperties ();
34
+ }
35
+
32
36
return array ();
33
37
}
34
38
@@ -91,4 +95,16 @@ protected function codeshipProperties()
91
95
"commit_sha " => $ _SERVER ["CI_COMMIT_ID " ]
92
96
);
93
97
}
98
+
99
+ protected function buildboxProperties ()
100
+ {
101
+ return array (
102
+ "name " => "buildbox " ,
103
+ "build_identifier " => $ _SERVER ["BUILDBOX_BUILD_ID " ],
104
+ "build_url " => $ _SERVER ["BUILDBOX_BUILD_URL " ],
105
+ "branch " => $ _SERVER ["BUILDBOX_BRANCH " ],
106
+ "commit_sha " => $ _SERVER ["BUILDBOX_COMMIT " ],
107
+ "pull_request " => $ _SERVER ["BUILDBOX_PULL_REQUEST " ]
108
+ );
109
+ }
94
110
}
You can’t perform that action at this time.
0 commit comments