]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
have CI call util/check-categories.sh
authorMark Andrews <marka@isc.org>
Mon, 11 May 2020 00:57:44 +0000 (10:57 +1000)
committerMark Andrews <marka@isc.org>
Mon, 11 May 2020 00:57:44 +0000 (10:57 +1000)
.gitlab-ci.yml
util/check-categories.sh

index b319a131fec2680eec04196e29b4b591aabcd416..a1f8e1b4606e0b130c04f15d35ab2e1aef57c69f 100644 (file)
@@ -397,6 +397,7 @@ misc:
     - xmllint --noout --nonet `git ls-files '*.xml' '*.docbook'`
     - xmllint --noout --nonet --html `git ls-files '*.html'`
     - sh util/check-win32util-configure
+    - sh util/check-categories.sh
   needs: []
   artifacts:
     paths:
index dff066796d5d263d8b050df2ca775b442ec7e79e..ab862ce353e3cbec2d245e890c6524a73652714b 100644 (file)
@@ -13,6 +13,7 @@ sed -e 's/.*LOGCATEGORY_\([A-Z_]*\).*/\1/' -e 's/^RRL$/rate-limit/' |
 tr '[A-Z]' '[a-z]' |
 tr _ - | sed 's/^tat$/trust-anchor-telemetry/' | sort -u`
 list2=`sed -n 's;.*<para><command>\(.*\)</command></para>;\1;p' doc/arm/logging-categories.xml | tr '[A-Z]' '[a-z]' | sort -u`
+status=0
 for i in $list1
 do
        ok=no
@@ -26,6 +27,7 @@ do
        if test $ok = no
        then
                echo "$i missing from documentation."
+               status=1
        fi
 done
 for i in $list2
@@ -41,5 +43,7 @@ do
        if test $ok = no
        then
                echo "$i not in code."
+               status=1
        fi
 done
+exit $status