MTES-MCT / parcours-r

Valise pédagogique pour la formation à R
https://mtes-mct.github.io/parcours-r/
25 stars 14 forks source link

Render book maybe #12

Closed RLesur closed 5 years ago

RLesur commented 5 years ago

The aim of this PR is to build each bookdown book only when one of its source files has been modified.
With git, the modification dates of the files cannot be used. So we cannot rely on make.

The _render_book_maybe.R script checks the sha of the last commit for each Rmd file and save it in the bookdown output directory. bookdown::render_book() is executed only if one sha differs (or if there is a new Rmd file).

This script has to be used with Travis cache (this is the case here).

strainel commented 5 years ago

dernier build en 3'45'' !

RLesur commented 5 years ago

Cool ! j'ai pas bossé pour rien ! :smile: