From 4c4650234950aaf82c6d3c3d621652359be38360 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 27 Dec 2024 12:50:36 -1000 Subject: [PATCH] ;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.) --- Justfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Justfile b/Justfile index fe81f3455..a43a39eb5 100644 --- a/Justfile +++ b/Justfile @@ -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))