From bcbf0489c71520caae041d65512ae4f560c0c142 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 5 Jun 2018 06:21:52 -0700 Subject: [PATCH] tools: make buildplantest* to check install plans without building [ci skip] --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 2d3b7b791..fe6cd95a9 100644 --- a/Makefile +++ b/Makefile @@ -639,6 +639,15 @@ incr-buildtest-all: $(call def-help,incr-buildtest-all, build any outdated hledg incr-buildtest-%: $(call def-help,incr-buildtest-STACKFILE, build any outdated hledger packages/modules quickly ensuring no warnings with the stack yaml file; eg make buildtest-stack-ghc8.2.yaml. Wont detect warnings in up-to-date modules. ) $(STACK) build --test --bench --fast --ghc-options=-Werror --stack-yaml=$* +buildplantest: $(call def-help,buildplantest, stack build --dry-run all hledger packages ensuring an install plan with default snapshot) \ + buildplantest-stack.yaml + +buildplantest-all: $(call def-help,buildplantest-all, stack build --dry-run all hledger packages ensuring an install plan with each ghc version/stackage snapshot ) + for F in stack-*.yaml stack.yaml; do make --no-print-directory buildplantest-$$F; done + +buildplantest-%: $(call def-help,buildplantest-STACKFILE, stack build --dry-run all hledger packages ensuring an install plan with the given stack yaml file; eg make buildplantest-stack-ghc8.2.yaml ) + $(STACK) build --dry-run --test --bench --stack-yaml=$* + pkgtest: $(call def-help,pkgtest, run the test suites in each package ) @($(STACKTEST) && echo $@ PASSED) || (echo $@ FAILED; false)