mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-18 17:57:11 +03:00
make buildtest: build the test and benchmark suites too
[ci skip]
This commit is contained in:
parent
fc5d18a63a
commit
55790008d7
7
Makefile
7
Makefile
@ -618,17 +618,18 @@ test: pkgtest functest \
|
|||||||
$(call def-help,test, run default tests: package tests plus functional tests)
|
$(call def-help,test, run default tests: package tests plus functional tests)
|
||||||
|
|
||||||
# For quieter tests add --silent. It may hide troubleshooting info.
|
# For quieter tests add --silent. It may hide troubleshooting info.
|
||||||
|
# For very verbose tests add --verbosity=debug. It seems hard to get something in between.
|
||||||
STACKTEST=$(STACK) test
|
STACKTEST=$(STACK) test
|
||||||
|
|
||||||
buildtest: $(call def-help,buildtest, build all hledger packages quickly from scratch ensuring no warnings with default snapshot) \
|
buildtest: $(call def-help,buildtest, build all hledger packages quickly from scratch ensuring no warnings with default snapshot) \
|
||||||
buildtest-stack.yaml
|
buildtest-stack.yaml
|
||||||
|
|
||||||
buildtest-%: $(call def-help,buildtest-STACKFILE, build all hledger packages quickly from scratch ensuring no warnings with the stack yaml file; eg make buildtest-stack-ghc8.2.yaml )
|
|
||||||
$(STACK) build --fast --force-dirty --ghc-options=-fforce-recomp --ghc-options=-Werror --stack-yaml=$*
|
|
||||||
|
|
||||||
buildtest-all: $(call def-help,buildtest-all, build all hledger packages quickly from scratch ensuring no warnings with each ghc version/stackage snapshot )
|
buildtest-all: $(call def-help,buildtest-all, build all hledger packages quickly from scratch ensuring no warnings with each ghc version/stackage snapshot )
|
||||||
for F in stack-*.yaml; do make --no-print-directory buildtest-$$F; done
|
for F in stack-*.yaml; do make --no-print-directory buildtest-$$F; done
|
||||||
|
|
||||||
|
buildtest-%: $(call def-help,buildtest-STACKFILE, build all hledger packages quickly from scratch ensuring no warnings with the stack yaml file; eg make buildtest-stack-ghc8.2.yaml )
|
||||||
|
$(STACK) build --test --bench --fast --force-dirty --ghc-options=-fforce-recomp --ghc-options=-Werror --stack-yaml=$*
|
||||||
|
|
||||||
pkgtest: $(call def-help,pkgtest, run the test suites in each package )
|
pkgtest: $(call def-help,pkgtest, run the test suites in each package )
|
||||||
@($(STACKTEST) && echo $@ PASSED) || (echo $@ FAILED; false)
|
@($(STACKTEST) && echo $@ PASSED) || (echo $@ FAILED; false)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user