mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
rebase: vendor files required for kmip
Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
54
vendor/github.com/gemalto/flume/Makefile
generated
vendored
Normal file
54
vendor/github.com/gemalto/flume/Makefile
generated
vendored
Normal file
@ -0,0 +1,54 @@
|
||||
SHELL = bash
|
||||
BUILD_FLAGS =
|
||||
TEST_FLAGS =
|
||||
|
||||
all: fmt build lint test
|
||||
|
||||
build:
|
||||
go build $(BUILD_FLAGS) ./...
|
||||
|
||||
builddir:
|
||||
mkdir -p -m 0777 build
|
||||
|
||||
lint:
|
||||
golangci-lint run
|
||||
|
||||
clean:
|
||||
rm -rf build/*
|
||||
|
||||
fmt:
|
||||
go fmt ./...
|
||||
|
||||
test:
|
||||
go test -race $(BUILD_FLAGS) $(TEST_FLAGS) ./...
|
||||
|
||||
# creates a test coverage report, and produces json test output. useful for ci.
|
||||
cover: builddir
|
||||
go test $(TEST_FLAGS) -v -covermode=count -coverprofile=build/coverage.out -json ./...
|
||||
go tool cover -html=build/coverage.out -o build/coverage.html
|
||||
|
||||
builder:
|
||||
docker-compose build --pull builder
|
||||
|
||||
docker: builder
|
||||
docker-compose run --rm builder make all cover
|
||||
|
||||
fish: builder
|
||||
docker-compose run --rm builder fish
|
||||
|
||||
tidy:
|
||||
go mod tidy
|
||||
|
||||
update:
|
||||
go get -u ./...
|
||||
go mod tidy
|
||||
|
||||
### TOOLS
|
||||
|
||||
tools:
|
||||
# installs tools used during build
|
||||
go get -u golang.org/x/tools/cmd/cover
|
||||
sh -c "$$(wget -O - -q https://install.goreleaser.com/github.com/golangci/golangci-lint.sh || echo exit 2)" -- -b $(shell go env GOPATH)/bin $(GOLANGCI_LINT_VERSION)
|
||||
|
||||
.PHONY: all build builddir run artifacts vet lint clean fmt test testall testreport up down pull builder runc ci bash fish image prep vendor.update vendor.ensure tools buildtools migratetool db.migrate
|
||||
|
Reference in New Issue
Block a user