forked from ticketmaster/aws-sdk-go-cache
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 927 Bytes
/
Makefile
File metadata and controls
29 lines (22 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
all: get-deps unit
SDK_ONLY_PKGS=$(shell go list ./... | grep -v "/vendor/")
# Define PRINT_OK macro for success messages
PRINT_OK = echo "\033[0;32m✓\033[0m"
get-deps: get-deps-tests get-deps-verify
@echo "go get SDK dependencies"
@go get -v $(SDK_ONLY_PKGS)
get-deps-tests:
@echo "go get SDK testing dependencies"
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
go get -v github.com/smartystreets/goconvey
get-deps-verify:
@echo "go get SDK verification utilities"
@if [ \( -z "${SDK_GO_1_4}" \) -a \( -z "${SDK_GO_1_5}" \) ]; then go get -v golang.org/x/lint/golint; else echo "skipped getting golint"; fi
lint:
@echo "go lint SDK and vendor packages"
@golangci-lint run --disable-all --enable=gofmt --enable=golint --enable=vet --enable=unconvert --deadline=4m ${SDK_ONLY_PKGS}
@$(PRINT_OK)
unit:
@echo "go test SDK and vendor packages"
@go test -v $(SDK_ONLY_PKGS)
@$(PRINT_OK)