databricks-cli/Makefile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
913 B
Makefile
Raw Normal View History

2022-05-13 13:30:22 +00:00
default: build
PACKAGES=./libs/... ./internal/... ./cmd/... ./bundle/... .
lint:
./lint.sh ./...
lintcheck:
golangci-lint run ./...
2022-05-13 13:30:22 +00:00
test:
gotestsum --format pkgname-and-test-fails --no-summary=skipped -- ${PACKAGES}
cover:
gotestsum --format pkgname-and-test-fails --no-summary=skipped -- -coverprofile=coverage.txt ${PACKAGES}
2022-05-13 13:30:22 +00:00
showcover:
go tool cover -html=coverage.txt
2022-05-13 13:30:22 +00:00
build: vendor
go build -mod vendor
2022-05-13 13:30:22 +00:00
2022-05-14 17:56:09 +00:00
snapshot:
go build -o .databricks/databricks
2022-05-14 17:56:09 +00:00
2022-05-13 13:30:22 +00:00
vendor:
go mod vendor
schema:
go run ./bundle/internal/schema ./bundle/internal/schema ./bundle/schema/jsonschema.json
2022-05-13 13:30:22 +00:00
INTEGRATION = gotestsum --format github-actions --rerun-fails --jsonfile output.json --packages "./integration/..." -- -parallel 4 -timeout=2h
integration:
$(INTEGRATION)
integration-short:
$(INTEGRATION) -short
.PHONY: lint lintcheck test cover showcover build snapshot vendor schema integration integration-short