@@ -8,6 +8,7 @@ LUA_LIB_DIR ?= $(PREFIX)/lib/lua/$(LUA_VERSION)
8
8
INSTALL ?= install
9
9
TEST_NGINX_AWS_CLIENT_ID ?= ''
10
10
TEST_NGINX_AWS_SECRET ?= ''
11
+ REDIS_SERVER ?= $(BUILD_DIR ) /redis-$(REDIS_VERSION ) /src/redis-server
11
12
12
13
.PHONY : all clean test install
13
14
@@ -27,7 +28,8 @@ install: all
27
28
28
29
test : redis
29
30
echo " Starting redis server on default port"
30
- $(BUILD_DIR ) /redis-$(REDIS_VERSION ) /src/redis-server test/resources/redis/redis-test.conf
31
+ # $(BUILD_DIR)/redis-$(REDIS_VERSION)/src/redis-server test/resources/redis/redis-test.conf
32
+ $(REDIS_SERVER ) test/resources/redis/redis-test.conf
31
33
echo " updating git submodules ..."
32
34
if [ ! -d " test/resources/test-nginx/lib" ]; then git submodule update --init --recursive; fi
33
35
echo " running tests ..."
@@ -41,8 +43,11 @@ test: redis
41
43
42
44
redis : all
43
45
mkdir -p $(BUILD_DIR )
44
- tar -xf test/resources/redis/redis-$(REDIS_VERSION ) .tar.gz -C $(BUILD_DIR ) /
45
- cd $(BUILD_DIR ) /redis-$(REDIS_VERSION ) && make
46
+ if [ " $( REDIS_SERVER) " = " $( BUILD_DIR) /redis-$( REDIS_VERSION) /src/redis-server" ]; then \
47
+ tar -xf test/resources/redis/redis-$(REDIS_VERSION ) .tar.gz -C $(BUILD_DIR ) /; \
48
+ cd $(BUILD_DIR ) /redis-$(REDIS_VERSION ) && make; \
49
+ fi
50
+ echo " ... using REDIS_SERVER=$( REDIS_SERVER) "
46
51
47
52
test-docker :
48
53
echo " running tests with docker ..."
@@ -60,7 +65,7 @@ test-docker:
60
65
rm -rf ~ /tmp/apiplatform/api-gateway-request-validation
61
66
62
67
package :
63
- git archive --format=tar --prefix=api-gateway-request-validation-1.1 / -o api-gateway-request-validation-1.1 .tar.gz -v HEAD
68
+ git archive --format=tar --prefix=api-gateway-request-validation-1.3.0 / -o api-gateway-request-validation-1.3.0 .tar.gz -v HEAD
64
69
65
70
clean : all
66
71
rm -rf $(BUILD_DIR )
0 commit comments