diff --git a/.travis.yml b/.travis.yml index 2c04ac090d..e831efea43 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,6 +33,15 @@ env: after_success: - Rscript -e 'covr::codecov()' +after_script: + # make sure the documents are regenerated + - Rscript -e 'devtools::document()' + - | + if [ -n "$(git diff --name-only man)" ]; then + echo "Did you forget to regenerate the documents? (This error might be ignorable)." + exit 1 + fi + addons: apt: sources: