kcl-lang.io/kpm@v0.8.7-0.20240520061008-9fc4c5efc8c7/makefile (about) 1 VERSION := $(shell git describe --tags) 2 LDFLAGS := -X kcl-lang.io/kpm/pkg/version.version=$(VERSION) 3 4 build: 5 go build -ldflags "$(LDFLAGS)" kpm.go 6 7 COVER_FILE ?= coverage.out 8 SOURCE_PATHS ?= ./pkg/... 9 10 test: ## Run unit tests 11 go test -gcflags=all=-l -timeout=20m `go list $(SOURCE_PATHS)` ${TEST_FLAGS} -v 12 13 cover: ## Generates coverage report 14 go test -gcflags=all=-l -timeout=20m `go list $(SOURCE_PATHS)` -coverprofile $(COVER_FILE) ${TEST_FLAGS} -v 15 16 e2e: ## Run e2e test 17 scripts/e2e.sh 18 19 fmt: 20 go fmt ./...