Skip to content
Open
Show file tree
Hide file tree
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
9 changes: 6 additions & 3 deletions GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
TEST?=$$(go list ./... |grep -v 'vendor')
# Several packages call Azure; run them one at a time so that concurrent CI jobs sharing a tenant
# do not exceed the Azure Resource Manager read limits.
TESTFLAGS?=-p 1

.PHONY: lint
lint:
golangci-lint run

.PHONY: testrace
testrace:
go test -test.v -race $(TEST)
go test $(TESTFLAGS) -test.v -race $(TEST)

.PHONY: test
test:
go test -test.v $(TEST)
go test $(TESTFLAGS) -test.v $(TEST)

# Create a test coverage report and launch a browser to view it
.PHONY: testcover
testcover:
if [ -f "coverage.out" ]; then rm coverage.out; fi
go test -v -coverprofile=coverage.out -covermode=count $(TEST)
go test $(TESTFLAGS) -v -coverprofile=coverage.out -covermode=count $(TEST)

.PHONY: tool
tool:
Expand Down
Loading
Loading