Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,32 +43,26 @@ verify:

vet:
$(GO) vet $(GO_MOD_FLAGS) $(GO_BUILD_FLAGS) ./...
make -C v1 vet

test-unit:
mkdir -p tests/results
$(GO) test $(GO_MOD_FLAGS) $(GO_BUILD_FLAGS) -short -coverprofile=tests/results/cover.out -race -count=1 ./internal/pkg/...
make -C v1 test-unit

test-integration:
mkdir -p tests/results-integration
$(GO) test $(GO_MOD_FLAGS) $(GO_BUILD_FLAGS) -coverprofile=tests/results-integration/cover-additional.out -race -count=1 ./internal/pkg/... -run TestIntegrationAdditional
$(GO) test $(GO_MOD_FLAGS) $(GO_BUILD_FLAGS) -coverprofile=tests/results-integration/cover-release.out -race -count=1 ./internal/pkg/... -run TestIntegrationRelease
$(GO) test $(GO_MOD_FLAGS) $(GO_BUILD_FLAGS) -coverprofile=tests/results-integration/cover-additional.out -race -count=1 ./internal/pkg/... -run TestIntegrationAdditionalM2M
$(GO) test $(GO_MOD_FLAGS) $(GO_BUILD_FLAGS) -coverprofile=tests/results-integration/cover-release.out -race -count=1 ./internal/pkg/... -run TestIntegrationReleaseM2M
make -C v1 test-integration

tidy:
$(GO) mod tidy
make -C v1 tidy

sanity: tidy format vet
make -C v1 sanity
git diff --exit-code
.PHONY: sanity

format: verify-gofmt
make -C v1 verify-gofmt

cover:
$(GO) tool cover -html=tests/results/cover.out -o tests/results/cover.html
Expand Down