Merge pull request #10158 from tobiasd/20210420-it
[friendica.git/.git] / mods / .drone.yml
1 # Drone.io test YML-File, currently disabled
2 # See https://github.com/friendica/friendica/pull/7643 for further infos
3 kind: pipeline
4 name: mysql8.0-php7.1
5
6 steps:
7 - name: mysql8.0-php7.1
8   image: friendicaci/php7.1:php7.1.32
9   commands:
10       - NOCOVERAGE=true ./autotest.sh mysql
11   environment:
12     MYSQL_USERNAME: friendica
13     MYSQL_PASSWORD: friendica
14     MYSQL_DATABASE: friendica
15     MYSQL_HOST: mysql
16
17 node:
18   test: db
19
20 services:
21 - name: mysql
22   image: mysql:8.0
23   command: [ "--default-authentication-plugin=mysql_native_password" ]
24   environment:
25     MYSQL_ROOT_PASSWORD: friendica
26     MYSQL_USER: friendica
27     MYSQL_PASSWORD: friendica
28     MYSQL_DATABASE: friendica
29   volumes:
30     - name: cache
31       path: /var/lib/mysql
32
33 volumes:
34 - name: cache
35   temp: {}
36
37 trigger:
38   branch:
39 #    - stable
40     - develop
41 #    - "*-rc"
42 #  event:
43 #    - pull_request
44 #    - push
45 ---
46 kind: pipeline
47 name: mysql8.0-php7.2
48
49 steps:
50 - name: mysql8.0-php7.2
51   image: friendicaci/php7.2:php7.2.22
52   commands:
53     - NOCOVERAGE=true ./autotest.sh mysql
54   environment:
55     MYSQL_USERNAME: friendica
56     MYSQL_PASSWORD: friendica
57     MYSQL_DATABASE: friendica
58     MYSQL_HOST: mysql
59
60 node:
61   test: db
62
63 services:
64 - name: mysql
65   image: mysql:8.0
66   command: [ "--default-authentication-plugin=mysql_native_password" ]
67   environment:
68     MYSQL_ROOT_PASSWORD: friendica
69     MYSQL_USER: friendica
70     MYSQL_PASSWORD: friendica
71     MYSQL_DATABASE: friendica
72   volumes:
73     - name: cache
74       path: /var/lib/mysql
75
76 volumes:
77   - name: cache
78     temp: {}
79
80 trigger:
81   branch:
82 #    - stable
83     - develop
84 #    - "*-rc"
85 #  event:
86 #    - pull_request
87 #    - push
88 ---
89 kind: pipeline
90 name: mysql8.0-php7.3
91
92 steps:
93 - name: mysql8.0-php7.3
94   image: friendicaci/php7.3:php7.3.9
95   commands:
96       - NOCOVERAGE=true ./autotest.sh mysql
97   environment:
98       MYSQL_USERNAME: friendica
99       MYSQL_PASSWORD: friendica
100       MYSQL_DATABASE: friendica
101       MYSQL_HOST: mysql
102
103 node:
104   test: db
105
106 services:
107 - name: mysql
108   image: mysql:8.0
109   command: [ "--default-authentication-plugin=mysql_native_password" ]
110   environment:
111       MYSQL_ROOT_PASSWORD: friendica
112       MYSQL_USER: friendica
113       MYSQL_PASSWORD: friendica
114       MYSQL_DATABASE: friendica
115   volumes:
116     - name: cache
117       path: /var/lib/mysql
118
119 volumes:
120   - name: cache
121     temp: {}
122
123 trigger:
124   branch:
125 #    - stable
126     - develop
127 #    - "*-rc"
128 #  event:
129 #    - pull_request
130 #    - push
131 ---
132 kind: pipeline
133 name: mariadb10.1-php7.1
134
135 steps:
136 - name: mariadb10.1-php7.1
137   image: friendicaci/php7.1:php7.1.32
138   commands:
139       - phpenmod xdebug
140       - sleep 20
141       - ./autotest.sh mariadb
142       - wget https://codecov.io/bash -O codecov.sh
143       - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 5ce7d64e-07b4-4adf-8700-e2eae27e14ec -f tests/autotest-clover.xml; fi"
144       - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 5ce7d64e-07b4-4adf-8700-e2eae27e14ec -f tests/autotest-clover.xml; fi"
145   environment:
146       MYSQL_USER: friendica
147       MYSQL_PASSWORD: friendica
148       MYSQL_DATABASE: friendica
149       MYSQL_HOST: mariadb
150
151 node:
152   test: db
153
154 services:
155 - name: mariadb
156   image: mariadb:10.1
157   environment:
158       MYSQL_ROOT_PASSWORD: friendica
159       MYSQL_USER: friendica
160       MYSQL_PASSWORD: friendica
161       MYSQL_DATABASE: friendica
162   volumes:
163     - name: cache
164       path: /var/lib/mysql
165
166 volumes:
167   - name: cache
168     temp: {}
169
170 trigger:
171   branch:
172 #    - stable
173     - develop
174 #    - "*-rc"
175 #  event:
176 #    - pull_request
177 #    - push
178 ---
179 kind: pipeline
180 name: mariadb10.1-php7.2
181
182 steps:
183 - name: mariadb10.1-php7.2
184   image: friendicaci/php7.2:php7.2.22
185   commands:
186       - NOCOVERAGE=true ./autotest.sh mariadb
187   environment:
188       MYSQL_USER: friendica
189       MYSQL_PASSWORD: friendica
190       MYSQL_DATABASE: friendica
191       MYSQL_HOST: mariadb
192
193 node:
194   test: db
195
196 services:
197 - name: mariadb
198   image: mariadb:10.1
199   environment:
200       MYSQL_ROOT_PASSWORD: friendica
201       MYSQL_USER: friendica
202       MYSQL_PASSWORD: friendica
203       MYSQL_DATABASE: friendica
204   volumes:
205     - name: cache
206       path: /var/lib/mysql
207
208 volumes:
209   - name: cache
210     temp: {}
211
212 trigger:
213   branch:
214 #    - stable
215     - develop
216 #    - "*-rc"
217 #  event:
218 #    - pull_request
219 #    - push
220 ---
221 kind: pipeline
222 name: mariadb10.1-php7.3
223
224 steps:
225 - name: mariadb10.1-php7.3
226   image: friendicaci/php7.3:php7.3.9
227   commands:
228       - NOCOVERAGE=true ./autotest.sh mariadb
229   environment:
230       MYSQL_USER: friendica
231       MYSQL_PASSWORD: friendica
232       MYSQL_DATABASE: friendica
233       MYSQL_HOST: mariadb
234
235 node:
236   test: db
237
238 services:
239 - name: mariadb
240   image: mariadb:10.1
241   environment:
242       MYSQL_ROOT_PASSWORD: friendica
243       MYSQL_USER: friendica
244       MYSQL_PASSWORD: friendica
245       MYSQL_DATABASE: friendica
246   volumes:
247     - name: cache
248       path: /var/lib/mysql
249
250 volumes:
251   - name: cache
252     temp: {}
253
254 trigger:
255   branch:
256 #    - stable
257     - develop
258 #    - "*-rc"
259 #  event:
260 #    - pull_request
261 #    - push
262 ---
263 kind: pipeline
264 name: redis-php7.1
265
266 steps:
267 - name: redis-php7.1
268   image: friendicaci/php7.1:php7.1.32
269   commands:
270     - phpenmod xdebug
271     - sleep 20
272     - NOINSTALL=true TEST_SELECTION=REDIS ./autotest.sh mysql
273     - wget https://codecov.io/bash -O codecov.sh
274     - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 5ce7d64e-07b4-4adf-8700-e2eae27e14ec -f tests/autotest-clover.xml; fi"
275     - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 5ce7d64e-07b4-4adf-8700-e2eae27e14ec -f tests/autotest-clover.xml; fi"
276   environment:
277       REDIS_HOST: redis
278
279 services:
280 - name: redis
281   image: redis
282
283 trigger:
284   branch:
285 #    - stable
286     - develop
287 #    - "*-rc"
288 #  event:
289 #    - pull_request
290 #    - push
291 ---
292 kind: pipeline
293 name: redis-php7.2
294
295 steps:
296 - name: redis-php7.2
297   image: friendicaci/php7.2:php7.2.22
298   commands:
299       - NOCOVERAGE=true NOINSTALL=true TEST_SELECTION=REDIS ./autotest.sh mysql
300   environment:
301     REDIS_HOST: redis
302
303 services:
304 - name: redis
305   image: redis
306
307 trigger:
308   branch:
309 #    - stable
310     - develop
311 #    - "*-rc"
312 #  event:
313 #    - pull_request
314 #    - push
315 ---
316 kind: pipeline
317 name: redis-php7.3
318
319 steps:
320 - name: redis-php7.3
321   image: friendicaci/php7.3:php7.3.9
322   commands:
323       - NOCOVERAGE=true NOINSTALL=true TEST_SELECTION=REDIS ./autotest.sh mysql
324   environment:
325     REDIS_HOST: redis
326
327 services:
328 - name: redis
329   image: redis
330
331 trigger:
332   branch:
333 #    - stable
334     - develop
335 #    - "*-rc"
336 #  event:
337 #    - pull_request
338 #    - push
339
340 ---
341 kind: pipeline
342 name: memcache-php7.1
343
344 steps:
345 - name: memcache-php7.1
346   image: friendicaci/php7.1:php7.1.32
347   commands:
348       - phpenmod xdebug
349       - sleep 20
350       - NOINSTALL=true TEST_SELECTION=MEMCACHE ./autotest.sh mysql
351       - wget https://codecov.io/bash -O codecov.sh
352       - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 5ce7d64e-07b4-4adf-8700-e2eae27e14ec -f tests/autotest-clover.xml; fi"
353       - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 5ce7d64e-07b4-4adf-8700-e2eae27e14ec -f tests/autotest-clover.xml; fi"
354   environment:
355       MEMCACHE_HOST: memcached
356
357 services:
358 - name: memcached
359   image: memcached
360
361 trigger:
362   branch:
363 #    - stable
364     - develop
365 #    - "*-rc"
366 #  event:
367 #    - pull_request
368 #    - push
369 ---
370 kind: pipeline
371 name: memcache-php7.2
372
373 steps:
374 - name: memcache-php7.2
375   image: friendicaci/php7.2:php7.2.22
376   commands:
377       - NOCOVERAGE=true NOINSTALL=true TEST_SELECTION=MEMCACHE ./autotest.sh mysql
378   environment:
379       MEMCACHE_HOST: memcached
380
381 services:
382 - name: memcached
383   image: memcached
384
385 trigger:
386   branch:
387 #    - stable
388     - develop
389 #    - "*-rc"
390 #  event:
391 #    - pull_request
392 #    - push
393 ---
394 kind: pipeline
395 name: memcache-php7.3
396
397 steps:
398 - name: memcache-php7.3
399   image: friendicaci/php7.3:php7.3.9
400   commands:
401       - NOCOVERAGE=true NOINSTALL=true TEST_SELECTION=MEMCACHE ./autotest.sh mysql
402   environment:
403       MEMCACHE_HOST: memcached
404
405 services:
406 - name: memcached
407   image: memcached
408
409 trigger:
410   branch:
411 #    - stable
412     - develop
413 #    - "*-rc"
414 #  event:
415 #    - pull_request
416 #    - push
417
418
419 ---
420 kind: pipeline
421 name: memcached-php7.1
422
423 steps:
424 - name: memcached-php7.1
425   image: friendicaci/php7.1:php7.1.32
426   commands:
427       - phpenmod xdebug
428       - sleep 20
429       - NOINSTALL=true TEST_SELECTION=MEMCACHED ./autotest.sh mysql
430       - wget https://codecov.io/bash -O codecov.sh
431       - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 5ce7d64e-07b4-4adf-8700-e2eae27e14ec -f tests/autotest-clover.xml; fi"
432       - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 5ce7d64e-07b4-4adf-8700-e2eae27e14ec -f tests/autotest-clover.xml; fi"
433   environment:
434       MEMCACHED_HOST: memcached
435
436 services:
437 - name: memcached
438   image: memcached
439
440 trigger:
441   branch:
442 #    - stable
443     - develop
444 #    - "*-rc"
445 #  event:
446 #    - pull_request
447 #    - push
448 ---
449 kind: pipeline
450 name: memcached-php7.2
451
452 steps:
453 - name: memcached-php7.2
454   image: friendicaci/php7.2:php7.2.22
455   commands:
456       - NOCOVERAGE=true NOINSTALL=true TEST_SELECTION=MEMCACHED ./autotest.sh mysql
457   environment:
458       MEMCACHED_HOST: memcached
459
460 services:
461 - name: memcached
462   image: memcached
463
464 trigger:
465   branch:
466 #    - stable
467     - develop
468 #    - "*-rc"
469 #  event:
470 #    - pull_request
471 #    - push
472 ---
473 kind: pipeline
474 name: memcached-php7.3
475
476 steps:
477 - name: memcached-php7.3
478   image: friendicaci/php7.3:php7.3.9
479   commands:
480       - NOCOVERAGE=true NOINSTALL=true TEST_SELECTION=MEMCACHED ./autotest.sh mysql
481   environment:
482       MEMCACHED_HOST: memcached
483
484 services:
485 - name: memcached
486   image: memcached
487
488 trigger:
489   branch:
490 #    - stable
491     - develop
492 #    - "*-rc"
493 #  event:
494 #    - pull_request
495 #    - push