diff --git a/.travis.yml b/.travis.yml index e9b14eabd37..83dc312b8a3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -69,7 +69,8 @@ install: # Append output to hugo.log file to print at the end of the travis job # (see https://stackoverflow.com/questions/418896/how-to-redirect-output-to-a-file-and-stdout) - - travis_wait 15 bash -c './node_modules/.bin/hugo --environment $TRAVIS_BRANCH 2>&1 | tee -a $TRAVIS_BUILD_DIR/hugo.log' + # bash -o pipefail ensures Hugo's non-zero exit code is not masked by tee inside the subprocess + - travis_wait 15 bash -o pipefail -c './node_modules/.bin/hugo --environment $TRAVIS_BRANCH 2>&1 | tee -a $TRAVIS_BUILD_DIR/hugo.log' # normal htmltest takes too much memory - using a modified version which strips