;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.)
This commit is contained in:
parent
5db62b37e1
commit
4c46502349
8
Justfile
8
Justfile
@ -495,10 +495,10 @@ SHELLTEST := 'COLUMNS=80 ' + STACK + ' exec -- shelltest --execdir --exclude=/_
|
|||||||
|
|
||||||
# --hide-successes
|
# --hide-successes
|
||||||
|
|
||||||
# build hledger quickly and run functional tests, with any shelltest OPTS (requires mktestaddons)
|
# build hledger warning-free and run functional tests, with any shelltest OPTS (requires mktestaddons)
|
||||||
@functest *OPTS:
|
@functest *STOPTS:
|
||||||
$STACK build hledger
|
$STACK build --ghc-options=-Werror hledger
|
||||||
time (({{ SHELLTEST }} {{ if OPTS == '' { '' } else { OPTS } }} \
|
time (({{ SHELLTEST }} {{ if STOPTS == '' { '' } else { STOPTS } }} \
|
||||||
hledger/test/ bin/ \
|
hledger/test/ bin/ \
|
||||||
-x ledger-compat/ledger-baseline -x ledger-compat/ledger-regress -x ledger-compat/ledger-extra \
|
-x ledger-compat/ledger-baseline -x ledger-compat/ledger-regress -x ledger-compat/ledger-extra \
|
||||||
&& echo $@ PASSED) || (echo $@ FAILED; false))
|
&& echo $@ PASSED) || (echo $@ FAILED; false))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user