File tree 2 files changed +28
-1
lines changed
2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
script :
10
10
- export PATH=$PATH:/home/travis/.cargo/bin && mdbook test
11
- - cd stable-check && cargo run -- ../src
11
+ - (cd stable-check && cargo run -- ../src)
12
+ - tests/linkcheck.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -e
4
+
5
+ if [ ! -f book.toml ]
6
+ then
7
+ echo " Run command in root directory with book.toml"
8
+ exit 1
9
+ fi
10
+
11
+ rm -rf tests/linkcheck tests/linkchecker
12
+
13
+ mkdir tests/linkchecker
14
+ curl -o tests/linkchecker/Cargo.toml https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/Cargo.toml
15
+ curl -o tests/linkchecker/main.rs https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/main.rs
16
+
17
+ mdbook build
18
+
19
+ cp -R $( rustc --print sysroot) /share/doc/rust/html tests/linkcheck
20
+ rm -rf tests/linkcheck/reference
21
+ cp -R book tests/linkcheck/reference
22
+
23
+ cargo run --manifest-path=tests/linkchecker/Cargo.toml -- tests/linkcheck/reference
24
+
25
+ rm -rf tests/linkcheck tests/linkchecker
26
+ echo " Linkcheck completed successfully!"
You can’t perform that action at this time.
0 commit comments