Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Amirault <mamirault@gitlab.com>2021-08-13 10:26:00 +0300
committerMarcel Amirault <mamirault@gitlab.com>2021-08-13 10:26:00 +0300
commit7deae23c6f181426b69b2e382178d03213c8aecb (patch)
treee414b034a387c7d5bc502b73418ab3e23ea2755d /.gitlab-ci.yml
parent67fb06877dd096e2ffbb1cb12719156b7573b369 (diff)
Add an MVC test that looks for duplicate redirects
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d34f5908..7a97eddc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -244,6 +244,20 @@ test_internal_links_and_anchors:
- "parallel time bundle exec nanoc check ::: internal_links internal_anchors"
#
+# Check the redirect file for duplicates
+#
+check_duplicate_redirects:
+ image: busybox
+ extends:
+ - .rules_site_tests
+ needs: []
+ before_script: []
+ stage: test
+ script:
+ - grep -Ir " - from:" content/_data/redirects.yaml | sort | uniq -d | tee output.txt
+ - exit $(cat output.txt | wc -l)
+
+#
# Run rspec tests
#
rspec: