diff --git a/.drone.star b/.drone.star index 6d30839..981e385 100644 --- a/.drone.star +++ b/.drone.star @@ -17,7 +17,6 @@ OSIXIA_OPEN_LDAP = "osixia/openldap" PLUGINS_GITHUB_RELEASE = "plugins/github-release" PLUGINS_S3 = "plugins/s3" PLUGINS_S3_CACHE = "plugins/s3-cache:1" -PLUGINS_SLACK = "plugins/slack:1" SELENIUM_STANDALONE_CHROME_DEBUG = "selenium/standalone-chrome-debug:3.141.59-oxygen" SELENIUM_STANDALONE_FIREFOX_DEBUG = "selenium/standalone-firefox-debug:3.8.1" SONARSOURCE_SONAR_SCANNER_CLI = "sonarsource/sonar-scanner-cli" @@ -51,10 +50,6 @@ dir = { } config = { - "rocketchat": { - "channel": "builds", - "from_secret": "rocketchat_talk_webhook", - }, "branches": [ "master", ], @@ -157,10 +152,7 @@ def main(ctx): afterCoverageTests = afterCoveragePipelines(ctx) dependsOn(coverageTests, afterCoverageTests) - after = afterPipelines(ctx) - dependsOn(afterCoverageTests + nonCoverageTests + stages, after) - - return before + coverageTests + afterCoverageTests + nonCoverageTests + stages + after + return before + coverageTests + afterCoverageTests + nonCoverageTests + stages def beforePipelines(ctx): return validateDailyTarballBuild() + codestyle(ctx) + jscodestyle(ctx) + phpstan(ctx) + phan(ctx) + phplint(ctx) + checkStarlark() @@ -198,11 +190,6 @@ def afterCoveragePipelines(ctx): sonarAnalysis(ctx), ] -def afterPipelines(ctx): - return [ - notify(), - ] - def codestyle(ctx): pipelines = [] @@ -1322,43 +1309,6 @@ def sonarAnalysis(ctx, phpVersion = DEFAULT_PHP_VERSION): return result -def notify(): - result = { - "kind": "pipeline", - "type": "docker", - "name": "chat-notifications", - "clone": { - "disable": True, - }, - "steps": [ - { - "name": "notify-rocketchat", - "image": PLUGINS_SLACK, - "settings": { - "webhook": { - "from_secret": config["rocketchat"]["from_secret"], - }, - "channel": config["rocketchat"]["channel"], - }, - }, - ], - "depends_on": [], - "trigger": { - "ref": [ - "refs/tags/**", - ], - "status": [ - "success", - "failure", - ], - }, - } - - for branch in config["branches"]: - result["trigger"]["ref"].append("refs/heads/%s" % branch) - - return result - def databaseService(db): dbName = getDbName(db) if (dbName == "mariadb") or (dbName == "mysql"):