aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/fsouza/go-dockerclient/Makefile
blob: bd38394646cbd25563a281986bce284659ca15f9 (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
.PHONY: \
	all \
	lint \
	pretest \
	test \
	integration


ifeq "$(strip $(shell go env GOARCH))" "amd64"
RACE_FLAG := -race
endif

all: test

lint:
	cd /tmp && GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@latest
	golangci-lint run

pretest: lint

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

test: pretest gotest

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