From d1a0040e8000cf941367b9443a8cba91aecb99e8 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Fri, 21 Feb 2020 09:27:32 -0800 Subject: [PATCH] Use rust-lang/rust linkchecker on CI. --- azure-pipelines.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 34f7df46067..e54ea3bd505 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -93,6 +93,8 @@ jobs: - job: docs pool: vmImage: ubuntu-16.04 + variables: + TOOLCHAIN: nightly steps: - template: ci/azure-install-rust.yml - bash: | @@ -105,5 +107,11 @@ jobs: displayName: "Build documentation" - bash: cd src/doc && mdbook build --dest-dir ../../target/doc displayName: "Build mdbook documentation" - variables: - TOOLCHAIN: stable + - bash: | + set -e + rustup component add rust-docs + cd src/doc + curl -sSLo linkcheck.sh \ + https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh + sh linkcheck.sh --all cargo + displayName: "Check for broken links"