Fix the build to fail if spellchecking fails

return: can only `return' from a function or sourced script
This commit is contained in:
Carol (Nichols || Goulding)
2017-03-17 10:02:35 -04:00
parent 04aa3a45eb
commit dfda7b849d

View File

@@ -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