Skip to content

Commit d5294a1

Browse files
committed
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.
1 parent d5065cc commit d5294a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ fi
6060

6161
# Build the docs if told to (this only works with the nightly toolchain)
6262
if [ "$DO_DOCS" = true ]; then
63-
RUSTDOCFLAGS="--cfg docsrs" cargo rustdoc --features="$FEATURES" -- -D rustdoc::broken-intra-doc-links
63+
RUSTDOCFLAGS="--cfg docsrs" cargo rustdoc --features="$FEATURES" -- -D rustdoc::broken-intra-doc-links -D warnings || exit 1
6464
fi
6565

6666
# Webassembly stuff

0 commit comments

Comments
 (0)