1
0

.drone.yml 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881
  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.2-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.2-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.2:10.2
  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.4-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.4-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.4:10.4
  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: mysql8.0-php8.0
  345. steps:
  346. - name: submodules
  347. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  348. commands:
  349. - git submodule update --init
  350. - name: mysql-php8.0
  351. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  352. commands:
  353. - bash tests/drone-run-php-tests.sh || exit 0
  354. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  355. services:
  356. - name: cache
  357. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  358. - name: mysql
  359. image: ghcr.io/nextcloud/continuous-integration-mysql-8.0:mysql-8.0
  360. command:
  361. - --default-authentication-plugin=mysql_native_password
  362. - --sql-mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
  363. environment:
  364. MYSQL_ROOT_PASSWORD: owncloud
  365. MYSQL_USER: oc_autotest
  366. MYSQL_PASSWORD: owncloud
  367. MYSQL_DATABASE: oc_autotest
  368. tmpfs:
  369. - /var/lib/mysql
  370. trigger:
  371. branch:
  372. - master
  373. - stable*
  374. event:
  375. - pull_request
  376. - push
  377. ---
  378. kind: pipeline
  379. name: postgres10-php8.0
  380. steps:
  381. - name: submodules
  382. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  383. commands:
  384. - git submodule update --init
  385. - name: postgres-php8.0
  386. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  387. commands:
  388. - bash tests/drone-run-php-tests.sh || exit 0
  389. - sleep 10 # gives the database enough time to initialize
  390. - POSTGRES=10 NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  391. services:
  392. - name: cache
  393. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  394. - name: postgres-10
  395. image: ghcr.io/nextcloud/continuous-integration-postgres-10:postgres-10
  396. environment:
  397. POSTGRES_USER: oc_autotest
  398. POSTGRES_DB: oc_autotest
  399. POSTGRES_PASSWORD: owncloud
  400. tmpfs:
  401. - /var/lib/postgresql/data
  402. trigger:
  403. branch:
  404. - master
  405. - stable*
  406. event:
  407. - pull_request
  408. - push
  409. ---
  410. kind: pipeline
  411. name: postgres11-php8.0
  412. steps:
  413. - name: submodules
  414. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  415. commands:
  416. - git submodule update --init
  417. - name: postgres-php8.0
  418. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  419. commands:
  420. - bash tests/drone-run-php-tests.sh || exit 0
  421. - sleep 10 # gives the database enough time to initialize
  422. - POSTGRES=11 NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  423. services:
  424. - name: cache
  425. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  426. - name: postgres-11
  427. image: ghcr.io/nextcloud/continuous-integration-postgres-11:postgres-11
  428. environment:
  429. POSTGRES_USER: oc_autotest
  430. POSTGRES_DB: oc_autotest
  431. POSTGRES_PASSWORD: owncloud
  432. tmpfs:
  433. - /var/lib/postgresql/data
  434. trigger:
  435. branch:
  436. - master
  437. - stable*
  438. event:
  439. - pull_request
  440. - push
  441. ---
  442. kind: pipeline
  443. name: postgres13-php8.0
  444. steps:
  445. - name: submodules
  446. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  447. commands:
  448. - git submodule update --init
  449. - name: postgres-php8.0
  450. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  451. commands:
  452. - bash tests/drone-run-php-tests.sh || exit 0
  453. - sleep 10 # gives the database enough time to initialize
  454. - POSTGRES=13 NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  455. services:
  456. - name: cache
  457. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  458. - name: postgres-13
  459. image: ghcr.io/nextcloud/continuous-integration-postgres-13:postgres-13
  460. environment:
  461. POSTGRES_USER: oc_autotest
  462. POSTGRES_DB: oc_autotest
  463. POSTGRES_PASSWORD: owncloud
  464. tmpfs:
  465. - /var/lib/postgresql/data
  466. trigger:
  467. branch:
  468. - master
  469. - stable*
  470. event:
  471. - pull_request
  472. - push
  473. ---
  474. kind: pipeline
  475. name: postgres15-php8.0
  476. steps:
  477. - name: submodules
  478. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  479. commands:
  480. - git submodule update --init
  481. - name: postgres-php8.0
  482. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  483. commands:
  484. - bash tests/drone-run-php-tests.sh || exit 0
  485. - sleep 10 # gives the database enough time to initialize
  486. - POSTGRES=15 NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  487. services:
  488. - name: cache
  489. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  490. - name: postgres-15
  491. image: ghcr.io/nextcloud/continuous-integration-postgres-15:latest
  492. environment:
  493. POSTGRES_USER: oc_autotest
  494. POSTGRES_DB: oc_autotest
  495. POSTGRES_PASSWORD: owncloud
  496. tmpfs:
  497. - /var/lib/postgresql/data
  498. trigger:
  499. branch:
  500. - master
  501. - stable*
  502. event:
  503. - pull_request
  504. - push
  505. ---
  506. kind: pipeline
  507. name: integration-capabilities_features
  508. steps:
  509. - name: submodules
  510. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  511. commands:
  512. - git submodule update --init
  513. - name: integration-capabilities_features
  514. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  515. commands:
  516. - bash tests/drone-run-integration-tests.sh || exit 0
  517. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  518. - cd build/integration
  519. - ./run.sh capabilities_features/capabilities.feature
  520. trigger:
  521. branch:
  522. - master
  523. - stable*
  524. event:
  525. - pull_request
  526. - push
  527. ---
  528. kind: pipeline
  529. name: integration-collaboration_features
  530. steps:
  531. - name: submodules
  532. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  533. commands:
  534. - git submodule update --init
  535. - name: integration-collaboration_features
  536. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  537. commands:
  538. - bash tests/drone-run-integration-tests.sh || exit 0
  539. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  540. - cd build/integration
  541. - ./run.sh collaboration_features/
  542. trigger:
  543. branch:
  544. - master
  545. - stable*
  546. event:
  547. - pull_request
  548. - push
  549. ---
  550. kind: pipeline
  551. name: integration-federation_features
  552. steps:
  553. - name: submodules
  554. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  555. commands:
  556. - git submodule update --init
  557. - name: integration-federation_features
  558. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  559. commands:
  560. - bash tests/drone-run-integration-tests.sh || exit 0
  561. - ./occ maintenance:install --admin-pass=admin
  562. - cd build/integration
  563. - ./run.sh federation_features/
  564. trigger:
  565. branch:
  566. - master
  567. - stable*
  568. event:
  569. - pull_request
  570. - push
  571. ---
  572. kind: pipeline
  573. name: integration-auth
  574. steps:
  575. - name: submodules
  576. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  577. commands:
  578. - git submodule update --init
  579. - name: integration-auth
  580. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  581. commands:
  582. - bash tests/drone-run-integration-tests.sh || exit 0
  583. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  584. - cd build/integration
  585. - ./run.sh features/auth.feature
  586. trigger:
  587. branch:
  588. - master
  589. - stable*
  590. event:
  591. - pull_request
  592. - push
  593. ---
  594. kind: pipeline
  595. name: integration-avatar
  596. steps:
  597. - name: submodules
  598. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  599. commands:
  600. - git submodule update --init
  601. - name: integration-avatar
  602. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  603. commands:
  604. - bash tests/drone-run-integration-tests.sh || exit 0
  605. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  606. - cd build/integration
  607. - ./run.sh features/avatar.feature
  608. trigger:
  609. branch:
  610. - master
  611. - stable*
  612. event:
  613. - pull_request
  614. - push
  615. ---
  616. kind: pipeline
  617. name: integration-maintenance-mode
  618. steps:
  619. - name: submodules
  620. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  621. commands:
  622. - git submodule update --init
  623. - name: integration-maintenance-mode
  624. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  625. commands:
  626. - bash tests/drone-run-integration-tests.sh || exit 0
  627. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  628. - cd build/integration
  629. - ./run.sh features/maintenance-mode.feature
  630. trigger:
  631. branch:
  632. - master
  633. - stable*
  634. event:
  635. - pull_request
  636. - push
  637. ---
  638. kind: pipeline
  639. name: integration-ratelimiting
  640. steps:
  641. - name: submodules
  642. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  643. commands:
  644. - git submodule update --init
  645. - name: integration-ratelimiting
  646. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  647. commands:
  648. - bash tests/drone-run-integration-tests.sh || exit 0
  649. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  650. - ./occ config:system:set redis host --value=cache
  651. - ./occ config:system:set redis port --value=6379 --type=integer
  652. - ./occ config:system:set redis timeout --value=0 --type=integer
  653. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  654. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  655. - ./occ app:enable testing
  656. - cd build/integration
  657. - ./run.sh features/ratelimiting.feature
  658. services:
  659. - name: cache
  660. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  661. trigger:
  662. branch:
  663. - master
  664. - stable*
  665. event:
  666. - pull_request
  667. - push
  668. ---
  669. kind: pipeline
  670. name: integration-carddav
  671. steps:
  672. - name: submodules
  673. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  674. commands:
  675. - git submodule update --init
  676. - name: integration-carddav
  677. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  678. commands:
  679. - bash tests/drone-run-integration-tests.sh || exit 0
  680. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  681. - cd build/integration
  682. - ./run.sh features/carddav.feature
  683. trigger:
  684. branch:
  685. - master
  686. - stable*
  687. event:
  688. - pull_request
  689. - push
  690. ---
  691. kind: pipeline
  692. name: integration-dav-v2
  693. steps:
  694. - name: submodules
  695. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  696. commands:
  697. - git submodule update --init
  698. - name: integration-dav-v2
  699. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  700. commands:
  701. - bash tests/drone-run-integration-tests.sh || exit 0
  702. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  703. - cd build/integration
  704. - ./run.sh features/dav-v2.feature
  705. trigger:
  706. branch:
  707. - master
  708. - stable*
  709. event:
  710. - pull_request
  711. - push
  712. ---
  713. kind: pipeline
  714. name: integration-ocs-v1
  715. steps:
  716. - name: submodules
  717. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  718. commands:
  719. - git submodule update --init
  720. - name: integration-ocs-v1
  721. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  722. commands:
  723. - bash tests/drone-run-integration-tests.sh || exit 0
  724. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  725. - cd build/integration
  726. - ./run.sh features/ocs-v1.feature
  727. trigger:
  728. branch:
  729. - master
  730. - stable*
  731. event:
  732. - pull_request
  733. - push
  734. ---
  735. kind: pipeline
  736. name: integration-checksums-v1
  737. steps:
  738. - name: submodules
  739. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  740. commands:
  741. - git submodule update --init
  742. - name: integration-checksums-v1
  743. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  744. commands:
  745. - bash tests/drone-run-integration-tests.sh || exit 0
  746. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  747. - cd build/integration
  748. - ./run.sh features/checksums.feature
  749. trigger:
  750. branch:
  751. - master
  752. - stable*
  753. event:
  754. - pull_request
  755. - push
  756. ---
  757. kind: pipeline
  758. name: integration-external-storage
  759. steps:
  760. - name: submodules
  761. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  762. commands:
  763. - git submodule update --init
  764. - name: integration-external-storage
  765. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  766. commands:
  767. - bash tests/drone-run-integration-tests.sh || exit 0
  768. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  769. - cd build/integration
  770. - ./run.sh features/external-storage.feature
  771. trigger:
  772. branch:
  773. - master
  774. - stable*
  775. event:
  776. - pull_request
  777. - push
  778. ---
  779. kind: pipeline
  780. name: integration-provisioning-v1
  781. steps:
  782. - name: submodules
  783. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  784. commands:
  785. - git submodule update --init
  786. - name: integration-provisioning-v1
  787. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  788. commands:
  789. - bash tests/drone-run-integration-tests.sh || exit 0
  790. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  791. - cd build/integration
  792. - ./run.sh features/provisioning-v1.feature
  793. trigger:
  794. branch:
  795. - master
  796. - stable*
  797. event:
  798. - pull_request
  799. - push
  800. ---
  801. kind: pipeline
  802. name: integration-tags
  803. steps:
  804. - name: submodules
  805. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  806. commands:
  807. - git submodule update --init
  808. - name: integration-tags
  809. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  810. commands:
  811. - bash tests/drone-run-integration-tests.sh || exit 0
  812. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  813. - cd build/integration
  814. - ./run.sh features/tags.feature
  815. trigger:
  816. branch:
  817. - master
  818. - stable*
  819. event:
  820. - pull_request
  821. - push
  822. ---
  823. kind: pipeline
  824. name: integration-caldav
  825. steps:
  826. - name: submodules
  827. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  828. commands:
  829. - git submodule update --init
  830. - name: integration-caldav
  831. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  832. commands:
  833. - bash tests/drone-run-integration-tests.sh || exit 0
  834. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  835. - cd build/integration
  836. - ./run.sh features/caldav.feature
  837. trigger:
  838. branch:
  839. - master
  840. - stable*
  841. event:
  842. - pull_request
  843. - push
  844. ---
  845. kind: pipeline
  846. name: integration-comments
  847. steps:
  848. - name: submodules
  849. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  850. commands:
  851. - git submodule update --init
  852. - name: integration-comments
  853. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  854. commands:
  855. - bash tests/drone-run-integration-tests.sh || exit 0
  856. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  857. - cd build/integration
  858. - ./run.sh features/comments.feature
  859. trigger:
  860. branch:
  861. - master
  862. - stable*
  863. event:
  864. - pull_request
  865. - push
  866. ---
  867. kind: pipeline
  868. name: integration-comments-search
  869. steps:
  870. - name: submodules
  871. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  872. commands:
  873. - git submodule update --init
  874. - name: integration-comments-search
  875. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  876. commands:
  877. - bash tests/drone-run-integration-tests.sh || exit 0
  878. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  879. - cd build/integration
  880. - ./run.sh features/comments-search.feature
  881. trigger:
  882. branch:
  883. - master
  884. - stable*
  885. event:
  886. - pull_request
  887. - push
  888. ---
  889. kind: pipeline
  890. name: integration-contacts-menu
  891. steps:
  892. - name: submodules
  893. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  894. commands:
  895. - git submodule update --init
  896. - name: integration-contacts-menu
  897. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  898. commands:
  899. - bash tests/drone-run-integration-tests.sh || exit 0
  900. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  901. - cd build/integration
  902. - ./run.sh features/contacts-menu.feature
  903. trigger:
  904. branch:
  905. - master
  906. - stable*
  907. event:
  908. - pull_request
  909. - push
  910. ---
  911. kind: pipeline
  912. name: integration-favorites
  913. steps:
  914. - name: submodules
  915. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  916. commands:
  917. - git submodule update --init
  918. - name: integration-favorites
  919. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  920. commands:
  921. - bash tests/drone-run-integration-tests.sh || exit 0
  922. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  923. - cd build/integration
  924. - ./run.sh features/favorites.feature
  925. trigger:
  926. branch:
  927. - master
  928. - stable*
  929. event:
  930. - pull_request
  931. - push
  932. ---
  933. kind: pipeline
  934. name: integration-provisioning-v2
  935. steps:
  936. - name: submodules
  937. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  938. commands:
  939. - git submodule update --init
  940. - name: integration-provisioning-v2
  941. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  942. commands:
  943. - bash tests/drone-run-integration-tests.sh || exit 0
  944. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  945. - cd build/integration
  946. - ./run.sh features/provisioning-v2.feature
  947. trigger:
  948. branch:
  949. - master
  950. - stable*
  951. event:
  952. - pull_request
  953. - push
  954. ---
  955. kind: pipeline
  956. name: integration-webdav-related
  957. steps:
  958. - name: submodules
  959. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  960. commands:
  961. - git submodule update --init
  962. - name: integration-webdav-related
  963. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  964. commands:
  965. - bash tests/drone-run-integration-tests.sh || exit 0
  966. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  967. - cd build/integration
  968. - ./run.sh features/webdav-related.feature
  969. trigger:
  970. branch:
  971. - master
  972. - stable*
  973. event:
  974. - pull_request
  975. - push
  976. ---
  977. kind: pipeline
  978. name: integration-sharees-features
  979. steps:
  980. - name: submodules
  981. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  982. commands:
  983. - git submodule update --init
  984. - name: integration-sharees-features
  985. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  986. commands:
  987. - bash tests/drone-run-integration-tests.sh || exit 0
  988. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  989. - cd build/integration
  990. - ./run.sh sharees_features/sharees.feature
  991. trigger:
  992. branch:
  993. - master
  994. - stable*
  995. event:
  996. - pull_request
  997. - push
  998. ---
  999. kind: pipeline
  1000. name: integration-sharees-v2-features
  1001. steps:
  1002. - name: submodules
  1003. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1004. commands:
  1005. - git submodule update --init
  1006. - name: integration-sharees-v2-features
  1007. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1008. commands:
  1009. - bash tests/drone-run-integration-tests.sh || exit 0
  1010. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1011. - cd build/integration
  1012. - ./run.sh sharees_features/sharees_provisioningapiv2.feature
  1013. trigger:
  1014. branch:
  1015. - master
  1016. - stable*
  1017. event:
  1018. - pull_request
  1019. - push
  1020. ---
  1021. kind: pipeline
  1022. name: integration-sharing-v1
  1023. steps:
  1024. - name: submodules
  1025. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1026. commands:
  1027. - git submodule update --init
  1028. - name: integration-sharing-v1
  1029. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1030. commands:
  1031. - bash tests/drone-run-integration-tests.sh || exit 0
  1032. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1033. - cd build/integration
  1034. - ./run.sh sharing_features/sharing-v1.feature
  1035. trigger:
  1036. branch:
  1037. - master
  1038. - stable*
  1039. event:
  1040. - pull_request
  1041. - push
  1042. ---
  1043. kind: pipeline
  1044. name: integration-sharing-v1-part2
  1045. steps:
  1046. - name: submodules
  1047. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1048. commands:
  1049. - git submodule update --init
  1050. - name: integration-sharing-v1-part2
  1051. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1052. commands:
  1053. - bash tests/drone-run-integration-tests.sh || exit 0
  1054. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1055. - cd build/integration
  1056. - ./run.sh sharing_features/sharing-v1-part2.feature
  1057. trigger:
  1058. branch:
  1059. - master
  1060. - stable*
  1061. event:
  1062. - pull_request
  1063. - push
  1064. ---
  1065. kind: pipeline
  1066. name: integration-sharing-v1-part3
  1067. steps:
  1068. - name: submodules
  1069. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1070. commands:
  1071. - git submodule update --init
  1072. - name: integration-sharing-v1-part3
  1073. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1074. commands:
  1075. - bash tests/drone-run-integration-tests.sh || exit 0
  1076. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1077. - cd build/integration
  1078. - ./run.sh sharing_features/sharing-v1-part3.feature
  1079. trigger:
  1080. branch:
  1081. - master
  1082. - stable*
  1083. event:
  1084. - pull_request
  1085. - push
  1086. ---
  1087. kind: pipeline
  1088. name: integration-sharing-v1-video-verification
  1089. steps:
  1090. - name: submodules
  1091. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1092. commands:
  1093. - git submodule update --init
  1094. - name: install-talk
  1095. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  1096. commands:
  1097. # JavaScript files are not used in integration tests, so it is not needed to
  1098. # build them.
  1099. - git clone --depth 1 --branch master https://github.com/nextcloud/spreed apps/spreed
  1100. - cd apps/spreed
  1101. - composer --version
  1102. - composer self-update --2
  1103. - composer install --no-dev
  1104. - cd ../..
  1105. - name: integration-sharing-v1-video-verification
  1106. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1107. commands:
  1108. - bash tests/drone-run-integration-tests.sh || exit 0
  1109. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1110. - cd build/integration
  1111. - ./run.sh sharing_features/sharing-v1-video-verification.feature
  1112. trigger:
  1113. branch:
  1114. - master
  1115. - stable*
  1116. event:
  1117. - pull_request
  1118. - push
  1119. ---
  1120. kind: pipeline
  1121. name: integration-setup-features
  1122. steps:
  1123. - name: submodules
  1124. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1125. commands:
  1126. - git submodule update --init
  1127. - name: integration-setup-features
  1128. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1129. commands:
  1130. - bash tests/drone-run-integration-tests.sh || exit 0
  1131. - cd build/integration
  1132. - ./run.sh setup_features/setup.feature
  1133. trigger:
  1134. branch:
  1135. - master
  1136. - stable*
  1137. event:
  1138. - pull_request
  1139. - push
  1140. ---
  1141. kind: pipeline
  1142. name: integration-filesdrop-features
  1143. steps:
  1144. - name: submodules
  1145. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1146. commands:
  1147. - git submodule update --init
  1148. - name: integration-filesdrop-features
  1149. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1150. commands:
  1151. - bash tests/drone-run-integration-tests.sh || exit 0
  1152. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1153. - cd build/integration
  1154. - ./run.sh filesdrop_features/filesdrop.feature
  1155. trigger:
  1156. branch:
  1157. - master
  1158. - stable*
  1159. event:
  1160. - pull_request
  1161. - push
  1162. ---
  1163. kind: pipeline
  1164. name: integration-transfer-ownership-features
  1165. steps:
  1166. - name: submodules
  1167. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1168. commands:
  1169. - git submodule update --init
  1170. - name: integration-transfer-ownership-features
  1171. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1172. commands:
  1173. - bash tests/drone-run-integration-tests.sh || exit 0
  1174. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1175. - cd build/integration
  1176. - ./run.sh features/transfer-ownership.feature
  1177. trigger:
  1178. branch:
  1179. - master
  1180. - stable*
  1181. event:
  1182. - pull_request
  1183. - push
  1184. ---
  1185. kind: pipeline
  1186. name: integration-ldap-features
  1187. steps:
  1188. - name: submodules
  1189. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1190. commands:
  1191. - git submodule update --init
  1192. - name: integration-ldap-features
  1193. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1194. commands:
  1195. - bash tests/drone-run-integration-tests.sh || exit 0
  1196. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1197. - cd build/integration
  1198. - ./run.sh ldap_features/ldap-ocs.feature
  1199. trigger:
  1200. branch:
  1201. - master
  1202. - stable*
  1203. event:
  1204. - pull_request
  1205. - push
  1206. ---
  1207. kind: pipeline
  1208. name: integration-ldap-openldap-features
  1209. steps:
  1210. - name: submodules
  1211. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1212. commands:
  1213. - git submodule update --init
  1214. - name: integration-ldap-openldap-features
  1215. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1216. commands:
  1217. - bash tests/drone-run-integration-tests.sh || exit 0
  1218. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1219. - ./occ config:system:set redis host --value=cache
  1220. - ./occ config:system:set redis port --value=6379 --type=integer
  1221. - ./occ config:system:set redis timeout --value=0 --type=integer
  1222. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  1223. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  1224. - cd build/integration
  1225. - ./run.sh ldap_features/ldap-openldap.feature
  1226. services:
  1227. - name: cache
  1228. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  1229. - name: openldap
  1230. image: ghcr.io/nextcloud/continuous-integration-openldap:openldap-7
  1231. environment:
  1232. SLAPD_DOMAIN: nextcloud.ci
  1233. SLAPD_ORGANIZATION: Nextcloud
  1234. SLAPD_PASSWORD: admin
  1235. SLAPD_ADDITIONAL_MODULES: memberof
  1236. trigger:
  1237. branch:
  1238. - master
  1239. - stable*
  1240. event:
  1241. - pull_request
  1242. - push
  1243. ---
  1244. kind: pipeline
  1245. name: integration-ldap-openldap-uid-features
  1246. steps:
  1247. - name: submodules
  1248. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1249. commands:
  1250. - git submodule update --init
  1251. - name: integration-ldap-openldap-uid-features
  1252. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1253. commands:
  1254. - bash tests/drone-run-integration-tests.sh || exit 0
  1255. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1256. - ./occ config:system:set redis host --value=cache
  1257. - ./occ config:system:set redis port --value=6379 --type=integer
  1258. - ./occ config:system:set redis timeout --value=0 --type=integer
  1259. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  1260. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  1261. - cd build/integration
  1262. - ./run.sh ldap_features/openldap-uid-username.feature
  1263. services:
  1264. - name: cache
  1265. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  1266. - name: openldap
  1267. image: ghcr.io/nextcloud/continuous-integration-openldap:openldap-7
  1268. environment:
  1269. SLAPD_DOMAIN: nextcloud.ci
  1270. SLAPD_ORGANIZATION: Nextcloud
  1271. SLAPD_PASSWORD: admin
  1272. SLAPD_ADDITIONAL_MODULES: memberof
  1273. trigger:
  1274. branch:
  1275. - master
  1276. - stable*
  1277. event:
  1278. - pull_request
  1279. - push
  1280. type: docker
  1281. ---
  1282. kind: pipeline
  1283. name: integration-ldap-openldap-numerical-id-features
  1284. steps:
  1285. - name: submodules
  1286. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1287. commands:
  1288. - git submodule update --init
  1289. - name: integration-ldap-openldap-numerical-id-features
  1290. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1291. commands:
  1292. - bash tests/drone-run-integration-tests.sh || exit 0
  1293. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1294. - ./occ config:system:set redis host --value=cache
  1295. - ./occ config:system:set redis port --value=6379 --type=integer
  1296. - ./occ config:system:set redis timeout --value=0 --type=integer
  1297. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  1298. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  1299. - cd build/integration
  1300. - ./run.sh ldap_features/openldap-numerical-id.feature
  1301. services:
  1302. - name: cache
  1303. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  1304. - name: openldap
  1305. image: ghcr.io/nextcloud/continuous-integration-openldap:openldap-7
  1306. environment:
  1307. SLAPD_DOMAIN: nextcloud.ci
  1308. SLAPD_ORGANIZATION: Nextcloud
  1309. SLAPD_PASSWORD: admin
  1310. SLAPD_ADDITIONAL_MODULES: memberof
  1311. trigger:
  1312. branch:
  1313. - master
  1314. - stable*
  1315. event:
  1316. - pull_request
  1317. - push
  1318. ---
  1319. kind: pipeline
  1320. name: integration-trashbin
  1321. steps:
  1322. - name: submodules
  1323. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1324. commands:
  1325. - git submodule update --init
  1326. - name: integration-trashbin
  1327. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1328. commands:
  1329. - bash tests/drone-run-integration-tests.sh || exit 0
  1330. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1331. - cd build/integration
  1332. - ./run.sh features/trashbin.feature
  1333. trigger:
  1334. branch:
  1335. - master
  1336. - stable*
  1337. event:
  1338. - pull_request
  1339. - push
  1340. ---
  1341. kind: pipeline
  1342. name: integration-remote-api
  1343. steps:
  1344. - name: submodules
  1345. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1346. commands:
  1347. - git submodule update --init
  1348. - name: integration-remote-api
  1349. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1350. commands:
  1351. - bash tests/drone-run-integration-tests.sh || exit 0
  1352. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1353. - cd build/integration
  1354. - ./run.sh remoteapi_features/remote.feature
  1355. trigger:
  1356. branch:
  1357. - master
  1358. - stable*
  1359. event:
  1360. - pull_request
  1361. - push
  1362. ---
  1363. kind: pipeline
  1364. name: integration-download
  1365. steps:
  1366. - name: submodules
  1367. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1368. commands:
  1369. - git submodule update --init
  1370. - name: integration-download
  1371. image: ghcr.io/nextcloud/continuous-integration-integration-php8.0:latest
  1372. commands:
  1373. - bash tests/drone-run-integration-tests.sh || exit 0
  1374. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1375. - cd build/integration
  1376. - ./run.sh --tags ~@large features/download.feature
  1377. trigger:
  1378. branch:
  1379. - master
  1380. - stable*
  1381. event:
  1382. - pull_request
  1383. - push
  1384. ---
  1385. kind: pipeline
  1386. name: acceptance-access-levels
  1387. steps:
  1388. - name: submodules
  1389. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1390. commands:
  1391. - git submodule update --init
  1392. - name: acceptance-access-levels
  1393. image: ghcr.io/nextcloud/continuous-integration-acceptance-php8.0:latest
  1394. commands:
  1395. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-access-levels --selenium-server selenium:4444 allow-git-repository-modifications features/access-levels.feature
  1396. services:
  1397. - name: selenium
  1398. image: ghcr.io/nextcloud/continuous-integration-selenium:3.141.59
  1399. environment:
  1400. # Reduce default log level for Selenium server (INFO) as it is too
  1401. # verbose.
  1402. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1403. trigger:
  1404. branch:
  1405. - master
  1406. - stable*
  1407. event:
  1408. - pull_request
  1409. - push
  1410. ---
  1411. kind: pipeline
  1412. name: acceptance-header
  1413. steps:
  1414. - name: submodules
  1415. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1416. commands:
  1417. - git submodule update --init
  1418. - name: acceptance-header
  1419. image: ghcr.io/nextcloud/continuous-integration-acceptance-php8.0:latest
  1420. commands:
  1421. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-header --selenium-server selenium:4444 allow-git-repository-modifications features/header.feature
  1422. services:
  1423. - name: selenium
  1424. image: ghcr.io/nextcloud/continuous-integration-selenium:3.141.59
  1425. environment:
  1426. # Reduce default log level for Selenium server (INFO) as it is too
  1427. # verbose.
  1428. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1429. trigger:
  1430. branch:
  1431. - master
  1432. - stable*
  1433. event:
  1434. - pull_request
  1435. - push
  1436. ---
  1437. kind: pipeline
  1438. name: acceptance-login
  1439. steps:
  1440. - name: submodules
  1441. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1442. commands:
  1443. - git submodule update --init
  1444. - name: acceptance-login
  1445. image: ghcr.io/nextcloud/continuous-integration-acceptance-php8.0:latest
  1446. commands:
  1447. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-login --selenium-server selenium:4444 allow-git-repository-modifications features/login.feature
  1448. services:
  1449. - name: selenium
  1450. image: ghcr.io/nextcloud/continuous-integration-selenium:3.141.59
  1451. environment:
  1452. # Reduce default log level for Selenium server (INFO) as it is too
  1453. # verbose.
  1454. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1455. trigger:
  1456. branch:
  1457. - master
  1458. - stable*
  1459. event:
  1460. - pull_request
  1461. - push
  1462. ---
  1463. kind: pipeline
  1464. name: acceptance-users
  1465. steps:
  1466. - name: submodules
  1467. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1468. commands:
  1469. - git submodule update --init
  1470. - name: acceptance-users
  1471. image: ghcr.io/nextcloud/continuous-integration-acceptance-php8.0:latest
  1472. commands:
  1473. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-users --selenium-server selenium:4444 allow-git-repository-modifications features/users.feature
  1474. services:
  1475. - name: selenium
  1476. image: ghcr.io/nextcloud/continuous-integration-selenium:3.141.59
  1477. environment:
  1478. # Reduce default log level for Selenium server (INFO) as it is too
  1479. # verbose.
  1480. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1481. trigger:
  1482. branch:
  1483. - master
  1484. - stable*
  1485. event:
  1486. - pull_request
  1487. - push
  1488. ---
  1489. kind: pipeline
  1490. name: acceptance-apps
  1491. steps:
  1492. - name: submodules
  1493. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1494. commands:
  1495. - git submodule update --init
  1496. - name: acceptance-apps
  1497. image: ghcr.io/nextcloud/continuous-integration-acceptance-php8.0:latest
  1498. commands:
  1499. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-apps --selenium-server selenium:4444 allow-git-repository-modifications features/apps.feature
  1500. services:
  1501. - name: selenium
  1502. image: ghcr.io/nextcloud/continuous-integration-selenium:3.141.59
  1503. environment:
  1504. # Reduce default log level for Selenium server (INFO) as it is too
  1505. # verbose.
  1506. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1507. trigger:
  1508. branch:
  1509. - master
  1510. - stable*
  1511. event:
  1512. - pull_request
  1513. - push
  1514. ---
  1515. kind: pipeline
  1516. name: nodb-codecov
  1517. steps:
  1518. - name: submodules
  1519. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1520. commands:
  1521. - git submodule update --init
  1522. - name: nodb-codecov
  1523. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  1524. environment:
  1525. CODECOV_TOKEN:
  1526. from_secret: CODECOV_TOKEN
  1527. XDEBUG_MODE: coverage
  1528. commands:
  1529. - phpenmod xdebug
  1530. - TEST_SELECTION=NODB ./autotest.sh sqlite
  1531. - wget https://codecov.io/bash -O codecov.sh
  1532. - bash codecov.sh -Z -C $DRONE_COMMIT -f tests/autotest-clover-sqlite.xml
  1533. services:
  1534. - name: cache
  1535. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  1536. trigger:
  1537. branch:
  1538. - master
  1539. - stable*
  1540. event:
  1541. - push
  1542. ---
  1543. kind: pipeline
  1544. name: db-codecov
  1545. steps:
  1546. - name: submodules
  1547. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1548. commands:
  1549. - git submodule update --init
  1550. - name: db-codecov
  1551. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  1552. environment:
  1553. CODECOV_TOKEN:
  1554. from_secret: CODECOV_TOKEN
  1555. XDEBUG_MODE: coverage
  1556. commands:
  1557. - phpenmod xdebug
  1558. - TEST_SELECTION=QUICKDB ./autotest.sh sqlite
  1559. - wget https://codecov.io/bash -O codecov.sh
  1560. - bash codecov.sh -Z -C $DRONE_COMMIT -f tests/autotest-clover-sqlite.xml
  1561. services:
  1562. - name: cache
  1563. image: ghcr.io/nextcloud/continuous-integration-redis:latest
  1564. trigger:
  1565. branch:
  1566. - master
  1567. - stable*
  1568. event:
  1569. - push
  1570. ---
  1571. kind: pipeline
  1572. name: object-store-s3
  1573. steps:
  1574. - name: minio
  1575. image: ghcr.io/nextcloud/continuous-integration-minio:latest
  1576. detach: true
  1577. commands:
  1578. - mkdir /s3data
  1579. - minio server /s3data
  1580. environment:
  1581. MINIO_ROOT_USER: nextcloud
  1582. MINIO_ROOT_PASSWORD: nextcloud
  1583. - name: submodules
  1584. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1585. commands:
  1586. - git submodule update --init
  1587. - name: object-store
  1588. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  1589. environment:
  1590. OBJECT_STORE: s3
  1591. CODECOV_TOKEN:
  1592. from_secret: CODECOV_TOKEN
  1593. commands:
  1594. - phpenmod xdebug
  1595. - ./tests/drone-wait-objectstore.sh
  1596. - TEST_SELECTION=PRIMARY-s3 ./autotest.sh sqlite
  1597. - wget https://codecov.io/bash -O codecov.sh
  1598. - bash codecov.sh -C $DRONE_COMMIT -f tests/autotest-clover-sqlite.xml
  1599. trigger:
  1600. branch:
  1601. - master
  1602. - stable*
  1603. event:
  1604. - pull_request
  1605. - push
  1606. ---
  1607. kind: pipeline
  1608. name: object-store-azure
  1609. steps:
  1610. - name: submodules
  1611. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1612. commands:
  1613. - git submodule update --init
  1614. - name: object-store
  1615. image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
  1616. environment:
  1617. OBJECT_STORE: azure
  1618. CODECOV_TOKEN:
  1619. from_secret: CODECOV_TOKEN
  1620. commands:
  1621. - phpenmod xdebug
  1622. - ./tests/drone-wait-objectstore.sh
  1623. - TEST_SELECTION=PRIMARY-azure ./autotest.sh sqlite
  1624. - wget https://codecov.io/bash -O codecov.sh
  1625. - bash codecov.sh -C $DRONE_COMMIT -f tests/autotest-clover-sqlite.xml
  1626. services:
  1627. - name: azurite
  1628. image: ghcr.io/nextcloud/continuous-integration-azurite:latest
  1629. environment:
  1630. executable: blob
  1631. trigger:
  1632. branch:
  1633. - master
  1634. - stable*
  1635. event:
  1636. - pull_request
  1637. - push
  1638. ---
  1639. kind: pipeline
  1640. name: memcache-memcached
  1641. steps:
  1642. - name: submodules
  1643. image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
  1644. commands:
  1645. - git submodule update --init
  1646. - name: memcache-memcached
  1647. image: ghcr.io/nextcloud/continuous-integration-php8.0-memcached:latest
  1648. commands:
  1649. - phpenmod xdebug
  1650. - service memcached restart
  1651. - ./autotest.sh sqlite tests/lib/Memcache/MemcachedTest.php
  1652. - wget https://codecov.io/bash -O codecov.sh
  1653. - 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"
  1654. - 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"
  1655. trigger:
  1656. branch:
  1657. - master
  1658. - stable*
  1659. event:
  1660. - pull_request
  1661. - push
  1662. ---
  1663. kind: signature
  1664. hmac: 6814dc276b076a391796f3639b27499592e974db8e5e7a4043a120ce215b78cd