open-nomad/vendor/github.com/fsouza/go-dockerclient/Makefile

28 lines
416 B
Makefile
Raw Normal View History

2016-02-12 18:02:16 +00:00
.PHONY: \
all \
lint \
pretest \
test \
integration
2016-02-12 18:02:16 +00:00
ifeq "$(strip $(shell go env GOARCH))" "amd64"
RACE_FLAG := -race
endif
2016-02-12 18:02:16 +00:00
all: test
lint:
cd /tmp && GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@latest
golangci-lint run
2016-02-12 18:02:16 +00:00
pretest: lint
2016-02-12 18:02:16 +00:00
gotest:
go test $(RACE_FLAG) -vet all ./...
2016-02-12 18:02:16 +00:00
test: pretest gotest
2016-02-12 18:02:16 +00:00
integration:
go test -tags docker_integration -run TestIntegration -v