summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a30c407d03..9e6b3f62cf 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -89,6 +89,32 @@ lint-submods-mr:
refs:
- merge_requests
+.lint-changelogs:
+ stage: lint
+ image: "registry.gitlab.haskell.org/ghc/ci-images/linters:$DOCKER_REV"
+ dependencies: []
+ tags:
+ - lint
+ script:
+ - |
+ grep TBA libraries/*/changelog.md && (
+ echo "Error: Found \"TBA\"s in changelogs."
+ exit 1
+ )
+
+lint-changelogs:
+ extends: .lint-changelogs
+ allow_failure: true
+ only:
+ refs:
+ - /ghc-[0-9]+\.[0-9]+/
+
+lint-release-changelogs:
+ extends: .lint-changelogs
+ only:
+ - tags
+
+
############################################################
# Validation via Pipelines (hadrian)
############################################################