From: stack72 Date: Fri, 30 Jun 2017 08:19:13 +0000 (+0300) Subject: Adding back the GNUmakefile test-compile step X-Git-Tag: v0.2.0~12 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=ef7ddbffe05afb9d882c8e52bed328c382659a11;p=github%2Ffretlink%2Fterraform-provider-statuscake.git Adding back the GNUmakefile test-compile step --- diff --git a/GNUmakefile b/GNUmakefile index a28d744..c9eacb4 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -35,5 +35,13 @@ errcheck: vendor-status: @govendor status -.PHONY: build test testacc vet fmt fmtcheck errcheck vendor-status +test-compile: + @if [ "$(TEST)" = "./..." ]; then \ + echo "ERROR: Set TEST to a specific package. For example,"; \ + echo " make test-compile TEST=./aws"; \ + exit 1; \ + fi + go test -c $(TEST) $(TESTARGS) + +.PHONY: build test testacc vet fmt fmtcheck errcheck vendor-status test-compile