aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/fsouza/go-dockerclient/Makefile
blob: 2f5d9fcc6a90c05e6d4b313e84fa21c2be4a8b50 (plain)
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
30
ifeq "$(strip $(shell go env GOARCH))" "amd64"
RACE_FLAG := -race
endif

.PHONY: test
test: pretest gotest

.PHONY: golangci-lint
golangci-lint:
	go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
	golangci-lint run

.PHONY: staticcheck
staticcheck:
	go install honnef.co/go/tools/cmd/staticcheck@master
	staticcheck ./...

.PHONY: lint
lint: golangci-lint staticcheck

.PHONY: pretest
pretest: lint

.PHONY: gotest
gotest:
	go test $(RACE_FLAG) -vet all ./...

.PHONY: integration
integration:
	go test -tags docker_integration -run TestIntegration -v