Skip to content

Commit 14cabbd

Browse files
committed
Simplifying the GNUMakefile
1 parent 82e11c7 commit 14cabbd

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

GNUmakefile

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
TEST?=$$(go list ./... |grep -v 'vendor')
22
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
3-
COVER_TEST?=$$(go list ./... |grep -v 'vendor')
43

54
default: build
65

@@ -15,17 +14,6 @@ test: fmtcheck
1514
testacc: fmtcheck
1615
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m
1716

18-
testrace: fmtcheck
19-
TF_ACC= go test -race $(TEST) $(TESTARGS)
20-
21-
cover:
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-
2917
vet:
3018
@echo "go vet ."
3119
@go vet $$(go list ./... | grep -v vendor/) ; if [ $$? -eq 1 ]; then \
@@ -47,12 +35,5 @@ errcheck:
4735
vendor-status:
4836
@govendor status
4937

50-
test-compile: fmtcheck
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)
38+
.PHONY: build test testacc vet fmt fmtcheck errcheck vendor-status
5739

58-
.PHONY: build test testacc testrace cover vet fmt fmtcheck errcheck vendor-status test-compile

0 commit comments

Comments
 (0)