From b79d9ee5a8a657d272c55ca13616f529bd611981 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 7 Nov 2022 15:24:27 +0100 Subject: [PATCH] docs: add linkcheck job MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This should make it easier to keep links in our docs up-to-date. But, because links can die behind our backs, we can't really enable this all over the place, or we'll risk blocking merge-requests due to unrelated changes. So let's just make this a periodic job on the main branch instead. Reviewed-by: Michel Dänzer Reviewed-by: Eric Engestrom Part-of: --- .gitlab-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a073289729f..09512e2a092 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -183,6 +183,18 @@ test-docs-mr: when: on_success # Other cases default to never +lincheck-docs: + extends: .docs-base + # Cancel job if a newer commit is pushed to the same branch + interruptible: true + stage: deploy + needs: [] + rules: + - !reference [.scheduled_pipeline-rules, rules] + allow_failure: true + variables: + BUILDER: linkcheck + # When to automatically run the CI for build jobs .build-rules: rules: