From dfda7b849d86ff9308e501b042afdc5ce6b68381 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Fri, 17 Mar 2017 10:02:35 -0400 Subject: [PATCH] Fix the build to fail if spellchecking fails return: can only `return' from a function or sourced script --- ci/build.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ci/build.sh b/ci/build.sh index c0c563e40..c8e082b52 100644 --- a/ci/build.sh +++ b/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