-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[add] included Makefile to ease client and examples build process
- Loading branch information
1 parent
69b65af
commit 062e8a1
Showing
1 changed file
with
21 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Go parameters | ||
GOCMD=go | ||
GOBUILD=$(GOCMD) build | ||
GOINSTALL=$(GOCMD) install | ||
GOCLEAN=$(GOCMD) clean | ||
GOTEST=$(GOCMD) test | ||
GOGET=$(GOCMD) get | ||
GOMOD=$(GOCMD) mod | ||
|
||
.PHONY: all test coverage | ||
all: test coverage | ||
|
||
get: | ||
$(GOGET) -t -v ./... | ||
|
||
test: get | ||
$(GOTEST) -race -covermode=atomic ./... | ||
|
||
coverage: get test | ||
$(GOTEST) -race -coverprofile=coverage.txt -covermode=atomic ./redisearch | ||
|