download redis cell with curl and change path

This commit is contained in:
Simon Martín 2018-03-15 12:19:06 +01:00
parent 54f113ab5f
commit 05ef43c342

View File

@ -53,9 +53,10 @@ die() {
get_redis_cell() { get_redis_cell() {
if test x"$OPT_REDIS_CELL" = xyes; then if test x"$OPT_REDIS_CELL" = xyes; then
echo "Downloading redis-cell" echo "Downloading redis-cell"
wget https://github.com/brandur/redis-cell/releases/download/v0.2.2/redis-cell-v0.2.2-x86_64-unknown-linux-gnu.tar.gz > /dev/null 2>&1 curl -L https://github.com/brandur/redis-cell/releases/download/v0.2.2/redis-cell-v0.2.2-x86_64-unknown-linux-gnu.tar.gz --output redis-cell.tar.gz > /dev/null 2>&1
tar xvzf redis-cell-v0.2.2-x86_64-unknown-linux-gnu.tar.gz > /dev/null 2>&1 tar xvzf redis-cell.tar.gz > /dev/null 2>&1
rm redis-cell-v0.2.2-x86_64-unknown-linux-gnu.tar.gz mv libredis_cell.so ${BASEDIR}/test/support/libredis_cell.so
rm redis-cell.tar.gz
rm libredis_cell.d rm libredis_cell.d
fi fi
} }
@ -123,7 +124,7 @@ TESTS=$@
if test x"$OPT_CREATE_REDIS" = xyes; then if test x"$OPT_CREATE_REDIS" = xyes; then
get_redis_cell get_redis_cell
echo "Starting redis on port ${REDIS_PORT}" echo "Starting redis on port ${REDIS_PORT}"
echo "port ${REDIS_PORT}" | redis-server - --loadmodule ./libredis_cell.so > ${BASEDIR}/test.log & echo "port ${REDIS_PORT}" | redis-server - --loadmodule ${BASEDIR}/test/support/libredis_cell.so > ${BASEDIR}/test.log &
PID_REDIS=$! PID_REDIS=$!
echo ${PID_REDIS} > ${BASEDIR}/redis.pid echo ${PID_REDIS} > ${BASEDIR}/redis.pid
fi fi