aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-09-30 13:06:29 +0100
committerGitHub <noreply@github.com>2023-09-30 13:06:29 +0100
commit0e3808ec7fcdff257ebecd0a7ece31930c763738 (patch)
tree697cdc59f6827da87a1422956da57692f1056f94
parent5fd59769063fafbe221c63ae7987f76d1eb8921a (diff)
parent23e831d4bb81ef2b1ef415bcbd17856fd72d210e (diff)
downloadrspamd-0e3808ec7fcdff257ebecd0a7ece31930c763738.tar.gz
rspamd-0e3808ec7fcdff257ebecd0a7ece31930c763738.zip
Merge pull request #4621 from fatalbanana/ci_improvements
Minor improvements for CI
-rw-r--r--.drone.jsonnet20
-rw-r--r--.drone.yml23
2 files changed, 27 insertions, 16 deletions
diff --git a/.drone.jsonnet b/.drone.jsonnet
index a1fae89d1..694a63ef2 100644
--- a/.drone.jsonnet
+++ b/.drone.jsonnet
@@ -3,14 +3,15 @@ local docker_pipeline = {
type: 'docker',
};
+local default_trigger_events_ex_pr = [
+ 'push',
+ 'tag',
+ 'custom',
+];
+
local default_trigger = {
trigger: {
- event: [
- 'push',
- 'tag',
- 'pull_request',
- 'custom',
- ],
+ event: default_trigger_events_ex_pr + ['pull_request'],
},
};
@@ -31,8 +32,8 @@ local coveralls_attribs = {
],
};
-local coveralls_trigger = {
- trigger: coveralls_attribs,
+local close_coveralls_trigger = {
+ trigger: coveralls_attribs { status: ['success', 'failure'] },
};
local coveralls_when = {
@@ -66,6 +67,7 @@ local notify_pipeline = {
},
],
trigger: {
+ event: default_trigger_events_ex_pr,
status: [
'failure',
],
@@ -255,7 +257,7 @@ local close_coveralls = {
},
},
],
-} + coveralls_trigger + docker_pipeline;
+} + close_coveralls_trigger + docker_pipeline;
local noarch_pipeline = {
name: 'default-noarch',
diff --git a/.drone.yml b/.drone.yml
index 365388f5e..74231368a 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -203,8 +203,8 @@
"event": [
"push",
"tag",
- "pull_request",
- "custom"
+ "custom",
+ "pull_request"
]
},
"type": "docker",
@@ -420,8 +420,8 @@
"event": [
"push",
"tag",
- "pull_request",
- "custom"
+ "custom",
+ "pull_request"
]
},
"type": "docker",
@@ -462,6 +462,10 @@
"event": [
"push",
"tag"
+ ],
+ "status": [
+ "success",
+ "failure"
]
},
"type": "docker"
@@ -501,8 +505,8 @@
"event": [
"push",
"tag",
- "pull_request",
- "custom"
+ "custom",
+ "pull_request"
]
},
"type": "docker"
@@ -536,6 +540,11 @@
}
],
"trigger": {
+ "event": [
+ "push",
+ "tag",
+ "custom"
+ ],
"status": [
"failure"
]
@@ -544,7 +553,7 @@
}
---
{
- "hmac": "e6516adb52533ad1bfedc9ebca429c73cda213b08314d62195f713bb3588b22f",
+ "hmac": "3f01ceb14c7dd3ba2f5343fc52216843f72212e1cb25f944c2366d57e78d2b79",
"kind": "signature"
}
...