Skip to content

Commit 4c46502

Browse files
committed
;tools: just functest: fail if there are warnings
(Does not force recompilation of already compiled modules, but should help catch more warnings before pushing them to CI.)
1 parent 5db62b3 commit 4c46502

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Justfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -495,10 +495,10 @@ SHELLTEST := 'COLUMNS=80 ' + STACK + ' exec -- shelltest --execdir --exclude=/_
495495

496496
# --hide-successes
497497

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

0 commit comments

Comments
 (0)