mirror of
https://github.com/rust-lang/book.git
synced 2026-12-04 07:14:57 -06:00
Fix the build to fail if spellchecking fails
return: can only `return' from a function or sourced script
This commit is contained in:
+6
-4
@@ -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