Skip to content

Commit

Permalink
make check-cli: more tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikBengtsson committed Jan 9, 2024
1 parent 66b59bc commit 290ffc8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions bash/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
SHELL=bash

test: shellcheck check
test: check

check: check-cli
check: shellcheck check-cli

assert_bats:
command -v "bats"
echo "BATS_SUPPORT_HOME=$${BATS_SUPPORT_HOME:?}"
echo "BATS_ASSERT_HOME=$${BATS_ASSERT_HOME:?}"

check-cli:
check-cli: assert_bats
(cd tests/; PATH="..:$${PATH}" PORT4ME_CLI_CALL="port4me" bats *.bats)

shellcheck:
Expand Down
4 changes: 2 additions & 2 deletions r/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ assert_bats:
echo "BATS_SUPPORT_HOME=$${BATS_SUPPORT_HOME:?}"
echo "BATS_ASSERT_HOME=$${BATS_ASSERT_HOME:?}"

check-cli: assert_bats shellcheck
(cd tests/; PORT4ME_CLI_CALL="Rscript -e port4me::port4me" bats *.bats)
check-cli: assert_bats
(cd tests/; PORT4ME_CLI_CALL="Rscript -e port4me::port4me --args" bats *.bats)

incl/OVERVIEW.md: vignettes/port4me-overview.Rmd
Rscript -e "rmarkdown::render('vignettes/port4me-overview.Rmd', rmarkdown::md_document(), output_dir = '$(@D)', output_file = '$(@F)')"
Expand Down

0 comments on commit 290ffc8

Please sign in to comment.