Skip to content

Commit

Permalink
Auto merge of #7913 - ehuss:linkcheck-script, r=alexcrichton
Browse files Browse the repository at this point in the history
Use rust-lang/rust linkchecker on CI.

This can help ensure submodule updates go smoothly.
  • Loading branch information
bors committed Feb 21, 2020
2 parents abc8463 + d1a0040 commit 1f5fbca
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ jobs:
- job: docs
pool:
vmImage: ubuntu-16.04
variables:
TOOLCHAIN: nightly
steps:
- template: ci/azure-install-rust.yml
- bash: |
Expand All @@ -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"

0 comments on commit 1f5fbca

Please sign in to comment.