summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorHaelwenn <contact+git.pleroma.social@hacktivis.me>2023-04-05 07:53:11 +0000
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>2023-04-05 07:53:11 +0000
commitb7a831ca55415424702968b95f6838d238dc0001 (patch)
tree90778b2d067143eb83a7ebd67088a8cb51568dd3 /.gitlab-ci.yml
parent78a6f56295998e501e2f87d13a0a3c3917b4d70a (diff)
parent686c3e03bd6c13e732e95d2f81cc4bcd0acf015a (diff)
Merge branch 'from/upstream-develop/tusooa/require-changelog' into 'develop'
require changelog See merge request pleroma/pleroma!3739
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8b0381d11..2e4897aa0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,6 +8,13 @@ variables: &global_variables
DB_PORT: 5432
MIX_ENV: test
+workflow:
+ rules:
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event"
+ - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
+ when: never
+ - if: $CI_COMMIT_BRANCH
+
cache: &global_cache_policy
key:
files:
@@ -17,6 +24,7 @@ cache: &global_cache_policy
- _build
stages:
+ - check-changelog
- build
- test
- benchmark
@@ -32,6 +40,17 @@ before_script:
after_script:
- rm -rf _build/*/lib/pleroma
+check-changelog:
+ stage: check-changelog
+ image: alpine
+ rules:
+ - if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop"
+ before_script: ''
+ after_script: ''
+ cache: {}
+ script:
+ - sh ./tools/check-changelog
+
build:
stage: build
only: