.gitlab-ci.yml 5.65 KB
Newer Older
1
2
3
4
5
6
7
---
variables:
  GIT_STRATEGY: clone
  GIT_SUBMODULE_STRATEGY: recursive

stages:
  - build
Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
8
  - build_container
9
10
11
  - test
  - deploy

Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
12

13
14
15
16
17
18
19
20
21
22
23
before_script:
  - rm -f .variables
  - touch .variables
  - |
      if [ "$CI_REGISTRY" = "git.ia.surfsara.nl:5050" ]
      then
        echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin  $CI_REGISTRY;
        echo "export REGISTRY=$CI_REGISTRY/$CI_PROJECT_NAMESPACE/irods-ci-server" >> .variables
      else
        echo $REGISTRY_PASSWORD | docker login -u $REGISTRY_USER --password-stdin  $REGISTRY;
      fi
Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
24
25
26
27
28
29
30
31
32
33
34
35
36
  - |

      if [ -z "${SECRET_DIR}" ]
      then
        if [ -e secret ]
        then
          SECRET_DIR=$( pwd )/ci/secret
        else
          SECRET_DIR=$( realpath ~/secret )
        fi
      fi
      echo "export SECRET_DIR=$SECRET_DIR" >> .variables

37
38
39
40
41
42
43
44
45
46
47
  - source .variables
  - docker-compose -f ci/docker-compose.yml down -v

after_script:
  - source .variables
  - docker-compose -f ci/docker-compose.yml rm -f
  - docker-compose -f ci/docker-compose.yml down -v

# ###################################
# build
# ###################################
Robert Verkerk's avatar
Robert Verkerk committed
48
49
   
build_4.1.11:
50
51
52
53
  stage: build
  tags:
    - irods
  variables:
Robert Verkerk's avatar
Robert Verkerk committed
54
    VERSION: centos7_4_1_11
55
56
57
  script:
    - source .variables
    - ./ci/shutdownall.sh
Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
58
    - ./ci/build.sh --build 0 ${VERSION}
59

Robert Verkerk's avatar
Robert Verkerk committed
60
build_4.1.12:
61
62
63
64
  stage: build
  tags:
    - irods
  variables:
Robert Verkerk's avatar
Robert Verkerk committed
65
    VERSION: centos7_4_1_12
66
67
68
  script:
    - source .variables
    - ./ci/shutdownall.sh
Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
69
    - ./ci/build.sh --build 0 ${VERSION}
70

Robert Verkerk's avatar
Robert Verkerk committed
71
build_4.2.6:
72
73
74
75
  stage: build
  tags:
    - irods
  variables:
Robert Verkerk's avatar
Robert Verkerk committed
76
    VERSION: centos7_4_2_6
77
78
  script:
    - source .variables
Robert Verkerk's avatar
Robert Verkerk committed
79
    - cat .variables
80
    - ./ci/shutdownall.sh
Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
81
    - ./ci/build.sh --build 0 ${VERSION}
82

Robert Verkerk's avatar
Robert Verkerk committed
83
build_4.2.7:
84
85
86
87
  stage: build
  tags:
    - irods
  variables:
Robert Verkerk's avatar
Robert Verkerk committed
88
89
90
91
92
93
94
95
96
97
98
99
    VERSION: centos7_4_2_7
  script:
    - source .variables
    - ./ci/shutdownall.sh
    - ./ci/build.sh --build 0 ${VERSION}

build_4.2.8:
  stage: build
  tags:
    - irods
  variables:
    VERSION: centos7_4_2_8
100
101
102
  script:
    - source .variables
    - ./ci/shutdownall.sh
Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
103
104
    - ./ci/build.sh --build 0 ${VERSION}

105
106
107
108
109
110
111
112
113
114
115
build_4.2.10:
  stage: build
  tags:
    - irods
  variables:
    VERSION: centos7_4_2_10
  script:
    - source .variables
    - ./ci/shutdownall.sh
    - ./ci/build.sh --build 0 ${VERSION}

Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
116
117
118
# #####################################
# Build container
# #####################################
Robert Verkerk's avatar
Robert Verkerk committed
119

Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
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
container_4.1.11:
  stage: build_container
  tags:
    - irods
  variables:
    VERSION: centos7_4_1_11
  script:
    - source .variables
    - ./ci/shutdownall.sh
    - ./ci/build_container.sh --build 0 ${VERSION}

container_4.1.12:
  stage: build_container
  tags:
    - irods
  variables:
    VERSION: centos7_4_1_12
  script:
    - source .variables
    - ./ci/shutdownall.sh
    - ./ci/build_container.sh --build 0 ${VERSION}

container_4.2.6:
  stage: build_container
  tags:
    - irods
  variables:
    VERSION: centos7_4_2_6
  script:
    - source .variables
    - ./ci/shutdownall.sh
    - ./ci/build_container.sh --build 0 ${VERSION}

container_4.2.7:
  stage: build_container
  tags:
    - irods
  variables:
    VERSION: centos7_4_2_7
  script:
    - source .variables
    - ./ci/shutdownall.sh
    - ./ci/build_container.sh --build 0 ${VERSION}
163

Robert Verkerk's avatar
Robert Verkerk committed
164
165
166
167
168
169
170
171
172
173
174
container_4.2.8:
  stage: build_container
  tags:
    - irods
  variables:
    VERSION: centos7_4_2_8
  script:
    - source .variables
    - ./ci/shutdownall.sh
    - ./ci/build_container.sh --build 0 ${VERSION}

175
176
177
178
179
180
181
182
183
184
185
container_4.2.10:
  stage: build_container
  tags:
    - irods
  variables:
    VERSION: centos7_4_2_10
  script:
    - source .variables
    - ./ci/shutdownall.sh
    - ./ci/build_container.sh --build 0 ${VERSION}

186
187
188
# ###################################
# test
# ###################################
Robert Verkerk's avatar
Robert Verkerk committed
189
190
191
192
193
194
195
196
197
198
199
200

test_4.1.12:
  stage: test
  tags:
    - irods
  variables:
    VERSION: centos7_4_1_12
  script:
    - source .variables
    - ./ci/shutdownall.sh
    - ./ci/test.sh ${VERSION}

201
202
203
204
205
206
207
208
test_4.2.6:
  stage: test
  tags:
    - irods
  variables:
    VERSION: centos7_4_2_6
  script:
    - source .variables
Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
209
    - cat .variables
210
211
212
    - ./ci/shutdownall.sh
    - ./ci/test.sh ${VERSION}

Robert Verkerk's avatar
Robert Verkerk committed
213
test_4.2.7:
214
215
216
217
  stage: test
  tags:
    - irods
  variables:
Robert Verkerk's avatar
Robert Verkerk committed
218
219
220
221
222
223
224
225
226
227
228
229
230
    VERSION: centos7_4_2_7
  script:
    - source .variables
    - cat .variables
    - ./ci/shutdownall.sh
    - ./ci/test.sh ${VERSION}

test_4.2.8:
  stage: test
  tags:
    - irods
  variables:
    VERSION: centos7_4_2_8
231
232
  script:
    - source .variables
Robert Verkerk's avatar
Robert Verkerk committed
233
    - cat .variables
234
235
236
    - ./ci/shutdownall.sh
    - ./ci/test.sh ${VERSION}

237
238
239
240
241
242
243
244
245
246
247
248
test_4.2.10:
  stage: test
  tags:
    - irods
  variables:
    VERSION: centos7_4_2_10
  script:
    - source .variables
    - cat .variables
    - ./ci/shutdownall.sh
    - ./ci/test.sh ${VERSION}

249
# ###################################
Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
250
# deploy
251
# ###################################
Robert Verkerk's avatar
Robert Verkerk committed
252

Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
253
deploy_4.1.11:
254
255
256
257
  stage: deploy
  tags:
    - irods
  variables:
Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
258
    VERSION: centos7_4_1_11
259
260
261
262
  script:
    - source .variables
    - ./ci/deploy.sh ${VERSION}

Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
263
deploy_4.1.12:
264
265
266
267
  stage: deploy
  tags:
    - irods
  variables:
Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
268
    VERSION: centos7_4_1_12
269
270
271
272
  script:
    - source .variables
    - ./ci/deploy.sh ${VERSION}

Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
273
deploy_4.2.6:
274
275
276
277
  stage: deploy
  tags:
    - irods
  variables:
Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
278
    VERSION: centos7_4_2_6
279
280
281
282
  script:
    - source .variables
    - ./ci/deploy.sh ${VERSION}

Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
283
deploy_4.2.7:
284
285
286
287
  stage: deploy
  tags:
    - irods
  variables:
Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
288
    VERSION: centos7_4_2_7
289
290
291
  script:
    - source .variables
    - ./ci/deploy.sh ${VERSION}
Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
292

Robert Verkerk's avatar
Robert Verkerk committed
293
294
295
296
297
298
299
300
301
deploy_4.2.8:
  stage: deploy
  tags:
    - irods
  variables:
    VERSION: centos7_4_2_8
  script:
    - source .variables
    - ./ci/deploy.sh ${VERSION}
Stefan Wolfsheimer's avatar
Stefan Wolfsheimer committed
302

303
304
305
306
307
308
309
310
311
deploy_4.2.10:
  stage: deploy
  tags:
    - irods
  variables:
    VERSION: centos7_4_2_10
  script:
    - source .variables
    - ./ci/deploy.sh ${VERSION}