]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/commitdiff
Adding back the GNUmakefile test-compile step
authorstack72 <public@paulstack.co.uk>
Fri, 30 Jun 2017 08:19:13 +0000 (11:19 +0300)
committerstack72 <public@paulstack.co.uk>
Fri, 30 Jun 2017 08:19:13 +0000 (11:19 +0300)
GNUmakefile

index a28d744576aa22283b50cb53e18c1e4d8ddba68f..c9eacb4511da392fe3c1933dca2c75f6ee870f95 100644 (file)
@@ -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