mirror of
https://github.com/nkbai/book.git
synced 2026-08-25 12:53:30 +08:00
this catches build errors in the bookshelf repo like https://travis-ci.org/rust-embedded/bookshelf/builds/433522599
19 lines
240 B
Bash
19 lines
240 B
Bash
set -euxo pipefail
|
|
|
|
main() {
|
|
mdbook build
|
|
|
|
linkchecker book
|
|
|
|
# now check this as a directory of the bookshelf
|
|
rm -rf shelf
|
|
mkdir shelf
|
|
mv book shelf
|
|
linkchecker shelf
|
|
|
|
mv shelf/book .
|
|
rmdir shelf
|
|
}
|
|
|
|
main
|