forked from aembke/fred.rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
203 lines (200 loc) · 5.35 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
version: 2.1
# CI cred rotation counter = 3
# have to use the machine executor to mount volumes
commands:
restore-cargo-deps-cache:
steps:
- restore_cache:
name: Restore cargo dependencies cache
key: cargo-cache-stable-{{ .Environment.CACHE_VERSION }}-{{ arch }}
save-cargo-deps-cache:
steps:
- save_cache:
name: Save cargo dependencies cache
key: cargo-cache-stable-{{ .Environment.CACHE_VERSION }}-{{ arch }}-{{ epoch }}
paths:
- "/home/circleci/.cargo/registry"
- "/home/circleci/project/target"
setup-empty-registry:
steps:
- run:
name: Create empty cargo registry
command: mkdir -p /home/circleci/.cargo/registry
clear_git_cache:
steps:
- run:
name: Clear the cargo git cache
command: rm -rf ~/.cargo/git/* && rm -rf ~/.cargo/registry/cache/*
build_docs:
steps:
- run:
name: Install nightly
command: rustup install nightly
- run:
name: Build documentation
command: tests/doc.sh
test_default_features:
steps:
- checkout
- restore-cargo-deps-cache
- run:
name: Run tests with default features
command: source tests/environ && tests/runners/default-features.sh
- save-cargo-deps-cache
test_all_features:
steps:
- checkout
- restore-cargo-deps-cache
- run:
name: Run tests with all features
command: source tests/environ && tests/runners/all-features.sh
- save-cargo-deps-cache
test_no_features:
steps:
- checkout
- restore-cargo-deps-cache
- run:
name: Run tests with no features
command: source tests/environ && tests/runners/no-features.sh
- save-cargo-deps-cache
test_sentinel:
steps:
- checkout
- restore-cargo-deps-cache
- run:
name: Install and run sentinel tests
command: source tests/environ && tests/runners/sentinel-features.sh
- save-cargo-deps-cache
test_tls_cluster:
steps:
- checkout
- restore-cargo-deps-cache
- run:
name: Run cluster tests with native-tls features
command: source tests/environ && tests/scripts/tls-creds.sh && tests/runners/cluster-native-tls.sh
- save-cargo-deps-cache
test_rustls_cluster:
steps:
- checkout
- restore-cargo-deps-cache
- run:
name: Run cluster tests with rustls features
command: source tests/environ && tests/scripts/tls-creds.sh && tests/runners/cluster-rustls.sh
- save-cargo-deps-cache
jobs:
test-default-7_0:
machine:
image: ubuntu-2204:2022.10.2
docker_layer_caching: true
resource_class: medium
environment:
REDIS_VERSION: 7.0.9
steps:
- test_default_features
test-no-features-7_0:
machine:
image: ubuntu-2204:2022.10.2
docker_layer_caching: true
resource_class: medium
environment:
REDIS_VERSION: 7.0.9
steps:
- test_no_features
test-all-features-7_0:
machine:
image: ubuntu-2204:2022.10.2
docker_layer_caching: true
resource_class: medium
environment:
REDIS_VERSION: 7.0.9
steps:
- test_all_features
test-cluster-tls-features-7_0:
machine:
image: ubuntu-2204:2022.10.2
docker_layer_caching: true
resource_class: medium
environment:
REDIS_VERSION: 7.0.9
FRED_CI_TLS: true
steps:
- test_tls_cluster
test-cluster-rustls-features-7_0:
machine:
image: ubuntu-2204:2022.10.2
docker_layer_caching: true
resource_class: medium
environment:
REDIS_VERSION: 7.0.9
FRED_CI_TLS: true
steps:
- test_rustls_cluster
test-default-6_2:
machine:
image: ubuntu-2204:2022.10.2
docker_layer_caching: true
resource_class: medium
environment:
REDIS_VERSION: 6.2.2
steps:
- test_default_features
test-no-features-6_2:
machine:
image: ubuntu-2204:2022.10.2
docker_layer_caching: true
resource_class: medium
environment:
REDIS_VERSION: 6.2.2
steps:
- test_no_features
test-all-features-6_2:
machine:
image: ubuntu-2204:2022.10.2
docker_layer_caching: true
resource_class: medium
environment:
REDIS_VERSION: 6.2.2
steps:
- test_all_features
test-sentinel-6_2:
machine:
image: ubuntu-2204:2022.10.2
docker_layer_caching: true
resource_class: medium
environment:
REDIS_VERSION: 6.2.2
steps:
- test_sentinel
test-sentinel-7_0:
machine:
image: ubuntu-2204:2022.10.2
docker_layer_caching: true
resource_class: medium
environment:
REDIS_VERSION: 7.0.9
steps:
- test_sentinel
test-docs:
docker:
- image: cimg/rust:1.68.0
environment:
CARGO_NET_GIT_FETCH_WITH_CLI: true
steps:
- checkout
- build_docs
workflows:
version: 2
build:
jobs:
# the older bitnami Redis images require a different process to bootstrap ACL rules...
#- test-default-6_2
#- test-all-features-6_2
#- test-no-features-6_2
#- test-sentinel-6_2
- test-default-7_0
- test-all-features-7_0
- test-no-features-7_0
- test-sentinel-7_0
- test-docs
- test-cluster-tls-features-7_0
- test-cluster-rustls-features-7_0