ci: Check that changelogs don't contain "TBA"
authorBen Gamari <ben@smart-cactus.org>
Mon, 25 Mar 2019 16:57:08 +0000 (12:57 -0400)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Fri, 29 Mar 2019 18:18:20 +0000 (14:18 -0400)
This ensures that the release dates in the library changelogs are
properly set.

.gitlab-ci.yml

index a30c407..9e6b3f6 100644 (file)
@@ -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)
 ############################################################