rstudio / bookdown-demo

A minimal book example using bookdown
https://bookdown.org/yihui/bookdown-demo
Creative Commons Zero v1.0 Universal
511 stars 1.34k forks source link

Exit _build.sh with error when any of it's subtasks fail #34

Closed qurben closed 6 years ago

qurben commented 6 years ago

set -ev prints every command executed and fails the entire script when any command fails. This prevents false-positive cases where only one of the tasks fails. For instance when there are LaTeX specific errors which only cause the bookdown::pdf_book script to fail. In this case Travis still marks a pull request as if the build passes.

Inventitech commented 6 years ago

Awesome :+1: