Skip to content

Commit

Permalink
;tools: just functest: fail if there are warnings
Browse files Browse the repository at this point in the history
(Does not force recompilation of already compiled modules, but should
help catch more warnings before pushing them to CI.)
  • Loading branch information
simonmichael committed Dec 27, 2024
1 parent 5db62b3 commit 4c46502
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -495,10 +495,10 @@ SHELLTEST := 'COLUMNS=80 ' + STACK + ' exec -- shelltest --execdir --exclude=/_

# --hide-successes

# build hledger quickly and run functional tests, with any shelltest OPTS (requires mktestaddons)
@functest *OPTS:
$STACK build hledger
time (({{ SHELLTEST }} {{ if OPTS == '' { '' } else { OPTS } }} \
# build hledger warning-free and run functional tests, with any shelltest OPTS (requires mktestaddons)
@functest *STOPTS:
$STACK build --ghc-options=-Werror hledger
time (({{ SHELLTEST }} {{ if STOPTS == '' { '' } else { STOPTS } }} \
hledger/test/ bin/ \
-x ledger-compat/ledger-baseline -x ledger-compat/ledger-regress -x ledger-compat/ledger-extra \
&& echo $@ PASSED) || (echo $@ FAILED; false))
Expand Down

0 comments on commit 4c46502

Please sign in to comment.