From d5294a182a20105837c2b6492f0e22a55ad2dd07 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 22 Nov 2022 08:50:27 +1100 Subject: [PATCH] ci: Check rustdocs build Currently we are not failing the docs build in CI if any warnings are generated. Exit the script with error code 1 if docs build throws any warnings. --- contrib/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/test.sh b/contrib/test.sh index 8bc9946..7ff9c0b 100755 --- a/contrib/test.sh +++ b/contrib/test.sh @@ -60,7 +60,7 @@ fi # Build the docs if told to (this only works with the nightly toolchain) if [ "$DO_DOCS" = true ]; then - RUSTDOCFLAGS="--cfg docsrs" cargo rustdoc --features="$FEATURES" -- -D rustdoc::broken-intra-doc-links + RUSTDOCFLAGS="--cfg docsrs" cargo rustdoc --features="$FEATURES" -- -D rustdoc::broken-intra-doc-links -D warnings || exit 1 fi # Webassembly stuff