Skip to content

Commit

Permalink
Add test for empty docs to Justfile (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
twolodzko committed Nov 30, 2023
1 parent e8d1b3e commit c507155
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ check-pacakge:
devtools::check()

# Deploy to CRAN
cran-release: build docs manual check-pacakge
cran-release: build docs manual _check-for-docs check-pacakge
#!/usr/bin/env -S Rscript --no-save --no-restore
devtools::release()

Expand All @@ -32,6 +32,13 @@ docs:
#!/usr/bin/env -S Rscript --no-save --no-restore
devtools::document()

_check-for-docs:
#!/bin/bash
if [ -z "$(ls -A ./man)" ]; then
echo "./man directory is empty"
exit 30
fi

# Build the PDF manual
manual:
#!/usr/bin/env -S Rscript --no-save --no-restore
Expand Down

0 comments on commit c507155

Please sign in to comment.