mirror of
https://github.com/rust-lang/book.git
synced 2026-05-18 13:30:51 -04:00
Fix the build to fail if spellchecking fails
return: can only `return' from a function or sourced script
This commit is contained in:
10
ci/build.sh
10
ci/build.sh
@@ -8,12 +8,14 @@
|
||||
# option. This file may not be copied, modified, or distributed
|
||||
# except according to those terms.
|
||||
|
||||
set -e
|
||||
|
||||
export PATH=$PATH:/home/travis/.cargo/bin;
|
||||
|
||||
# tests for the second edition
|
||||
|
||||
cd second-edition
|
||||
bash spellcheck.sh list || return 1;
|
||||
mdbook test || return 1;
|
||||
mdbook build || return 1;
|
||||
cargo run --bin lfp src || return 1;
|
||||
bash spellcheck.sh list
|
||||
mdbook test
|
||||
mdbook build
|
||||
cargo run --bin lfp src
|
||||
|
||||
Reference in New Issue
Block a user