-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from senseyeio/smotes/v2.1-compatibility
smotes/v2.1 compatibility
- Loading branch information
Showing
13 changed files
with
962 additions
and
120 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,24 +1,32 @@ | ||
GOPACKAGES := $(shell go list ./...) | ||
PACKAGES := $(shell go list ./... | grep -v mock) | ||
|
||
.PHONY: default | ||
default: fmt lint unit | ||
|
||
.PHONY: errcheck | ||
errcheck: | ||
@errcheck -asserts -blank -ignore 'io:[cC]lose' $(GOPACKAGES) | ||
default: fmt lint | ||
|
||
.PHONY: fmt | ||
## fmt: runs go fmt on source files | ||
fmt: | ||
@go fmt $(PACKAGES) | ||
|
||
.PHONY: help | ||
## help: prints this help message | ||
help: | ||
@echo "Usage: \n" | ||
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /' | ||
|
||
.PHONY: integration | ||
## integration: runs the integration tests | ||
integration: | ||
@sh ./scripts/integration_test.sh $(GOPACKAGES) | ||
@go clean -testcache | ||
@sh ./scripts/integration_test.sh $(PACKAGES) | ||
|
||
.PHONY: lint | ||
## lint: runs go lint on source files | ||
lint: | ||
@golint -set_exit_status $(GOPACKAGES) | ||
@golint -set_exit_status -min_confidence=0.3 $(PACKAGES) | ||
|
||
.PHONY: unit | ||
## unit: runs the unit tests | ||
unit: | ||
@go test -cover -timeout=1s $(GOPACKAGES) | ||
@go clean -testcache | ||
@go test -cover -covermode=atomic -race -timeout=1s $(PACKAGES) |
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.