mirror of
https://github.com/wassname/ray.git
synced 2026-07-29 11:26:04 +08:00
Remove Redis version from Linux scripts (#56)
* Remove Redis version from Linux scripts * Add documentation.
This commit is contained in:
committed by
Robert Nishihara
parent
4b00c029ac
commit
3714984094
+1
-1
@@ -40,7 +40,7 @@ hiredis:
|
||||
|
||||
test: CFLAGS += -DRAY_COMMON_LOG_LEVEL=4
|
||||
test: hiredis redis $(BUILD)/common_tests $(BUILD)/task_table_tests $(BUILD)/object_table_tests $(BUILD)/db_tests $(BUILD)/io_tests $(BUILD)/task_tests $(BUILD)/redis_tests FORCE
|
||||
./thirdparty/redis-3.2.3/src/redis-server &
|
||||
./thirdparty/redis/src/redis-server &
|
||||
sleep 1s
|
||||
./build/common_tests
|
||||
./build/db_tests
|
||||
|
||||
Vendored
+9
-4
@@ -3,9 +3,14 @@
|
||||
# Cause the script to exit if a single command fails.
|
||||
set -e
|
||||
|
||||
if [ ! -f redis-3.2.3/src/redis-server ]; then
|
||||
wget http://download.redis.io/releases/redis-3.2.3.tar.gz
|
||||
tar xvfz redis-3.2.3.tar.gz
|
||||
cd redis-3.2.3
|
||||
if [ ! -f redis/src/redis-server ]; then
|
||||
redis_vname="redis-3.2.3"
|
||||
# This check is to make sure the tarball has been fully extracted. The only
|
||||
# relevant bit about redis/utils/whatisdoing.sh is that it is one of the last
|
||||
# files in the tarball.
|
||||
if [ ! -f redis/utils/whatisdoing.sh ]; then
|
||||
mkdir -p "./redis" && wget -O- "http://download.redis.io/releases/$redis_vname.tar.gz" | tar xvz --strip-components=1 -C "./redis"
|
||||
fi
|
||||
cd redis
|
||||
make
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user