summaryrefslogtreecommitdiff
path: root/vendor/github.com/fsouza/go-dockerclient/Makefile
blob: 858adec1b8724e97e79589f6b8edffadc9592801 (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
31
32
33
34
.PHONY: \
	all \
	staticcheck \
	fmt \
	fmtcheck \
	pretest \
	test \
	integration

all: test

staticcheck:
	GO111MODULE=off go get honnef.co/go/tools/cmd/staticcheck
	staticcheck ./...

fmtcheck:
	if [ -z "$${SKIP_FMT_CHECK}" ]; then [ -z "$$(gofumpt -s -d . | tee /dev/stderr)" ]; fi

fmt:
	GO111MODULE=off go get mvdan.cc/gofumpt
	gofumpt -s -w .

testdeps:
	go mod download

pretest: staticcheck fmtcheck

gotest:
	go test -race -vet all ./...

test: testdeps pretest gotest

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