Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 1 addition & 51 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -51,10 +50,6 @@ dir = {
}

config = {
"rocketchat": {
"channel": "builds",
"from_secret": "rocketchat_talk_webhook",
},
"branches": [
"master",
],
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -198,11 +190,6 @@ def afterCoveragePipelines(ctx):
sonarAnalysis(ctx),
]

def afterPipelines(ctx):
return [
notify(),
]

def codestyle(ctx):
pipelines = []

Expand Down Expand Up @@ -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"):
Expand Down