-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make improvements --------- Signed-off-by: Wojciech Szarański <[email protected]> Co-authored-by: Wojciech Szarański <[email protected]>
- Loading branch information
1 parent
17b74c6
commit 9ac631e
Showing
5 changed files
with
36 additions
and
13 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,12 +1,28 @@ | ||
.PHONY: all test testrace int | ||
|
||
all: test | ||
|
||
.PHONY: test testrace int ci clean help | ||
test: | ||
go test ./... | ||
|
||
testrace: | ||
go test -race ./... | ||
|
||
int: | ||
INT=1 go test ./... | ||
${MAKE} -C integration int | ||
|
||
ci: | ||
${MAKE} test | ||
${MAKE} -C integration redis_src/redis-server int | ||
${MAKE} testrace | ||
|
||
clean: | ||
${MAKE} -C integration clean | ||
|
||
help: | ||
ifeq ($(UNAME), Linux) | ||
@grep -P '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | \ | ||
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' | ||
else | ||
@# this is not tested, but prepared in advance for you, Mac drivers | ||
@awk -F ':.*###' '$$0 ~ FS {printf "%15s%s\n", $$1 ":", $$2}' \ | ||
$(MAKEFILE_LIST) | grep -v '@awk' | sort | ||
endif | ||
|
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,7 +1,13 @@ | ||
.PHONY: all test | ||
.PHONY: int | ||
int: | ||
INT=1 go test | ||
|
||
all: test | ||
redis_src/redis-server: get_redis.sh | ||
./get_redis.sh | ||
|
||
test: | ||
rm -f ./dump.rdb ./nodes.conf | ||
INT=1 go test | ||
.PHONY: clean | ||
clean: | ||
rm -rf \ | ||
redis_src \ | ||
dump.rdb \ | ||
nodes.conf |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ set -eu | |
|
||
VERSION=7.2.4 | ||
|
||
cd "$(dirname "$0")" | ||
rm -rf ./redis_src/ | ||
mkdir -p ./redis_src/ | ||
cd ./redis_src/ | ||
|
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