Sha256: ace30995a9c67958e5979057ec276b7c2b209e156563115b4e52f7690286a42d
Contents?: true
Size: 976 Bytes
Versions: 1
Compression:
Stored size: 976 Bytes
Contents
TEST_FILES := $(shell find ./test -name *_test.rb -type f) REDIS_BRANCH ?= unstable TMP := tmp BUILD_DIR := ${TMP}/cache/redis-${REDIS_BRANCH} TARBALL := ${TMP}/redis-${REDIS_BRANCH}.tar.gz BINARY := ${BUILD_DIR}/src/redis-server PID_PATH := ${BUILD_DIR}/redis.pid SOCKET_PATH := ${BUILD_DIR}/redis.sock PORT := 6381 test: ${TEST_FILES} make start env SOCKET_PATH=${SOCKET_PATH} \ bundle exec ruby -v -e 'ARGV.each { |test_file| require test_file }' ${TEST_FILES} make stop ${TMP}: mkdir $@ ${BINARY}: ${TMP} bin/build ${REDIS_BRANCH} ${TMP} stop: (test -f ${PID_PATH} && (kill $$(cat ${PID_PATH}) || true) && rm -f ${PID_PATH}) || true start: ${BINARY} ${BINARY} \ --daemonize yes \ --pidfile ${PID_PATH} \ --port ${PORT} \ --unixsocket ${SOCKET_PATH} clean: (test -d ${BUILD_DIR} && cd ${BUILD_DIR}/src && make clean distclean) || true .PHONY: test start stop
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redis-4.0.2 | makefile |