.drone.yml 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769
  1. ---
  2. kind: pipeline
  3. name: checkers
  4. steps:
  5. - name: submodules
  6. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  7. commands:
  8. - git submodule update --init
  9. - name: checkers
  10. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  11. commands:
  12. - ./autotest-checkers.sh
  13. secrets: [ github_token ]
  14. trigger:
  15. branch:
  16. - master
  17. - stable*
  18. event:
  19. - pull_request
  20. - push
  21. ---
  22. kind: pipeline
  23. name: litmus
  24. steps:
  25. - name: submodules
  26. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  27. commands:
  28. - git submodule update --init
  29. - name: litmus-v1
  30. image: ghcr.io/nextcloud/continuous-integration-litmus-php8.0:latest
  31. commands:
  32. - bash tests/travis/install.sh sqlite
  33. - bash apps/dav/tests/travis/litmus-v1/script.sh
  34. - name: litmus-v2
  35. image: ghcr.io/nextcloud/continuous-integration-litmus-php8.0:latest
  36. commands:
  37. - bash tests/travis/install.sh sqlite
  38. - bash apps/dav/tests/travis/litmus-v2/script.sh
  39. trigger:
  40. branch:
  41. - master
  42. - stable*
  43. event:
  44. - pull_request
  45. - push
  46. ---
  47. kind: pipeline
  48. name: caldavtester-new-endpoint
  49. steps:
  50. - name: submodules
  51. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  52. commands:
  53. - git submodule update --init
  54. - name: caldavtester-new-endpoint
  55. image: ghcr.io/nextcloud/continuous-integration-litmus-php8.0:latest
  56. commands:
  57. - bash tests/travis/install.sh sqlite
  58. - bash apps/dav/tests/travis/caldav/install.sh
  59. - bash apps/dav/tests/travis/caldav/script-new-endpoint.sh
  60. trigger:
  61. branch:
  62. - master
  63. - stable*
  64. event:
  65. - pull_request
  66. - push
  67. ---
  68. kind: pipeline
  69. name: caldavtester-old-endpoint
  70. steps:
  71. - name: submodules
  72. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  73. commands:
  74. - git submodule update --init
  75. - name: caldavtester-old-endpoint
  76. image: ghcr.io/nextcloud/continuous-integration-litmus-php8.0:latest
  77. commands:
  78. - bash tests/travis/install.sh sqlite
  79. - bash apps/dav/tests/travis/caldav/install.sh
  80. - bash apps/dav/tests/travis/caldav/script-old-endpoint.sh
  81. trigger:
  82. branch:
  83. - master
  84. - stable*
  85. event:
  86. - pull_request
  87. - push
  88. ---
  89. kind: pipeline
  90. name: carddavtester-new-endpoint
  91. steps:
  92. - name: submodules
  93. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  94. commands:
  95. - git submodule update --init
  96. - name: carddavtester-new-endpoint
  97. image: ghcr.io/nextcloud/continuous-integration-litmus-php8.0:latest
  98. commands:
  99. - bash tests/travis/install.sh sqlite
  100. - bash apps/dav/tests/travis/carddav/install.sh
  101. - bash apps/dav/tests/travis/carddav/script-new-endpoint.sh
  102. trigger:
  103. branch:
  104. - master
  105. - stable*
  106. event:
  107. - pull_request
  108. - push
  109. ---
  110. kind: pipeline
  111. name: carddavtester-old-endpoint
  112. steps:
  113. - name: submodules
  114. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  115. commands:
  116. - git submodule update --init
  117. - name: carddavtester-old-endpoint
  118. image: ghcr.io/nextcloud/continuous-integration-litmus-php8.0:latest
  119. commands:
  120. - bash tests/travis/install.sh sqlite
  121. - bash apps/dav/tests/travis/carddav/install.sh
  122. - bash apps/dav/tests/travis/carddav/script-old-endpoint.sh
  123. trigger:
  124. branch:
  125. - master
  126. - stable*
  127. event:
  128. - pull_request
  129. - push
  130. ---
  131. kind: pipeline
  132. name: samba
  133. steps:
  134. - name: submodules
  135. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  136. commands:
  137. - git submodule update --init
  138. - name: sqlite-php8.0-samba-native
  139. image: ghcr.io/nextcloud/continuous-integration-samba-native-php8.0:latest
  140. commands:
  141. - smbd -D -FS &
  142. - ./autotest-external.sh sqlite smb-linux
  143. - wget https://codecov.io/bash -O codecov.sh
  144. - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
  145. - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
  146. - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-smb-linux.xml; fi"
  147. - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-smb-linux.xml; fi"
  148. # Temporarily disabled because it times out for unknown reasons 98% of the time
  149. #- name: sqlite-php8.0-samba-non-native
  150. # image: ghcr.io/nextcloud/continuous-integration-samba-non-native-php8.0:latest
  151. # commands:
  152. # - smbd -D -FS &
  153. # - ./autotest-external.sh sqlite smb-linux
  154. # - wget https://codecov.io/bash -O codecov.sh
  155. # - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
  156. # - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
  157. # - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-smb-linux.xml; fi"
  158. # - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-smb-linux.xml; fi"
  159. trigger:
  160. branch:
  161. - master
  162. - stable*
  163. event:
  164. - pull_request
  165. - push
  166. ---
  167. kind: pipeline
  168. name: sqlite-php8.0-webdav-apache
  169. steps:
  170. - name: submodules
  171. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  172. commands:
  173. - git submodule update --init
  174. - name: sqlite-php8.0-webdav-apache
  175. image: ghcr.io/nextcloud/continuous-integration-webdav-apache-php8.0:latest
  176. commands:
  177. - apache2ctl start
  178. - ./autotest-external.sh sqlite webdav-apachedrone
  179. - wget https://codecov.io/bash -O codecov.sh
  180. - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
  181. - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
  182. - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-webdav-apachedrone.xml; fi"
  183. - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-webdav-apachedrone.xml; fi"
  184. services:
  185. - name: cache
  186. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  187. trigger:
  188. branch:
  189. - master
  190. - stable*
  191. event:
  192. - pull_request
  193. - push
  194. ---
  195. kind: pipeline
  196. name: nodb
  197. steps:
  198. - name: submodules
  199. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  200. commands:
  201. - git submodule update --init
  202. - name: nodb-php8.0
  203. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  204. commands:
  205. - bash tests/drone-run-php-tests.sh || exit 0
  206. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  207. services:
  208. - name: cache
  209. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  210. trigger:
  211. branch:
  212. - master
  213. - stable*
  214. event:
  215. - pull_request
  216. - push
  217. ---
  218. kind: pipeline
  219. name: sqlite
  220. steps:
  221. - name: submodules
  222. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  223. commands:
  224. - git submodule update --init
  225. - name: sqlite-php8.0
  226. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  227. commands:
  228. - bash tests/drone-run-php-tests.sh || exit 0
  229. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  230. services:
  231. - name: cache
  232. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  233. trigger:
  234. branch:
  235. - master
  236. - stable*
  237. event:
  238. - pull_request
  239. - push
  240. ---
  241. kind: pipeline
  242. name: mariadb10.3-php8.0
  243. steps:
  244. - name: submodules
  245. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  246. commands:
  247. - git submodule update --init
  248. - name: mariadb10.3-php8.0
  249. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  250. commands:
  251. - bash tests/drone-run-php-tests.sh || exit 0
  252. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mariadb
  253. services:
  254. - name: cache
  255. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  256. - name: mariadb
  257. image: ghcr.io/nextcloud/continuous-integration-mariadb-10.3:latest
  258. environment:
  259. MYSQL_ROOT_PASSWORD: owncloud
  260. MYSQL_USER: oc_autotest
  261. MYSQL_PASSWORD: owncloud
  262. MYSQL_DATABASE: oc_autotest
  263. command:
  264. - --sql-mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
  265. tmpfs:
  266. - /var/lib/mysql
  267. trigger:
  268. branch:
  269. - master
  270. - stable*
  271. event:
  272. - pull_request
  273. - push
  274. ---
  275. kind: pipeline
  276. name: mariadb10.5-php8.0
  277. steps:
  278. - name: submodules
  279. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  280. commands:
  281. - git submodule update --init
  282. - name: mariadb10.5-php8.0
  283. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  284. commands:
  285. - bash tests/drone-run-php-tests.sh || exit 0
  286. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mariadb
  287. services:
  288. - name: cache
  289. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  290. - name: mariadb
  291. image: ghcr.io/nextcloud/continuous-integration-mariadb-10.5:latest
  292. environment:
  293. MYSQL_ROOT_PASSWORD: owncloud
  294. MYSQL_USER: oc_autotest
  295. MYSQL_PASSWORD: owncloud
  296. MYSQL_DATABASE: oc_autotest
  297. command:
  298. - --sql-mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
  299. tmpfs:
  300. - /var/lib/mysql
  301. trigger:
  302. branch:
  303. - master
  304. - stable*
  305. event:
  306. - pull_request
  307. - push
  308. ---
  309. kind: pipeline
  310. name: mariadb10.6-php8.0
  311. steps:
  312. - name: submodules
  313. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  314. commands:
  315. - git submodule update --init
  316. - name: mariadb10.6-php8.0
  317. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  318. commands:
  319. - bash tests/drone-run-php-tests.sh || exit 0
  320. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mariadb
  321. services:
  322. - name: cache
  323. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  324. - name: mariadb
  325. image: ghcr.io/nextcloud/continuous-integration-mariadb-10.6:latest
  326. environment:
  327. MYSQL_ROOT_PASSWORD: owncloud
  328. MYSQL_USER: oc_autotest
  329. MYSQL_PASSWORD: owncloud
  330. MYSQL_DATABASE: oc_autotest
  331. command:
  332. - --sql-mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
  333. tmpfs:
  334. - /var/lib/mysql
  335. trigger:
  336. branch:
  337. - master
  338. - stable*
  339. event:
  340. - pull_request
  341. - push
  342. ---
  343. kind: pipeline
  344. name: mariadb10.11-php8.2
  345. steps:
  346. - name: submodules
  347. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  348. commands:
  349. - git submodule update --init
  350. - name: mariadb10.11-php8.2
  351. image: ghcr.io/nextcloud/continuous-integration-php8.2:latest
  352. commands:
  353. - bash tests/drone-run-php-tests.sh || exit 0
  354. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mariadb
  355. services:
  356. - name: cache
  357. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  358. - name: mariadb
  359. image: ghcr.io/nextcloud/continuous-integration-mariadb-10.11:latest
  360. environment:
  361. MYSQL_ROOT_PASSWORD: owncloud
  362. MYSQL_USER: oc_autotest
  363. MYSQL_PASSWORD: owncloud
  364. MYSQL_DATABASE: oc_autotest
  365. command:
  366. - --sql-mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
  367. tmpfs:
  368. - /var/lib/mysql
  369. trigger:
  370. branch:
  371. - master
  372. - stable*
  373. event:
  374. - pull_request
  375. - push
  376. ---
  377. kind: pipeline
  378. name: mysql8.0-php8.0
  379. steps:
  380. - name: submodules
  381. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  382. commands:
  383. - git submodule update --init
  384. - name: mysql-php8.0
  385. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  386. commands:
  387. - bash tests/drone-run-php-tests.sh || exit 0
  388. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  389. services:
  390. - name: cache
  391. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  392. - name: mysql
  393. image: ghcr.io/nextcloud/continuous-integration-mysql-8.0:mysql-8.0
  394. command:
  395. - --default-authentication-plugin=mysql_native_password
  396. - --sql-mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
  397. environment:
  398. MYSQL_ROOT_PASSWORD: owncloud
  399. MYSQL_USER: oc_autotest
  400. MYSQL_PASSWORD: owncloud
  401. MYSQL_DATABASE: oc_autotest
  402. tmpfs:
  403. - /var/lib/mysql
  404. trigger:
  405. branch:
  406. - master
  407. - stable*
  408. event:
  409. - pull_request
  410. - push
  411. ---
  412. kind: pipeline
  413. name: postgres10-php8.0
  414. steps:
  415. - name: submodules
  416. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  417. commands:
  418. - git submodule update --init
  419. - name: postgres-php8.0
  420. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  421. commands:
  422. - bash tests/drone-run-php-tests.sh || exit 0
  423. - sleep 10 # gives the database enough time to initialize
  424. - POSTGRES=10 NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  425. services:
  426. - name: cache
  427. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  428. - name: postgres-10
  429. image: ghcr.io/nextcloud/continuous-integration-postgres-10:postgres-10
  430. environment:
  431. POSTGRES_USER: oc_autotest
  432. POSTGRES_DB: oc_autotest
  433. POSTGRES_PASSWORD: owncloud
  434. tmpfs:
  435. - /var/lib/postgresql/data
  436. trigger:
  437. branch:
  438. - master
  439. - stable*
  440. event:
  441. - pull_request
  442. - push
  443. ---
  444. kind: pipeline
  445. name: postgres11-php8.0
  446. steps:
  447. - name: submodules
  448. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  449. commands:
  450. - git submodule update --init
  451. - name: postgres-php8.0
  452. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  453. commands:
  454. - bash tests/drone-run-php-tests.sh || exit 0
  455. - sleep 10 # gives the database enough time to initialize
  456. - POSTGRES=11 NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  457. services:
  458. - name: cache
  459. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  460. - name: postgres-11
  461. image: ghcr.io/nextcloud/continuous-integration-postgres-11:postgres-11
  462. environment:
  463. POSTGRES_USER: oc_autotest
  464. POSTGRES_DB: oc_autotest
  465. POSTGRES_PASSWORD: owncloud
  466. tmpfs:
  467. - /var/lib/postgresql/data
  468. trigger:
  469. branch:
  470. - master
  471. - stable*
  472. event:
  473. - pull_request
  474. - push
  475. ---
  476. kind: pipeline
  477. name: postgres13-php8.0
  478. steps:
  479. - name: submodules
  480. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  481. commands:
  482. - git submodule update --init
  483. - name: postgres-php8.0
  484. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  485. commands:
  486. - bash tests/drone-run-php-tests.sh || exit 0
  487. - sleep 10 # gives the database enough time to initialize
  488. - POSTGRES=13 NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  489. services:
  490. - name: cache
  491. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  492. - name: postgres-13
  493. image: ghcr.io/nextcloud/continuous-integration-postgres-13:postgres-13
  494. environment:
  495. POSTGRES_USER: oc_autotest
  496. POSTGRES_DB: oc_autotest
  497. POSTGRES_PASSWORD: owncloud
  498. tmpfs:
  499. - /var/lib/postgresql/data
  500. trigger:
  501. branch:
  502. - master
  503. - stable*
  504. event:
  505. - pull_request
  506. - push
  507. ---
  508. kind: pipeline
  509. name: postgres15-php8.0
  510. steps:
  511. - name: submodules
  512. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  513. commands:
  514. - git submodule update --init
  515. - name: postgres-php8.0
  516. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  517. commands:
  518. - bash tests/drone-run-php-tests.sh || exit 0
  519. - sleep 10 # gives the database enough time to initialize
  520. - POSTGRES=15 NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  521. services:
  522. - name: cache
  523. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  524. - name: postgres-15
  525. image: ghcr.io/nextcloud/continuous-integration-postgres-15:latest
  526. environment:
  527. POSTGRES_USER: oc_autotest
  528. POSTGRES_DB: oc_autotest
  529. POSTGRES_PASSWORD: owncloud
  530. tmpfs:
  531. - /var/lib/postgresql/data
  532. trigger:
  533. branch:
  534. - master
  535. - stable*
  536. event:
  537. - pull_request
  538. - push
  539. ---
  540. kind: pipeline
  541. name: integration-capabilities_features
  542. steps:
  543. - name: submodules
  544. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  545. commands:
  546. - git submodule update --init
  547. - name: integration-capabilities_features
  548. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  549. commands:
  550. - bash tests/drone-run-integration-tests.sh || exit 0
  551. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  552. - cd build/integration
  553. - ./run.sh capabilities_features/capabilities.feature
  554. trigger:
  555. branch:
  556. - master
  557. - stable*
  558. event:
  559. - pull_request
  560. - push
  561. ---
  562. kind: pipeline
  563. name: integration-collaboration_features
  564. steps:
  565. - name: submodules
  566. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  567. commands:
  568. - git submodule update --init
  569. - name: integration-collaboration_features
  570. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  571. commands:
  572. - bash tests/drone-run-integration-tests.sh || exit 0
  573. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  574. - cd build/integration
  575. - ./run.sh collaboration_features/
  576. trigger:
  577. branch:
  578. - master
  579. - stable*
  580. event:
  581. - pull_request
  582. - push
  583. ---
  584. kind: pipeline
  585. name: integration-federation_features
  586. steps:
  587. - name: submodules
  588. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  589. commands:
  590. - git submodule update --init
  591. - name: integration-federation_features
  592. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  593. commands:
  594. - bash tests/drone-run-integration-tests.sh || exit 0
  595. - ./occ maintenance:install --admin-pass=admin
  596. - cd build/integration
  597. - ./run.sh federation_features/
  598. trigger:
  599. branch:
  600. - master
  601. - stable*
  602. event:
  603. - pull_request
  604. - push
  605. ---
  606. kind: pipeline
  607. name: integration-auth
  608. steps:
  609. - name: submodules
  610. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  611. commands:
  612. - git submodule update --init
  613. - name: integration-auth
  614. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  615. commands:
  616. - bash tests/drone-run-integration-tests.sh || exit 0
  617. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  618. - cd build/integration
  619. - ./run.sh features/auth.feature
  620. trigger:
  621. branch:
  622. - master
  623. - stable*
  624. event:
  625. - pull_request
  626. - push
  627. ---
  628. kind: pipeline
  629. name: integration-avatar
  630. steps:
  631. - name: submodules
  632. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  633. commands:
  634. - git submodule update --init
  635. - name: integration-avatar
  636. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  637. commands:
  638. - bash tests/drone-run-integration-tests.sh || exit 0
  639. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  640. - cd build/integration
  641. - ./run.sh features/avatar.feature
  642. trigger:
  643. branch:
  644. - master
  645. - stable*
  646. event:
  647. - pull_request
  648. - push
  649. ---
  650. kind: pipeline
  651. name: integration-maintenance-mode
  652. steps:
  653. - name: submodules
  654. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  655. commands:
  656. - git submodule update --init
  657. - name: integration-maintenance-mode
  658. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  659. commands:
  660. - bash tests/drone-run-integration-tests.sh || exit 0
  661. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  662. - cd build/integration
  663. - ./run.sh features/maintenance-mode.feature
  664. trigger:
  665. branch:
  666. - master
  667. - stable*
  668. event:
  669. - pull_request
  670. - push
  671. ---
  672. kind: pipeline
  673. name: integration-ratelimiting
  674. steps:
  675. - name: submodules
  676. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  677. commands:
  678. - git submodule update --init
  679. - name: integration-ratelimiting
  680. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  681. commands:
  682. - bash tests/drone-run-integration-tests.sh || exit 0
  683. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  684. - ./occ config:system:set redis host --value=cache
  685. - ./occ config:system:set redis port --value=6379 --type=integer
  686. - ./occ config:system:set redis timeout --value=0 --type=integer
  687. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  688. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  689. - ./occ app:enable testing
  690. - cd build/integration
  691. - ./run.sh features/ratelimiting.feature
  692. services:
  693. - name: cache
  694. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  695. trigger:
  696. branch:
  697. - master
  698. - stable*
  699. event:
  700. - pull_request
  701. - push
  702. ---
  703. kind: pipeline
  704. name: integration-carddav
  705. steps:
  706. - name: submodules
  707. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  708. commands:
  709. - git submodule update --init
  710. - name: integration-carddav
  711. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  712. commands:
  713. - bash tests/drone-run-integration-tests.sh || exit 0
  714. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  715. - cd build/integration
  716. - ./run.sh features/carddav.feature
  717. trigger:
  718. branch:
  719. - master
  720. - stable*
  721. event:
  722. - pull_request
  723. - push
  724. ---
  725. kind: pipeline
  726. name: integration-dav-v2
  727. steps:
  728. - name: submodules
  729. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  730. commands:
  731. - git submodule update --init
  732. - name: integration-dav-v2
  733. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  734. commands:
  735. - bash tests/drone-run-integration-tests.sh || exit 0
  736. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  737. - cd build/integration
  738. - ./run.sh features/dav-v2.feature
  739. trigger:
  740. branch:
  741. - master
  742. - stable*
  743. event:
  744. - pull_request
  745. - push
  746. ---
  747. kind: pipeline
  748. name: integration-ocs-v1
  749. steps:
  750. - name: submodules
  751. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  752. commands:
  753. - git submodule update --init
  754. - name: integration-ocs-v1
  755. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  756. commands:
  757. - bash tests/drone-run-integration-tests.sh || exit 0
  758. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  759. - cd build/integration
  760. - ./run.sh features/ocs-v1.feature
  761. trigger:
  762. branch:
  763. - master
  764. - stable*
  765. event:
  766. - pull_request
  767. - push
  768. ---
  769. kind: pipeline
  770. name: integration-checksums-v1
  771. steps:
  772. - name: submodules
  773. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  774. commands:
  775. - git submodule update --init
  776. - name: integration-checksums-v1
  777. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  778. commands:
  779. - bash tests/drone-run-integration-tests.sh || exit 0
  780. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  781. - cd build/integration
  782. - ./run.sh features/checksums.feature
  783. trigger:
  784. branch:
  785. - master
  786. - stable*
  787. event:
  788. - pull_request
  789. - push
  790. ---
  791. kind: pipeline
  792. name: integration-external-storage
  793. steps:
  794. - name: submodules
  795. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  796. commands:
  797. - git submodule update --init
  798. - name: integration-external-storage
  799. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  800. commands:
  801. - bash tests/drone-run-integration-tests.sh || exit 0
  802. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  803. - cd build/integration
  804. - ./run.sh features/external-storage.feature
  805. trigger:
  806. branch:
  807. - master
  808. - stable*
  809. event:
  810. - pull_request
  811. - push
  812. ---
  813. kind: pipeline
  814. name: integration-provisioning-v1
  815. steps:
  816. - name: submodules
  817. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  818. commands:
  819. - git submodule update --init
  820. - name: integration-provisioning-v1
  821. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  822. commands:
  823. - bash tests/drone-run-integration-tests.sh || exit 0
  824. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  825. - cd build/integration
  826. - ./run.sh features/provisioning-v1.feature
  827. trigger:
  828. branch:
  829. - master
  830. - stable*
  831. event:
  832. - pull_request
  833. - push
  834. ---
  835. kind: pipeline
  836. name: integration-tags
  837. steps:
  838. - name: submodules
  839. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  840. commands:
  841. - git submodule update --init
  842. - name: integration-tags
  843. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  844. commands:
  845. - bash tests/drone-run-integration-tests.sh || exit 0
  846. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  847. - cd build/integration
  848. - ./run.sh features/tags.feature
  849. trigger:
  850. branch:
  851. - master
  852. - stable*
  853. event:
  854. - pull_request
  855. - push
  856. ---
  857. kind: pipeline
  858. name: integration-caldav
  859. steps:
  860. - name: submodules
  861. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  862. commands:
  863. - git submodule update --init
  864. - name: integration-caldav
  865. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  866. commands:
  867. - bash tests/drone-run-integration-tests.sh || exit 0
  868. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  869. - cd build/integration
  870. - ./run.sh features/caldav.feature
  871. trigger:
  872. branch:
  873. - master
  874. - stable*
  875. event:
  876. - pull_request
  877. - push
  878. ---
  879. kind: pipeline
  880. name: integration-comments
  881. steps:
  882. - name: submodules
  883. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  884. commands:
  885. - git submodule update --init
  886. - name: integration-comments
  887. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  888. commands:
  889. - bash tests/drone-run-integration-tests.sh || exit 0
  890. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  891. - cd build/integration
  892. - ./run.sh features/comments.feature
  893. trigger:
  894. branch:
  895. - master
  896. - stable*
  897. event:
  898. - pull_request
  899. - push
  900. ---
  901. kind: pipeline
  902. name: integration-comments-search
  903. steps:
  904. - name: submodules
  905. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  906. commands:
  907. - git submodule update --init
  908. - name: integration-comments-search
  909. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  910. commands:
  911. - bash tests/drone-run-integration-tests.sh || exit 0
  912. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  913. - cd build/integration
  914. - ./run.sh features/comments-search.feature
  915. trigger:
  916. branch:
  917. - master
  918. - stable*
  919. event:
  920. - pull_request
  921. - push
  922. ---
  923. kind: pipeline
  924. name: integration-contacts-menu
  925. steps:
  926. - name: submodules
  927. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  928. commands:
  929. - git submodule update --init
  930. - name: integration-contacts-menu
  931. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  932. commands:
  933. - bash tests/drone-run-integration-tests.sh || exit 0
  934. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  935. - cd build/integration
  936. - ./run.sh features/contacts-menu.feature
  937. trigger:
  938. branch:
  939. - master
  940. - stable*
  941. event:
  942. - pull_request
  943. - push
  944. ---
  945. kind: pipeline
  946. name: integration-favorites
  947. steps:
  948. - name: submodules
  949. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  950. commands:
  951. - git submodule update --init
  952. - name: integration-favorites
  953. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  954. commands:
  955. - bash tests/drone-run-integration-tests.sh || exit 0
  956. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  957. - cd build/integration
  958. - ./run.sh features/favorites.feature
  959. trigger:
  960. branch:
  961. - master
  962. - stable*
  963. event:
  964. - pull_request
  965. - push
  966. ---
  967. kind: pipeline
  968. name: integration-provisioning-v2
  969. steps:
  970. - name: submodules
  971. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  972. commands:
  973. - git submodule update --init
  974. - name: integration-provisioning-v2
  975. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  976. commands:
  977. - bash tests/drone-run-integration-tests.sh || exit 0
  978. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  979. - cd build/integration
  980. - ./run.sh features/provisioning-v2.feature
  981. trigger:
  982. branch:
  983. - master
  984. - stable*
  985. event:
  986. - pull_request
  987. - push
  988. ---
  989. kind: pipeline
  990. name: integration-webdav-related
  991. steps:
  992. - name: submodules
  993. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  994. commands:
  995. - git submodule update --init
  996. - name: integration-webdav-related
  997. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  998. commands:
  999. - bash tests/drone-run-integration-tests.sh || exit 0
  1000. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1001. - cd build/integration
  1002. - ./run.sh features/webdav-related.feature
  1003. trigger:
  1004. branch:
  1005. - master
  1006. - stable*
  1007. event:
  1008. - pull_request
  1009. - push
  1010. ---
  1011. kind: pipeline
  1012. name: integration-sharees-features
  1013. steps:
  1014. - name: submodules
  1015. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1016. commands:
  1017. - git submodule update --init
  1018. - name: integration-sharees-features
  1019. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1020. commands:
  1021. - bash tests/drone-run-integration-tests.sh || exit 0
  1022. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1023. - cd build/integration
  1024. - ./run.sh sharees_features/sharees.feature
  1025. trigger:
  1026. branch:
  1027. - master
  1028. - stable*
  1029. event:
  1030. - pull_request
  1031. - push
  1032. ---
  1033. kind: pipeline
  1034. name: integration-sharees-v2-features
  1035. steps:
  1036. - name: submodules
  1037. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1038. commands:
  1039. - git submodule update --init
  1040. - name: integration-sharees-v2-features
  1041. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1042. commands:
  1043. - bash tests/drone-run-integration-tests.sh || exit 0
  1044. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1045. - cd build/integration
  1046. - ./run.sh sharees_features/sharees_provisioningapiv2.feature
  1047. trigger:
  1048. branch:
  1049. - master
  1050. - stable*
  1051. event:
  1052. - pull_request
  1053. - push
  1054. ---
  1055. kind: pipeline
  1056. name: integration-sharing-v1
  1057. steps:
  1058. - name: submodules
  1059. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1060. commands:
  1061. - git submodule update --init
  1062. - name: integration-sharing-v1
  1063. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1064. commands:
  1065. - bash tests/drone-run-integration-tests.sh || exit 0
  1066. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1067. - cd build/integration
  1068. - ./run.sh sharing_features/sharing-v1.feature
  1069. trigger:
  1070. branch:
  1071. - master
  1072. - stable*
  1073. event:
  1074. - pull_request
  1075. - push
  1076. ---
  1077. kind: pipeline
  1078. name: integration-sharing-v1-part2
  1079. steps:
  1080. - name: submodules
  1081. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1082. commands:
  1083. - git submodule update --init
  1084. - name: integration-sharing-v1-part2
  1085. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1086. commands:
  1087. - bash tests/drone-run-integration-tests.sh || exit 0
  1088. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1089. - cd build/integration
  1090. - ./run.sh sharing_features/sharing-v1-part2.feature
  1091. trigger:
  1092. branch:
  1093. - master
  1094. - stable*
  1095. event:
  1096. - pull_request
  1097. - push
  1098. ---
  1099. kind: pipeline
  1100. name: integration-sharing-v1-part3
  1101. steps:
  1102. - name: submodules
  1103. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1104. commands:
  1105. - git submodule update --init
  1106. - name: integration-sharing-v1-part3
  1107. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1108. commands:
  1109. - bash tests/drone-run-integration-tests.sh || exit 0
  1110. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1111. - cd build/integration
  1112. - ./run.sh sharing_features/sharing-v1-part3.feature
  1113. trigger:
  1114. branch:
  1115. - master
  1116. - stable*
  1117. event:
  1118. - pull_request
  1119. - push
  1120. ---
  1121. kind: pipeline
  1122. name: integration-sharing-v1-video-verification
  1123. steps:
  1124. - name: submodules
  1125. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1126. commands:
  1127. - git submodule update --init
  1128. - name: install-talk
  1129. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  1130. commands:
  1131. # JavaScript files are not used in integration tests, so it is not needed to
  1132. # build them.
  1133. - git clone --depth 1 --branch stable28 https://github.com/nextcloud/spreed apps/spreed
  1134. - cd apps/spreed
  1135. - composer --version
  1136. - composer self-update --2
  1137. - composer install --no-dev
  1138. - cd ../..
  1139. - name: integration-sharing-v1-video-verification
  1140. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1141. commands:
  1142. - bash tests/drone-run-integration-tests.sh || exit 0
  1143. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1144. - cd build/integration
  1145. - ./run.sh sharing_features/sharing-v1-video-verification.feature
  1146. trigger:
  1147. branch:
  1148. - master
  1149. - stable*
  1150. event:
  1151. - pull_request
  1152. - push
  1153. ---
  1154. kind: pipeline
  1155. name: integration-setup-features
  1156. steps:
  1157. - name: submodules
  1158. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1159. commands:
  1160. - git submodule update --init
  1161. - name: integration-setup-features
  1162. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1163. commands:
  1164. - bash tests/drone-run-integration-tests.sh || exit 0
  1165. - cd build/integration
  1166. - ./run.sh setup_features/setup.feature
  1167. trigger:
  1168. branch:
  1169. - master
  1170. - stable*
  1171. event:
  1172. - pull_request
  1173. - push
  1174. ---
  1175. kind: pipeline
  1176. name: integration-filesdrop-features
  1177. steps:
  1178. - name: submodules
  1179. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1180. commands:
  1181. - git submodule update --init
  1182. - name: integration-filesdrop-features
  1183. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1184. commands:
  1185. - bash tests/drone-run-integration-tests.sh || exit 0
  1186. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1187. - cd build/integration
  1188. - ./run.sh filesdrop_features/filesdrop.feature
  1189. trigger:
  1190. branch:
  1191. - master
  1192. - stable*
  1193. event:
  1194. - pull_request
  1195. - push
  1196. ---
  1197. kind: pipeline
  1198. name: integration-transfer-ownership-features
  1199. steps:
  1200. - name: submodules
  1201. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1202. commands:
  1203. - git submodule update --init
  1204. - name: integration-transfer-ownership-features
  1205. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1206. commands:
  1207. - bash tests/drone-run-integration-tests.sh || exit 0
  1208. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1209. - cd build/integration
  1210. - ./run.sh features/transfer-ownership.feature
  1211. trigger:
  1212. branch:
  1213. - master
  1214. - stable*
  1215. event:
  1216. - pull_request
  1217. - push
  1218. ---
  1219. kind: pipeline
  1220. name: integration-ldap-features
  1221. steps:
  1222. - name: submodules
  1223. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1224. commands:
  1225. - git submodule update --init
  1226. - name: integration-ldap-features
  1227. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1228. commands:
  1229. - bash tests/drone-run-integration-tests.sh || exit 0
  1230. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1231. - cd build/integration
  1232. - ./run.sh ldap_features/ldap-ocs.feature
  1233. trigger:
  1234. branch:
  1235. - master
  1236. - stable*
  1237. event:
  1238. - pull_request
  1239. - push
  1240. ---
  1241. kind: pipeline
  1242. name: integration-ldap-openldap-features
  1243. steps:
  1244. - name: submodules
  1245. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1246. commands:
  1247. - git submodule update --init
  1248. - name: integration-ldap-openldap-features
  1249. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1250. commands:
  1251. - bash tests/drone-run-integration-tests.sh || exit 0
  1252. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1253. - ./occ config:system:set redis host --value=cache
  1254. - ./occ config:system:set redis port --value=6379 --type=integer
  1255. - ./occ config:system:set redis timeout --value=0 --type=integer
  1256. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  1257. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  1258. - cd build/integration
  1259. - ./run.sh ldap_features/ldap-openldap.feature
  1260. services:
  1261. - name: cache
  1262. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  1263. - name: openldap
  1264. image: ghcr.io/nextcloud/continuous-integration-openldap:openldap-7
  1265. environment:
  1266. SLAPD_DOMAIN: nextcloud.ci
  1267. SLAPD_ORGANIZATION: Nextcloud
  1268. SLAPD_PASSWORD: admin
  1269. SLAPD_ADDITIONAL_MODULES: memberof
  1270. trigger:
  1271. branch:
  1272. - master
  1273. - stable*
  1274. event:
  1275. - pull_request
  1276. - push
  1277. ---
  1278. kind: pipeline
  1279. name: integration-ldap-openldap-uid-features
  1280. steps:
  1281. - name: submodules
  1282. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1283. commands:
  1284. - git submodule update --init
  1285. - name: integration-ldap-openldap-uid-features
  1286. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1287. commands:
  1288. - bash tests/drone-run-integration-tests.sh || exit 0
  1289. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1290. - ./occ config:system:set redis host --value=cache
  1291. - ./occ config:system:set redis port --value=6379 --type=integer
  1292. - ./occ config:system:set redis timeout --value=0 --type=integer
  1293. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  1294. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  1295. - cd build/integration
  1296. - ./run.sh ldap_features/openldap-uid-username.feature
  1297. services:
  1298. - name: cache
  1299. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  1300. - name: openldap
  1301. image: ghcr.io/nextcloud/continuous-integration-openldap:openldap-7
  1302. environment:
  1303. SLAPD_DOMAIN: nextcloud.ci
  1304. SLAPD_ORGANIZATION: Nextcloud
  1305. SLAPD_PASSWORD: admin
  1306. SLAPD_ADDITIONAL_MODULES: memberof
  1307. trigger:
  1308. branch:
  1309. - master
  1310. - stable*
  1311. event:
  1312. - pull_request
  1313. - push
  1314. type: docker
  1315. ---
  1316. kind: pipeline
  1317. name: integration-ldap-openldap-numerical-id-features
  1318. steps:
  1319. - name: submodules
  1320. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1321. commands:
  1322. - git submodule update --init
  1323. - name: integration-ldap-openldap-numerical-id-features
  1324. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1325. commands:
  1326. - bash tests/drone-run-integration-tests.sh || exit 0
  1327. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1328. - ./occ config:system:set redis host --value=cache
  1329. - ./occ config:system:set redis port --value=6379 --type=integer
  1330. - ./occ config:system:set redis timeout --value=0 --type=integer
  1331. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  1332. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  1333. - cd build/integration
  1334. - ./run.sh ldap_features/openldap-numerical-id.feature
  1335. services:
  1336. - name: cache
  1337. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  1338. - name: openldap
  1339. image: ghcr.io/nextcloud/continuous-integration-openldap:openldap-7
  1340. environment:
  1341. SLAPD_DOMAIN: nextcloud.ci
  1342. SLAPD_ORGANIZATION: Nextcloud
  1343. SLAPD_PASSWORD: admin
  1344. SLAPD_ADDITIONAL_MODULES: memberof
  1345. trigger:
  1346. branch:
  1347. - master
  1348. - stable*
  1349. event:
  1350. - pull_request
  1351. - push
  1352. ---
  1353. kind: pipeline
  1354. name: integration-trashbin
  1355. steps:
  1356. - name: submodules
  1357. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1358. commands:
  1359. - git submodule update --init
  1360. - name: integration-trashbin
  1361. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1362. commands:
  1363. - bash tests/drone-run-integration-tests.sh || exit 0
  1364. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1365. - cd build/integration
  1366. - ./run.sh features/trashbin.feature
  1367. trigger:
  1368. branch:
  1369. - master
  1370. - stable*
  1371. event:
  1372. - pull_request
  1373. - push
  1374. ---
  1375. kind: pipeline
  1376. name: integration-remote-api
  1377. steps:
  1378. - name: submodules
  1379. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1380. commands:
  1381. - git submodule update --init
  1382. - name: integration-remote-api
  1383. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1384. commands:
  1385. - bash tests/drone-run-integration-tests.sh || exit 0
  1386. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1387. - cd build/integration
  1388. - ./run.sh remoteapi_features/remote.feature
  1389. trigger:
  1390. branch:
  1391. - master
  1392. - stable*
  1393. event:
  1394. - pull_request
  1395. - push
  1396. ---
  1397. kind: pipeline
  1398. name: integration-download
  1399. steps:
  1400. - name: submodules
  1401. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1402. commands:
  1403. - git submodule update --init
  1404. - name: integration-download
  1405. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1406. commands:
  1407. - bash tests/drone-run-integration-tests.sh || exit 0
  1408. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1409. - cd build/integration
  1410. - ./run.sh --tags ~@large features/download.feature
  1411. trigger:
  1412. branch:
  1413. - master
  1414. - stable*
  1415. event:
  1416. - pull_request
  1417. - push
  1418. ---
  1419. kind: pipeline
  1420. name: nodb-codecov
  1421. steps:
  1422. - name: submodules
  1423. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1424. commands:
  1425. - git submodule update --init
  1426. - name: nodb-codecov
  1427. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  1428. environment:
  1429. CODECOV_TOKEN:
  1430. from_secret: CODECOV_TOKEN
  1431. XDEBUG_MODE: coverage
  1432. commands:
  1433. - phpenmod xdebug
  1434. - TEST_SELECTION=NODB ./autotest.sh sqlite
  1435. - wget https://codecov.io/bash -O codecov.sh
  1436. - bash codecov.sh -Z -C $DRONE_COMMIT -f tests/autotest-clover-sqlite.xml
  1437. services:
  1438. - name: cache
  1439. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  1440. trigger:
  1441. branch:
  1442. - master
  1443. - stable*
  1444. event:
  1445. - push
  1446. ---
  1447. kind: pipeline
  1448. name: db-codecov
  1449. steps:
  1450. - name: submodules
  1451. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1452. commands:
  1453. - git submodule update --init
  1454. - name: db-codecov
  1455. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  1456. environment:
  1457. CODECOV_TOKEN:
  1458. from_secret: CODECOV_TOKEN
  1459. XDEBUG_MODE: coverage
  1460. commands:
  1461. - phpenmod xdebug
  1462. - TEST_SELECTION=QUICKDB ./autotest.sh sqlite
  1463. - wget https://codecov.io/bash -O codecov.sh
  1464. - bash codecov.sh -Z -C $DRONE_COMMIT -f tests/autotest-clover-sqlite.xml
  1465. services:
  1466. - name: cache
  1467. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  1468. trigger:
  1469. branch:
  1470. - master
  1471. - stable*
  1472. event:
  1473. - push
  1474. ---
  1475. kind: pipeline
  1476. name: object-store-s3
  1477. steps:
  1478. - name: minio
  1479. image: ghcr.io/nextcloud/continuous-integration-minio:latest
  1480. detach: true
  1481. commands:
  1482. - mkdir /s3data
  1483. - minio server /s3data
  1484. environment:
  1485. MINIO_ROOT_USER: nextcloud
  1486. MINIO_ROOT_PASSWORD: nextcloud
  1487. - name: submodules
  1488. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1489. commands:
  1490. - git submodule update --init
  1491. - name: object-store
  1492. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  1493. environment:
  1494. OBJECT_STORE: s3
  1495. CODECOV_TOKEN:
  1496. from_secret: CODECOV_TOKEN
  1497. commands:
  1498. - phpenmod xdebug
  1499. - ./tests/drone-wait-objectstore.sh
  1500. - TEST_SELECTION=PRIMARY-s3 ./autotest.sh sqlite
  1501. - wget https://codecov.io/bash -O codecov.sh
  1502. - bash codecov.sh -C $DRONE_COMMIT -f tests/autotest-clover-sqlite.xml
  1503. trigger:
  1504. branch:
  1505. - master
  1506. - stable*
  1507. event:
  1508. - pull_request
  1509. - push
  1510. ---
  1511. kind: pipeline
  1512. name: object-store-azure
  1513. steps:
  1514. - name: submodules
  1515. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1516. commands:
  1517. - git submodule update --init
  1518. - name: object-store
  1519. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  1520. environment:
  1521. OBJECT_STORE: azure
  1522. CODECOV_TOKEN:
  1523. from_secret: CODECOV_TOKEN
  1524. commands:
  1525. - phpenmod xdebug
  1526. - ./tests/drone-wait-objectstore.sh
  1527. - TEST_SELECTION=PRIMARY-azure ./autotest.sh sqlite
  1528. - wget https://codecov.io/bash -O codecov.sh
  1529. - bash codecov.sh -C $DRONE_COMMIT -f tests/autotest-clover-sqlite.xml
  1530. services:
  1531. - name: azurite
  1532. image: ghcr.io/nextcloud/continuous-integration-azurite:latest
  1533. environment:
  1534. executable: blob
  1535. trigger:
  1536. branch:
  1537. - master
  1538. - stable*
  1539. event:
  1540. - pull_request
  1541. - push
  1542. ---
  1543. kind: pipeline
  1544. name: memcache-memcached
  1545. steps:
  1546. - name: submodules
  1547. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1548. commands:
  1549. - git submodule update --init
  1550. - name: memcache-memcached
  1551. image: ghcr.io/nextcloud/continuous-integration-php8.0-memcached:latest
  1552. commands:
  1553. - phpenmod xdebug
  1554. - service memcached restart
  1555. - ./autotest.sh sqlite tests/lib/Memcache/MemcachedTest.php
  1556. - wget https://codecov.io/bash -O codecov.sh
  1557. - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-clover-sqlite.xml; fi"
  1558. - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-clover-sqlite.xml; fi"
  1559. trigger:
  1560. branch:
  1561. - master
  1562. - stable*
  1563. event:
  1564. - pull_request
  1565. - push
  1566. ---
  1567. kind: signature
  1568. hmac: f429112ae02a1b21b9d6b80e6558ed6ddf29819f04fae4a5790933eaf86ef414