redis/Makefile

22 lines
512 B
Makefile
Raw Normal View History

2015-01-24 15:12:48 +03:00
all: testdeps
go test ./...
go test ./... -short -race
2019-05-31 13:16:10 +03:00
go test ./... -run=NONE -bench=. -benchmem
2018-03-07 13:20:26 +03:00
env GOOS=linux GOARCH=386 go test ./...
2020-09-17 17:01:29 +03:00
go vet
2019-07-25 13:53:00 +03:00
golangci-lint run
2015-01-24 15:12:48 +03:00
2016-03-12 13:25:59 +03:00
testdeps: testdata/redis/src/redis-server
2015-01-24 15:12:48 +03:00
bench: testdeps
go test ./... -test.run=NONE -test.bench=. -test.benchmem
.PHONY: all test testdeps bench
2015-01-24 15:12:48 +03:00
2016-03-12 13:25:59 +03:00
testdata/redis:
2015-01-24 15:12:48 +03:00
mkdir -p $@
2020-06-05 08:50:44 +03:00
wget -qO- http://download.redis.io/redis-stable.tar.gz | tar xvz --strip-components=1 -C $@
2015-01-24 15:12:48 +03:00
2016-03-12 13:25:59 +03:00
testdata/redis/src/redis-server: testdata/redis
2015-01-24 15:12:48 +03:00
cd $< && make all