@@ -15,29 +15,21 @@ jobs:
15
15
sudo apt-get -qq update
16
16
sudo apt-get install autoconf automake pkg-config libevent-dev libpcre3-dev libssl-dev
17
17
- name : Build
18
- run : autoreconf -ivf && ./configure && make
18
+ run : autoreconf -ivf && ./configure && make -j
19
19
- name : Setup Python
20
- uses : actions/setup-python@v1
20
+ uses : actions/setup-python@v2
21
21
with :
22
22
python-version : ' 3.6'
23
+ architecture : x64
23
24
24
- - name : Cache pip
25
- uses : actions/cache@v1
26
- with :
27
- path : ~/.cache/pip # This path is specific to Ubuntu
28
- # Look to see if there is a cache hit for the corresponding requirements file
29
- key : ${{ runner.os }}-pip-${{ hashFiles('tests/test_requirements.txt') }}
30
- restore-keys : |
31
- ${{ runner.os }}-pip-
32
- ${{ runner.os }}-
33
25
- name : Install Python dependencies
34
- run : pip install -r tests/test_requirements.txt
26
+ run : pip install -r ./ tests/test_requirements.txt
35
27
36
28
- name : Cache Redis
37
29
id : cache-redis
38
30
uses : actions/cache@v1
39
31
with :
40
- path : /home/runner/work/memtier_benchmark/memtier_benchmark/ redis
32
+ path : /home/runner/work/redis
41
33
key : ${{ runner.os }}-redis
42
34
43
35
- name : Check out Redis
@@ -52,61 +44,41 @@ jobs:
52
44
if : steps.cache-redis.outputs.cache-hit != 'true'
53
45
run : |
54
46
cd redis
55
- make BUILD_TLS=yes
56
- ./utils/gen-test-certs.sh
47
+ make BUILD_TLS=yes -j
57
48
./src/redis-server --version
58
49
50
+ - name : Generate TLS test certificates
51
+ if : matrix.platform == 'ubuntu-latest'
52
+ run : |
53
+ ./tests/gen-test-certs.sh
54
+
59
55
- name : Test OSS TCP
56
+ timeout-minutes : 10
60
57
run : |
61
- cd tests
62
- MEMTIER_BINARY=./../memtier_benchmark \
63
- python3 -m RLTest \
64
- --env oss -v --clear-logs \
65
- --oss-redis-path ../redis/src/redis-server
66
- cd ..
58
+ REDIS_SERVER=../redis/src/redis-server \
59
+ ./tests/run_tests.sh
67
60
68
61
- name : Test OSS TCP TLS
69
62
if : matrix.platform == 'ubuntu-latest'
63
+ timeout-minutes : 10
70
64
run : |
71
- cd tests
72
- TLS_CERT=../redis/tests/tls/redis.crt \
73
- TLS_KEY=../redis/tests/tls/redis.key \
74
- TLS_CACERT=../redis/tests/tls/ca.crt \
75
- MEMTIER_BINARY=../memtier_benchmark \
76
- python3 -m RLTest \
77
- --env oss -v --clear-logs \
78
- --oss-redis-path ../redis/src/redis-server \
79
- --tls-cert-file ../redis/tests/tls/redis.crt \
80
- --tls-key-file ../redis/tests/tls/redis.key \
81
- --tls-ca-cert-file ../redis/tests/tls/ca.crt \
82
- --tls
83
- cd ..
65
+ TLS=1 REDIS_SERVER=../redis/src/redis-server \
66
+ ./tests/run_tests.sh
84
67
85
68
- name : Test OSS-CLUSTER TCP
69
+ timeout-minutes : 10
86
70
run : |
87
- cd tests
88
- MEMTIER_BINARY=./../memtier_benchmark \
89
- python3 -m RLTest \
90
- --env oss-cluster -v --clear-logs --shards-count 3 \
91
- --oss-redis-path ../redis/src/redis-server
92
- cd ..
71
+ OSS_STANDALONE=0 OSS_CLUSTER=1 \
72
+ REDIS_SERVER=../redis/src/redis-server \
73
+ ./tests/run_tests.sh
93
74
94
75
- name : Test OSS-CLUSTER TCP TLS
76
+ timeout-minutes : 10
95
77
if : matrix.platform == 'ubuntu-latest'
96
78
run : |
97
- cd tests
98
- TLS_CERT=../redis/tests/tls/redis.crt \
99
- TLS_KEY=../redis/tests/tls/redis.key \
100
- TLS_CACERT=../redis/tests/tls/ca.crt \
101
- MEMTIER_BINARY=../memtier_benchmark \
102
- python3 -m RLTest \
103
- --env oss-cluster --shards-count 3 -v --clear-logs \
104
- --oss-redis-path ../redis/src/redis-server \
105
- --tls-cert-file ../redis/tests/tls/redis.crt \
106
- --tls-key-file ../redis/tests/tls/redis.key \
107
- --tls-ca-cert-file ../redis/tests/tls/ca.crt \
108
- --tls
109
- cd ..
79
+ OSS_STANDALONE=0 OSS_CLUSTER=1 TLS=1 \
80
+ REDIS_SERVER=../redis/src/redis-server \
81
+ ./tests/run_tests.sh
110
82
111
83
build-macos :
112
84
strategy :
0 commit comments