summaryrefslogtreecommitdiffstats
path: root/build/signed-off-checker.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-09-28 16:45:02 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-09-28 21:08:17 +0200
commitb85b6abda86b3dc238bcba9475ef73f142dc075b (patch)
tree99e0427e8efe9fbbc12c6824a005b8ae0dc2f268 /build/signed-off-checker.php
parent19f94ac5f9d08b958602ab07848a5c22d183b027 (diff)
downloadnextcloud-server-b85b6abda86b3dc238bcba9475ef73f142dc075b.tar.gz
nextcloud-server-b85b6abda86b3dc238bcba9475ef73f142dc075b.zip
Add codecov
Allows coverage tracking using codecov Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'build/signed-off-checker.php')
-rw-r--r--build/signed-off-checker.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/signed-off-checker.php b/build/signed-off-checker.php
index d4aaf044481..49890cb0f3d 100644
--- a/build/signed-off-checker.php
+++ b/build/signed-off-checker.php
@@ -30,6 +30,12 @@ $baseDir = __DIR__ . '/../';
$pullRequestNumber = getenv('DRONE_PULL_REQUEST');
$repoOwner = getenv('DRONE_REPO_OWNER');
$repoName = getenv('DRONE_REPO_NAME');
+$droneEvent = getenv('DRONE_BUILD_EVENT');
+
+if(is_string($droneEvent) && $droneEvent === 'push') {
+ echo("Push event - no signed-off check required.\n");
+ exit(0);
+}
if(!is_string($pullRequestNumber) || $pullRequestNumber === '') {
echo("The environment variable DRONE_PULL_REQUEST has no proper value.\n");