kompose/vendor/github.com/fsouza/go-dockerclient/Makefile
Hang Yan 525b68f027
Go mod (#1305)
* Use go mod instead of glide
* Add `--with-kompose-annotation` flag to allow us to switch it off for tests
* Remove hostpid support (since the newest sdk does not support it)
* Create new test script and fixtures
* Remove replicationcontroller support
2020-08-07 17:25:52 +08:00

28 lines
416 B
Makefile

.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