-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
608fdcc
commit 7317a0b
Showing
24 changed files
with
298 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
.PHONY: test lint build coverage | ||
.PHONY: test lint build coverage install-tools | ||
|
||
test: | ||
go test -race -p 1 -count=1 -tags=integration -covermode=atomic -coverprofile=coverage.out ./... | ||
|
||
lint: | ||
echo "Do nothing" | ||
$(foreach f,$(shell go fmt ./...),@echo "Forgot to format file: ${f}"; exit 1;) | ||
go vet ./... | ||
revive -config revive.toml -formatter friendly ./... | ||
|
||
build: | ||
go build -o bin/lock test-examples/lock/main.go | ||
|
||
coverage: | ||
go tool cover -func coverage.out | grep ^total | ||
|
||
install-tools: | ||
go install github.com/mgechev/revive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.