@@ -35,14 +35,35 @@ commands:
35
35
- setup_remote_docker :
36
36
docker_layer_caching : true
37
37
38
+ relocate-docker-storage :
39
+ steps :
40
+ - run :
41
+ name : Relocate docker overlay2 dir
42
+ command : |
43
+ sudo systemctl stop docker
44
+ sudo mkdir -p /var2/lib/docker
45
+ sudo mv /var/lib/docker/overlay2 /var2/lib/docker
46
+ sudo mkdir /var/lib/docker/overlay2
47
+ sudo mount --bind /var2/lib/docker/overlay2 /var/lib/docker/overlay2
48
+ sudo systemctl start docker
49
+
38
50
setup-automation :
39
51
steps :
40
52
- run :
41
53
name : Setup automation
42
54
command : |
55
+ git submodule update --init opt/readies
43
56
./opt/readies/bin/getpy3
44
57
./opt/system-setup.py
45
58
59
+ setup-build-system :
60
+ steps :
61
+ - setup-automation
62
+ - run :
63
+ name : Setup build system
64
+ command : |
65
+ ./opt/system-setup.py
66
+
46
67
build-steps :
47
68
parameters :
48
69
platform :
@@ -57,7 +78,7 @@ commands:
57
78
keys :
58
79
- v1-dependencies-{{ checksum "get_deps.sh" }}
59
80
# If no exact match is found will get dependencies from source
60
- - setup-automation
81
+ - setup-build-system
61
82
- run :
62
83
name : Install dependencies
63
84
command : |
@@ -98,28 +119,18 @@ commands:
98
119
steps :
99
120
- abort_for_docs
100
121
- checkout
122
+ - relocate-docker-storage
101
123
- run :
102
- name : Relocate docker overlay2 dir
103
- command : |
104
- sudo systemctl stop docker
105
- sudo mkdir -p /var2/lib/docker
106
- sudo mv /var/lib/docker/overlay2 /var2/lib/docker
107
- sudo mkdir /var/lib/docker/overlay2
108
- sudo mount --bind /var2/lib/docker/overlay2 /var/lib/docker/overlay2
109
- sudo systemctl start docker
110
- - run :
111
- name : Setup
112
- command : |
113
- git submodule update --init --recursive
114
- ./opt/readies/bin/getpy3
124
+ name : Submodule checkout
125
+ command : git submodule update --init --recursive
126
+ - setup-automation
115
127
- run :
116
128
name : Build for platform
117
129
command : |
118
- docker login -u redisfab -p $DOCKER_REDISFAB_PWD
119
130
pushd opt/build/docker
120
131
for osnick in bionic xenial; do
121
- make CPU=1 OSNICK=$osnick ARTIFACTS=1 VERBOSE=1 build publish
122
- make GPU=1 OSNICK=$osnick ARTIFACTS=1 VERBOSE=1 build publish
132
+ make CPU=1 OSNICK=$osnick ARTIFACTS=1 VERBOSE=1 build
133
+ make GPU=1 OSNICK=$osnick ARTIFACTS=1 VERBOSE=1 build
123
134
done
124
135
popd > /dev/null
125
136
logstar=bin/artifacts/tests-logs-cpu.tgz
@@ -128,6 +139,16 @@ commands:
128
139
if [[ -e $logstar ]]; then tar -C $logsdir -xzf $logstar; fi
129
140
(cd bin/artifacts; tar -cf snapshots.tar snapshots/)
130
141
no_output_timeout : 40m
142
+ - early_return_for_forked_pull_requests
143
+ - run :
144
+ name : Build for platform (publish)
145
+ command : |
146
+ docker login -u redisfab -p $DOCKER_REDISFAB_PWD
147
+ cd opt/build/docker
148
+ for osnick in bionic xenial; do
149
+ make CPU=1 OSNICK=$osnick VERBOSE=1 publish
150
+ make GPU=1 OSNICK=$osnick VERBOSE=1 publish
151
+ done
131
152
- persist_to_workspace :
132
153
root : bin/
133
154
paths :
@@ -159,7 +180,7 @@ jobs:
159
180
- run :
160
181
name : Submodule checkout
161
182
command : git submodule update --init --recursive
162
- - setup-automation
183
+ - setup-build-system
163
184
- run :
164
185
name : lint
165
186
command : |
@@ -194,7 +215,7 @@ jobs:
194
215
keys :
195
216
- build-dependencies-{{ checksum "get_deps.sh" }}
196
217
# If no exact match is found will get dependencies from source
197
- - setup-automation
218
+ - setup-build-system
198
219
- run :
199
220
name : Install dependencies
200
221
command : |
@@ -228,11 +249,11 @@ jobs:
228
249
keys :
229
250
- build-dependencies-{{ checksum "get_deps.sh" }}
230
251
# If no exact match is found will get dependencies from source
231
- - setup-automation
252
+ - setup-build-system
232
253
- run :
233
254
name : Install dependencies
234
255
command : |
235
- ./opt/readies/bin/getredis -v 6 --valgrind --force
256
+ ./opt/readies/bin/getredis -v 6.0 --valgrind --force
236
257
./get_deps.sh cpu
237
258
- run :
238
259
name : Build for valgrind
0 commit comments