diff options
Diffstat (limited to 'vendor/github.com/go-redis/redis/Makefile')
-rw-r--r-- | vendor/github.com/go-redis/redis/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/github.com/go-redis/redis/Makefile b/vendor/github.com/go-redis/redis/Makefile new file mode 100644 index 000000000..50fdc55a1 --- /dev/null +++ b/vendor/github.com/go-redis/redis/Makefile @@ -0,0 +1,19 @@ +all: testdeps + go test ./... + go test ./... -short -race + go vet + +testdeps: testdata/redis/src/redis-server + +bench: testdeps + go test ./... -test.run=NONE -test.bench=. -test.benchmem + +.PHONY: all test testdeps bench + +testdata/redis: + mkdir -p $@ + wget -qO- https://github.com/antirez/redis/archive/unstable.tar.gz | tar xvz --strip-components=1 -C $@ + +testdata/redis/src/redis-server: testdata/redis + sed -i 's/libjemalloc.a/libjemalloc.a -lrt/g' $</src/Makefile + cd $< && make all |