mirror of https://github.com/databricks/cli.git
Make "make" output the commands it runs (#2066)
This is useful on CI and locally for debugging and being able to copy-paste command to tweak the options. Removed redundant and imprecise messages like "✓ Running tests ...".
This commit is contained in:
parent
ef86d2bcae
commit
ea8445af9e
27
Makefile
27
Makefile
|
@ -3,40 +3,31 @@ default: build
|
||||||
PACKAGES=./libs/... ./internal/... ./cmd/... ./bundle/... .
|
PACKAGES=./libs/... ./internal/... ./cmd/... ./bundle/... .
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
@echo "✓ Linting source code with https://golangci-lint.run/ (with --fix)..."
|
./lint.sh ./...
|
||||||
@./lint.sh ./...
|
|
||||||
|
|
||||||
lintcheck:
|
lintcheck:
|
||||||
@echo "✓ Linting source code with https://golangci-lint.run/ ..."
|
golangci-lint run ./...
|
||||||
@golangci-lint run ./...
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@echo "✓ Running tests ..."
|
gotestsum --format pkgname-and-test-fails --no-summary=skipped -- ${PACKAGES}
|
||||||
@gotestsum --format pkgname-and-test-fails --no-summary=skipped -- ${PACKAGES}
|
|
||||||
|
|
||||||
cover:
|
cover:
|
||||||
@echo "✓ Running tests with coverage..."
|
gotestsum --format pkgname-and-test-fails --no-summary=skipped -- -coverprofile=coverage.txt ${PACKAGES}
|
||||||
@gotestsum --format pkgname-and-test-fails --no-summary=skipped -- -coverprofile=coverage.txt ${PACKAGES}
|
|
||||||
|
|
||||||
showcover:
|
showcover:
|
||||||
@echo "✓ Opening coverage for unit tests ..."
|
go tool cover -html=coverage.txt
|
||||||
@go tool cover -html=coverage.txt
|
|
||||||
|
|
||||||
build: vendor
|
build: vendor
|
||||||
@echo "✓ Building source code with go build ..."
|
go build -mod vendor
|
||||||
@go build -mod vendor
|
|
||||||
|
|
||||||
snapshot:
|
snapshot:
|
||||||
@echo "✓ Building dev snapshot"
|
go build -o .databricks/databricks
|
||||||
@go build -o .databricks/databricks
|
|
||||||
|
|
||||||
vendor:
|
vendor:
|
||||||
@echo "✓ Filling vendor folder with library code ..."
|
go mod vendor
|
||||||
@go mod vendor
|
|
||||||
|
|
||||||
schema:
|
schema:
|
||||||
@echo "✓ Generating json-schema ..."
|
go run ./bundle/internal/schema ./bundle/internal/schema ./bundle/schema/jsonschema.json
|
||||||
@go run ./bundle/internal/schema ./bundle/internal/schema ./bundle/schema/jsonschema.json
|
|
||||||
|
|
||||||
INTEGRATION = gotestsum --format github-actions --rerun-fails --jsonfile output.json --packages "./integration/..." -- -parallel 4 -timeout=2h
|
INTEGRATION = gotestsum --format github-actions --rerun-fails --jsonfile output.json --packages "./integration/..." -- -parallel 4 -timeout=2h
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue