]> git.proxmox.com Git - rustc.git/blob - src/doc/book/ci/build.sh
New upstream version 1.44.1+dfsg1
[rustc.git] / src / doc / book / ci / build.sh
1 #!/bin/bash
2
3 set -e
4
5 export PATH=$PATH:/home/travis/.cargo/bin;
6
7 echo 'Spellchecking...'
8 bash ci/spellcheck.sh list
9 echo 'Testing...'
10 mdbook test
11 echo 'Building...'
12 mdbook build
13 echo 'Linting for local file paths...'
14 cargo run --bin lfp src
15 echo 'Validating references'
16 for file in src/*.md ; do
17 echo Checking references in $file
18 cargo run --quiet --bin link2print < $file > /dev/null
19 done
20 echo 'Checking for broken links...'
21 rustup toolchain install nightly -c rust-docs --profile=minimal
22 curl -sSLo linkcheck.sh \
23 https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
24 # Cannot use --all here because of the generated redirect pages aren't available.
25 sh linkcheck.sh book