aboutsummaryrefslogtreecommitdiffhomepage
path: root/GNUmakefile
diff options
context:
space:
mode:
authorstack72 <public@paulstack.co.uk>2017-06-29 16:50:30 +0300
committerstack72 <public@paulstack.co.uk>2017-06-29 16:50:30 +0300
commit4bdb97c29c00d68e0e72c9a911063385ed876c02 (patch)
tree105d8e1894abff667ffd6e2df9394962bd3bd5aa /GNUmakefile
parent2185c047280afee47c1d0f3bc9bcfeede22468bf (diff)
downloadterraform-provider-statuscake-4bdb97c29c00d68e0e72c9a911063385ed876c02.tar.gz
terraform-provider-statuscake-4bdb97c29c00d68e0e72c9a911063385ed876c02.tar.zst
terraform-provider-statuscake-4bdb97c29c00d68e0e72c9a911063385ed876c02.zip
Simplifying the GNUMakefile
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile21
1 files changed, 1 insertions, 20 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 6234687..a28d744 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,6 +1,5 @@
1TEST?=$$(go list ./... |grep -v 'vendor') 1TEST?=$$(go list ./... |grep -v 'vendor')
2GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor) 2GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
3COVER_TEST?=$$(go list ./... |grep -v 'vendor')
4 3
5default: build 4default: build
6 5
@@ -15,17 +14,6 @@ test: fmtcheck
15testacc: fmtcheck 14testacc: fmtcheck
16 TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m 15 TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m
17 16
18testrace: fmtcheck
19 TF_ACC= go test -race $(TEST) $(TESTARGS)
20
21cover:
22 @go tool cover 2>/dev/null; if [ $$? -eq 3 ]; then \
23 go get -u golang.org/x/tools/cmd/cover; \
24 fi
25 go test $(COVER_TEST) -coverprofile=coverage.out
26 go tool cover -html=coverage.out
27 rm coverage.out
28
29vet: 17vet:
30 @echo "go vet ." 18 @echo "go vet ."
31 @go vet $$(go list ./... | grep -v vendor/) ; if [ $$? -eq 1 ]; then \ 19 @go vet $$(go list ./... | grep -v vendor/) ; if [ $$? -eq 1 ]; then \
@@ -47,12 +35,5 @@ errcheck:
47vendor-status: 35vendor-status:
48 @govendor status 36 @govendor status
49 37
50test-compile: fmtcheck 38.PHONY: build test testacc vet fmt fmtcheck errcheck vendor-status
51 @if [ "$(TEST)" = "./..." ]; then \
52 echo "ERROR: Set TEST to a specific package. For example,"; \
53 echo " make test-compile TEST=./builtin/providers/aws"; \
54 exit 1; \
55 fi
56 go test -c $(TEST) $(TESTARGS)
57 39
58.PHONY: build test testacc testrace cover vet fmt fmtcheck errcheck vendor-status test-compile