.drone.yml 57 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431
  1. kind: pipeline
  2. name: jsunit
  3. steps:
  4. - name: submodules
  5. image: docker:git
  6. commands:
  7. - git submodule update --init
  8. - name: jsunit
  9. image: nextcloudci/jsunit:jsunit-5
  10. commands:
  11. - ./autotest-js.sh
  12. - curl -o codecov.sh https://codecov.io/bash
  13. - 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; fi"
  14. - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5; fi"
  15. trigger:
  16. branch:
  17. - master
  18. - stable*
  19. event:
  20. - pull_request
  21. - push
  22. ---
  23. kind: pipeline
  24. name: webpack-build
  25. steps:
  26. - name: submodules
  27. image: docker:git
  28. commands:
  29. - git submodule update --init
  30. - name: webpack-build
  31. image: nextcloudci/node:node-4
  32. commands:
  33. - npm ci
  34. - npm run build
  35. - git status
  36. - bash -c "[[ ! \"`git status --porcelain `\" ]] || ( echo 'Uncommited changes in webpack build' && exit 1 )"
  37. trigger:
  38. branch:
  39. - master
  40. - stable*
  41. event:
  42. - pull_request
  43. - push
  44. ---
  45. kind: pipeline
  46. name: checkers
  47. steps:
  48. - name: submodules
  49. image: docker:git
  50. commands:
  51. - git submodule update --init
  52. - name: checkers
  53. image: nextcloudci/php7.1:php7.1-16
  54. commands:
  55. - ./autotest-checkers.sh
  56. secrets: [ github_token ]
  57. trigger:
  58. branch:
  59. - master
  60. - stable*
  61. event:
  62. - pull_request
  63. - push
  64. ---
  65. kind: pipeline
  66. name: handlebars
  67. steps:
  68. - name: submodules
  69. image: docker:git
  70. commands:
  71. - git submodule update --init
  72. - name: handlebars
  73. image: node
  74. commands:
  75. - npm install handlebars -g
  76. - ./build/compile-handlebars-templates.sh
  77. trigger:
  78. branch:
  79. - master
  80. - stable*
  81. event:
  82. - pull_request
  83. - push
  84. ---
  85. kind: pipeline
  86. name: syntax-and-phan
  87. steps:
  88. - name: submodules
  89. image: docker:git
  90. commands:
  91. - git submodule update --init
  92. - name: syntax-php7.1
  93. image: nextcloudci/php7.1:php7.1-16
  94. commands:
  95. - composer install
  96. - ./lib/composer/bin/parallel-lint --exclude lib/composer/jakub-onderka/ --exclude 3rdparty/symfony/polyfill-php70/Resources/stubs/ --exclude 3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/ --exclude lib/composer/composer/autoload_static.php --exclude 3rdparty/composer/autoload_static.php .
  97. - name: syntax-php7.2
  98. image: nextcloudci/php7.2:php7.2-12
  99. commands:
  100. - composer install
  101. - ./lib/composer/bin/parallel-lint --exclude lib/composer/jakub-onderka/ --exclude 3rdparty/symfony/polyfill-php70/Resources/stubs/ --exclude 3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/ --exclude lib/composer/composer/autoload_static.php --exclude 3rdparty/composer/autoload_static.php --exclude 3rdparty/doctrine/cache/lib/Doctrine/Common/Cache/RiakCache.php .
  102. - name: syntax-php7.3
  103. image: nextcloudci/php7.3:php7.3-1
  104. commands:
  105. - composer install
  106. - ./lib/composer/bin/parallel-lint --exclude lib/composer/jakub-onderka/ --exclude 3rdparty/symfony/polyfill-php70/Resources/stubs/ --exclude 3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/ --exclude 3rdparty/paragonie/random_compat/lib/ --exclude lib/composer/composer/autoload_static.php --exclude 3rdparty/composer/autoload_static.php --exclude 3rdparty/doctrine/cache/lib/Doctrine/Common/Cache/RiakCache.php .
  107. - name: phan
  108. image: nextcloudci/php7.2:php7.2-12
  109. commands:
  110. - composer install
  111. - composer require --dev "phan/phan:0.11.1"
  112. - ./lib/composer/phan/phan/phan -k build/.phan/config.php
  113. - php ./build/.phan/plugin-checker.php
  114. trigger:
  115. branch:
  116. - master
  117. - stable*
  118. event:
  119. - pull_request
  120. - push
  121. ---
  122. kind: pipeline
  123. name: litmus
  124. steps:
  125. - name: submodules
  126. image: docker:git
  127. commands:
  128. - git submodule update --init
  129. - name: litmus-v1
  130. image: nextcloudci/litmus-php7.1:1
  131. commands:
  132. - bash tests/travis/install.sh sqlite
  133. - bash apps/dav/tests/travis/litmus-v1/script.sh
  134. - name: litmus-v2
  135. image: nextcloudci/litmus-php7.2:1
  136. commands:
  137. - bash tests/travis/install.sh sqlite
  138. - bash apps/dav/tests/travis/litmus-v2/script.sh
  139. trigger:
  140. branch:
  141. - master
  142. - stable*
  143. event:
  144. - pull_request
  145. - push
  146. ---
  147. kind: pipeline
  148. name: caldavtester-new-endpoint
  149. steps:
  150. - name: submodules
  151. image: docker:git
  152. commands:
  153. - git submodule update --init
  154. - name: caldavtester-new-endpoint
  155. image: nextcloudci/litmus-php7.1:1
  156. commands:
  157. - bash tests/travis/install.sh sqlite
  158. - bash apps/dav/tests/travis/caldav/install.sh
  159. - bash apps/dav/tests/travis/caldav/script-new-endpoint.sh
  160. trigger:
  161. branch:
  162. - master
  163. - stable*
  164. event:
  165. - pull_request
  166. - push
  167. ---
  168. kind: pipeline
  169. name: caldavtester-old-endpoint
  170. steps:
  171. - name: submodules
  172. image: docker:git
  173. commands:
  174. - git submodule update --init
  175. - name: caldavtester-old-endpoint
  176. image: nextcloudci/litmus-php7.1:1
  177. commands:
  178. - bash tests/travis/install.sh sqlite
  179. - bash apps/dav/tests/travis/caldav/install.sh
  180. - bash apps/dav/tests/travis/caldav/script-old-endpoint.sh
  181. trigger:
  182. branch:
  183. - master
  184. - stable*
  185. event:
  186. - pull_request
  187. - push
  188. ---
  189. kind: pipeline
  190. name: carddavtester-new-endpoint
  191. steps:
  192. - name: submodules
  193. image: docker:git
  194. commands:
  195. - git submodule update --init
  196. - name: carddavtester-new-endpoint
  197. image: nextcloudci/litmus-php7.1:1
  198. commands:
  199. - bash tests/travis/install.sh sqlite
  200. - bash apps/dav/tests/travis/carddav/install.sh
  201. - bash apps/dav/tests/travis/carddav/script-new-endpoint.sh
  202. trigger:
  203. branch:
  204. - master
  205. - stable*
  206. event:
  207. - pull_request
  208. - push
  209. ---
  210. kind: pipeline
  211. name: carddavtester-old-endpoint
  212. steps:
  213. - name: submodules
  214. image: docker:git
  215. commands:
  216. - git submodule update --init
  217. - name: carddavtester-old-endpoint
  218. image: nextcloudci/litmus-php7.1:1
  219. commands:
  220. - bash tests/travis/install.sh sqlite
  221. - bash apps/dav/tests/travis/carddav/install.sh
  222. - bash apps/dav/tests/travis/carddav/script-old-endpoint.sh
  223. trigger:
  224. branch:
  225. - master
  226. - stable*
  227. event:
  228. - pull_request
  229. - push
  230. ---
  231. kind: pipeline
  232. name: samba
  233. steps:
  234. - name: submodules
  235. image: docker:git
  236. commands:
  237. - git submodule update --init
  238. - name: sqlite-php7.0-samba-native
  239. image: nextcloudci/samba-native-php7.1:1
  240. commands:
  241. - smbd -D -FS &
  242. - ./autotest-external.sh sqlite smb-linux
  243. - wget https://codecov.io/bash -O codecov.sh
  244. - 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"
  245. - 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"
  246. - 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"
  247. - 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"
  248. - name: sqlite-php7.0-samba-non-native
  249. image: nextcloudci/samba-non-native-php7.1:1
  250. commands:
  251. - smbd -D -FS &
  252. - ./autotest-external.sh sqlite smb-linux
  253. - wget https://codecov.io/bash -O codecov.sh
  254. - 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"
  255. - 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"
  256. - 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"
  257. - 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"
  258. trigger:
  259. branch:
  260. - master
  261. - stable*
  262. event:
  263. - pull_request
  264. - push
  265. ---
  266. kind: pipeline
  267. name: sqlite-php7.1-webdav-apache
  268. steps:
  269. - name: submodules
  270. image: docker:git
  271. commands:
  272. - git submodule update --init
  273. - name: sqlite-php7.0-webdav-apache
  274. image: nextcloudci/webdav-apache-php7.1:1
  275. commands:
  276. - apache2
  277. - ./autotest-external.sh sqlite webdav-apachedrone
  278. - wget https://codecov.io/bash -O codecov.sh
  279. - 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"
  280. - 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"
  281. - 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"
  282. - 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"
  283. services:
  284. - name: cache
  285. image: redis
  286. trigger:
  287. branch:
  288. - master
  289. - stable*
  290. event:
  291. - pull_request
  292. - push
  293. ---
  294. kind: pipeline
  295. name: nodb
  296. steps:
  297. - name: submodules
  298. image: docker:git
  299. commands:
  300. - git submodule update --init
  301. - name: nodb-php7.1
  302. image: nextcloudci/php7.1:php7.1-16
  303. commands:
  304. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  305. - name: nodb-php7.2
  306. image: nextcloudci/php7.2:php7.2-11
  307. commands:
  308. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  309. - name: nodb-php7.3
  310. image: nextcloudci/php7.3:php7.3-1
  311. commands:
  312. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  313. services:
  314. - name: cache
  315. image: redis
  316. trigger:
  317. branch:
  318. - master
  319. - stable*
  320. event:
  321. - pull_request
  322. - push
  323. ---
  324. kind: pipeline
  325. name: sqlite
  326. steps:
  327. - name: submodules
  328. image: docker:git
  329. commands:
  330. - git submodule update --init
  331. - name: sqlite-php7.1
  332. image: nextcloudci/php7.1:php7.1-16
  333. commands:
  334. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  335. - name: sqlite-php7.2
  336. image: nextcloudci/php7.2:php7.2-12
  337. commands:
  338. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  339. - name: sqlite-php7.3
  340. image: nextcloudci/php7.3:php7.3-1
  341. commands:
  342. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  343. services:
  344. - name: cache
  345. image: redis
  346. trigger:
  347. branch:
  348. - master
  349. - stable*
  350. event:
  351. - pull_request
  352. - push
  353. ---
  354. kind: pipeline
  355. name: mariadb10.1-php7.1
  356. steps:
  357. - name: submodules
  358. image: docker:git
  359. commands:
  360. - git submodule update --init
  361. - name: mariadb10.1-php7.1
  362. image: nextcloudci/php7.1:php7.1-16
  363. commands:
  364. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mariadb
  365. services:
  366. - name: cache
  367. image: redis
  368. - name: mariadb
  369. image: mariadb:10.1
  370. environment:
  371. MYSQL_ROOT_PASSWORD: owncloud
  372. MYSQL_USER: oc_autotest
  373. MYSQL_PASSWORD: owncloud
  374. MYSQL_DATABASE: oc_autotest
  375. tmpfs:
  376. - /var/lib/mysql
  377. trigger:
  378. branch:
  379. - master
  380. - stable*
  381. event:
  382. - pull_request
  383. - push
  384. ---
  385. kind: pipeline
  386. name: mariadb10.2-php7.1
  387. steps:
  388. - name: submodules
  389. image: docker:git
  390. commands:
  391. - git submodule update --init
  392. - name: mariadb10.2-php7.1
  393. image: nextcloudci/php7.1:php7.1-16
  394. commands:
  395. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mariadb
  396. services:
  397. - name: cache
  398. image: redis
  399. - name: mariadb
  400. image: mariadb:10.2
  401. environment:
  402. MYSQL_ROOT_PASSWORD: owncloud
  403. MYSQL_USER: oc_autotest
  404. MYSQL_PASSWORD: owncloud
  405. MYSQL_DATABASE: oc_autotest
  406. tmpfs:
  407. - /var/lib/mysql
  408. trigger:
  409. branch:
  410. - master
  411. - stable*
  412. event:
  413. - push
  414. ---
  415. kind: pipeline
  416. name: mariadb10.3-php7.1
  417. steps:
  418. - name: submodules
  419. image: docker:git
  420. commands:
  421. - git submodule update --init
  422. - name: mariadb10.3-php7.1
  423. image: nextcloudci/php7.1:php7.1-16
  424. commands:
  425. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mariadb
  426. services:
  427. - name: cache
  428. image: redis
  429. - name: mariadb
  430. image: mariadb:10.3
  431. environment:
  432. MYSQL_ROOT_PASSWORD: owncloud
  433. MYSQL_USER: oc_autotest
  434. MYSQL_PASSWORD: owncloud
  435. MYSQL_DATABASE: oc_autotest
  436. tmpfs:
  437. - /var/lib/mysql
  438. trigger:
  439. branch:
  440. - master
  441. - stable*
  442. event:
  443. - push
  444. ---
  445. kind: pipeline
  446. name: mariadb10.4-php7.3
  447. steps:
  448. - name: submodules
  449. image: docker:git
  450. commands:
  451. - git submodule update --init
  452. - name: mariadb10.4-php7.3
  453. image: nextcloudci/php7.3:php7.3-1
  454. commands:
  455. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mariadb
  456. services:
  457. - name: cache
  458. image: redis
  459. - name: mariadb
  460. image: mariadb:10.4
  461. environment:
  462. MYSQL_ROOT_PASSWORD: owncloud
  463. MYSQL_USER: oc_autotest
  464. MYSQL_PASSWORD: owncloud
  465. MYSQL_DATABASE: oc_autotest
  466. tmpfs:
  467. - /var/lib/mysql
  468. trigger:
  469. branch:
  470. - master
  471. - stable*
  472. event:
  473. - pull_request
  474. - push
  475. ---
  476. kind: pipeline
  477. name: mysql8.0-php7.2
  478. steps:
  479. - name: submodules
  480. image: docker:git
  481. commands:
  482. - git submodule update --init
  483. - name: mysql-php7.2
  484. image: nextcloudci/php7.2:php7.2-12
  485. commands:
  486. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  487. services:
  488. - name: cache
  489. image: redis
  490. - name: mysql
  491. image: mysql:8.0
  492. command: [ "--default-authentication-plugin=mysql_native_password" ]
  493. environment:
  494. MYSQL_ROOT_PASSWORD: owncloud
  495. MYSQL_USER: oc_autotest
  496. MYSQL_PASSWORD: owncloud
  497. MYSQL_DATABASE: oc_autotest
  498. tmpfs:
  499. - /var/lib/mysql
  500. trigger:
  501. branch:
  502. - master
  503. - stable*
  504. event:
  505. - pull_request
  506. - push
  507. ---
  508. kind: pipeline
  509. name: mysql5.7-php7.1
  510. steps:
  511. - name: submodules
  512. image: docker:git
  513. commands:
  514. - git submodule update --init
  515. - name: mysql-php7.1
  516. image: nextcloudci/php7.1:php7.1-16
  517. commands:
  518. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  519. services:
  520. - name: cache
  521. image: redis
  522. - name: mysql
  523. image: mysql:5.7
  524. environment:
  525. MYSQL_ROOT_PASSWORD: owncloud
  526. MYSQL_USER: oc_autotest
  527. MYSQL_PASSWORD: owncloud
  528. MYSQL_DATABASE: oc_autotest
  529. tmpfs:
  530. - /var/lib/mysql
  531. trigger:
  532. branch:
  533. - master
  534. - stable*
  535. event:
  536. - push
  537. ---
  538. kind: pipeline
  539. name: mysql5.7-php7.2
  540. steps:
  541. - name: submodules
  542. image: docker:git
  543. commands:
  544. - git submodule update --init
  545. - name: mysql-php7.2
  546. image: nextcloudci/php7.2:php7.2-12
  547. commands:
  548. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  549. services:
  550. - name: mysql
  551. image: mysql:5.7
  552. environment:
  553. MYSQL_ROOT_PASSWORD: owncloud
  554. MYSQL_USER: oc_autotest
  555. MYSQL_PASSWORD: owncloud
  556. MYSQL_DATABASE: oc_autotest
  557. tmpfs:
  558. - /var/lib/mysql
  559. trigger:
  560. branch:
  561. - master
  562. - stable*
  563. event:
  564. - push
  565. ---
  566. kind: pipeline
  567. name: mysql5.7-php7.3
  568. steps:
  569. - name: submodules
  570. image: docker:git
  571. commands:
  572. - git submodule update --init
  573. - name: mysql-php7.3
  574. image: nextcloudci/php7.3:php7.3-1
  575. commands:
  576. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  577. services:
  578. - name: mysql
  579. image: mysql:5.7
  580. environment:
  581. MYSQL_ROOT_PASSWORD: owncloud
  582. MYSQL_USER: oc_autotest
  583. MYSQL_PASSWORD: owncloud
  584. MYSQL_DATABASE: oc_autotest
  585. tmpfs:
  586. - /var/lib/mysql
  587. trigger:
  588. branch:
  589. - master
  590. - stable*
  591. event:
  592. - push
  593. ---
  594. kind: pipeline
  595. name: mysql5.6-php7.1
  596. steps:
  597. - name: submodules
  598. image: docker:git
  599. commands:
  600. - git submodule update --init
  601. - name: mysql5.6-php7.1
  602. image: nextcloudci/php7.1:php7.1-16
  603. commands:
  604. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  605. services:
  606. - name: cache
  607. image: redis
  608. - name: mysql
  609. image: mysql:5.6
  610. environment:
  611. MYSQL_ROOT_PASSWORD: owncloud
  612. MYSQL_USER: oc_autotest
  613. MYSQL_PASSWORD: owncloud
  614. MYSQL_DATABASE: oc_autotest
  615. tmpfs:
  616. - /var/lib/mysql
  617. trigger:
  618. branch:
  619. - master
  620. - stable*
  621. event:
  622. - pull_request
  623. - push
  624. ---
  625. kind: pipeline
  626. name: postgres9-php7.3
  627. steps:
  628. - name: submodules
  629. image: docker:git
  630. commands:
  631. - git submodule update --init
  632. - name: postgres-php7.3
  633. image: nextcloudci/php7.3:php7.3-1
  634. commands:
  635. - sleep 10 # gives the database enough time to initialize
  636. - POSTGRES=9 NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  637. services:
  638. - name: cache
  639. image: redis
  640. - name: postgres-9
  641. image: postgres:9
  642. environment:
  643. POSTGRES_USER: oc_autotest
  644. POSTGRES_DB: oc_autotest_dummy
  645. POSTGRES_PASSWORD: owncloud
  646. tmpfs:
  647. - /var/lib/postgresql/data
  648. trigger:
  649. branch:
  650. - master
  651. - stable*
  652. event:
  653. - pull_request
  654. - push
  655. ---
  656. kind: pipeline
  657. name: postgres10-php7.1
  658. steps:
  659. - name: submodules
  660. image: docker:git
  661. commands:
  662. - git submodule update --init
  663. - name: postgres-php7.1
  664. image: nextcloudci/php7.1:php7.1-16
  665. commands:
  666. - sleep 10 # gives the database enough time to initialize
  667. - POSTGRES=10 NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  668. services:
  669. - name: cache
  670. image: redis
  671. - name: postgres-10
  672. image: postgres:10
  673. environment:
  674. POSTGRES_USER: oc_autotest
  675. POSTGRES_DB: oc_autotest_dummy
  676. POSTGRES_PASSWORD: owncloud
  677. tmpfs:
  678. - /var/lib/postgresql/data
  679. trigger:
  680. branch:
  681. - master
  682. - stable*
  683. event:
  684. - push
  685. ---
  686. kind: pipeline
  687. name: postgres11-php7.1
  688. steps:
  689. - name: submodules
  690. image: docker:git
  691. commands:
  692. - git submodule update --init
  693. - name: postgres-php7.1
  694. image: nextcloudci/php7.1:php7.1-16
  695. commands:
  696. - sleep 10 # gives the database enough time to initialize
  697. - POSTGRES=11 NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  698. services:
  699. - name: cache
  700. image: redis
  701. - name: postgres-11
  702. image: postgres:11
  703. environment:
  704. POSTGRES_USER: oc_autotest
  705. POSTGRES_DB: oc_autotest_dummy
  706. POSTGRES_PASSWORD: owncloud
  707. tmpfs:
  708. - /var/lib/postgresql/data
  709. trigger:
  710. branch:
  711. - master
  712. - stable*
  713. event:
  714. - pull_request
  715. - push
  716. ---
  717. kind: pipeline
  718. name: mysqlmb4-php7.1
  719. steps:
  720. - name: submodules
  721. image: docker:git
  722. commands:
  723. - git submodule update --init
  724. - name: mysqlmb4-php7.1
  725. image: nextcloudci/php7.1:php7.1-16
  726. commands:
  727. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
  728. services:
  729. - name: cache
  730. image: redis
  731. - name: mysqlmb4
  732. image: mysql:5.7.22
  733. environment:
  734. MYSQL_ROOT_PASSWORD: owncloud
  735. MYSQL_USER: oc_autotest
  736. MYSQL_PASSWORD: owncloud
  737. MYSQL_DATABASE: oc_autotest
  738. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  739. tmpfs:
  740. - /var/lib/mysql
  741. trigger:
  742. branch:
  743. - master
  744. - stable*
  745. event:
  746. - push
  747. ---
  748. kind: pipeline
  749. name: mysqlmb4-php7.2
  750. steps:
  751. - name: submodules
  752. image: docker:git
  753. commands:
  754. - git submodule update --init
  755. - name: mysqlmb4-php7.2
  756. image: nextcloudci/php7.2:php7.2-12
  757. commands:
  758. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
  759. services:
  760. - name: cache
  761. image: redis
  762. - name: mysqlmb4
  763. image: mysql:5.7.22
  764. environment:
  765. MYSQL_ROOT_PASSWORD: owncloud
  766. MYSQL_USER: oc_autotest
  767. MYSQL_PASSWORD: owncloud
  768. MYSQL_DATABASE: oc_autotest
  769. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  770. tmpfs:
  771. - /var/lib/mysql
  772. trigger:
  773. branch:
  774. - master
  775. - stable*
  776. event:
  777. - push
  778. ---
  779. kind: pipeline
  780. name: mysqlmb4-php7.3
  781. steps:
  782. - name: submodules
  783. image: docker:git
  784. commands:
  785. - git submodule update --init
  786. - name: mysqlmb4-php7.3
  787. image: nextcloudci/php7.3:php7.3-1
  788. commands:
  789. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
  790. services:
  791. - name: cache
  792. image: redis
  793. - name: mysqlmb4
  794. image: mysql:5.7.22
  795. environment:
  796. MYSQL_ROOT_PASSWORD: owncloud
  797. MYSQL_USER: oc_autotest
  798. MYSQL_PASSWORD: owncloud
  799. MYSQL_DATABASE: oc_autotest
  800. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  801. tmpfs:
  802. - /var/lib/mysql
  803. trigger:
  804. branch:
  805. - master
  806. - stable*
  807. event:
  808. - push
  809. ---
  810. kind: pipeline
  811. name: integration-capabilities_features
  812. steps:
  813. - name: submodules
  814. image: docker:git
  815. commands:
  816. - git submodule update --init
  817. - name: integration-capabilities_features
  818. image: nextcloudci/integration-php7.1:2
  819. commands:
  820. - bash tests/drone-run-integration-tests.sh || exit 0
  821. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  822. - cd build/integration
  823. - ./run.sh capabilities_features/capabilities.feature
  824. trigger:
  825. branch:
  826. - master
  827. - stable*
  828. event:
  829. - pull_request
  830. - push
  831. ---
  832. kind: pipeline
  833. name: integration-federation_features
  834. steps:
  835. - name: submodules
  836. image: docker:git
  837. commands:
  838. - git submodule update --init
  839. - name: integration-federation_features
  840. image: nextcloudci/integration-php7.1:2
  841. commands:
  842. - bash tests/drone-run-integration-tests.sh || exit 0
  843. - ./occ maintenance:install --admin-pass=admin
  844. - cd build/integration
  845. - ./run.sh federation_features/federated.feature
  846. trigger:
  847. branch:
  848. - master
  849. - stable*
  850. event:
  851. - pull_request
  852. - push
  853. ---
  854. kind: pipeline
  855. name: integration-auth
  856. steps:
  857. - name: submodules
  858. image: docker:git
  859. commands:
  860. - git submodule update --init
  861. - name: integration-auth
  862. image: nextcloudci/integration-php7.1:2
  863. commands:
  864. - bash tests/drone-run-integration-tests.sh || exit 0
  865. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  866. - cd build/integration
  867. - ./run.sh features/auth.feature
  868. trigger:
  869. branch:
  870. - master
  871. - stable*
  872. event:
  873. - pull_request
  874. - push
  875. ---
  876. kind: pipeline
  877. name: integration-maintenance-mode
  878. steps:
  879. - name: submodules
  880. image: docker:git
  881. commands:
  882. - git submodule update --init
  883. - name: integration-maintenance-mode
  884. image: nextcloudci/integration-php7.1:2
  885. commands:
  886. - bash tests/drone-run-integration-tests.sh || exit 0
  887. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  888. - cd build/integration
  889. - ./run.sh features/maintenance-mode.feature
  890. trigger:
  891. branch:
  892. - master
  893. - stable*
  894. event:
  895. - pull_request
  896. - push
  897. ---
  898. kind: pipeline
  899. name: integration-ratelimiting
  900. steps:
  901. - name: submodules
  902. image: docker:git
  903. commands:
  904. - git submodule update --init
  905. - name: integration-ratelimiting
  906. image: nextcloudci/integration-php7.1:2
  907. commands:
  908. - bash tests/drone-run-integration-tests.sh || exit 0
  909. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  910. - ./occ config:system:set redis host --value=cache
  911. - ./occ config:system:set redis port --value=6379 --type=integer
  912. - ./occ config:system:set redis timeout --value=0 --type=integer
  913. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  914. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  915. - ./occ app:enable testing
  916. - cd build/integration
  917. - ./run.sh features/ratelimiting.feature
  918. services:
  919. - name: cache
  920. image: redis
  921. trigger:
  922. branch:
  923. - master
  924. - stable*
  925. event:
  926. - pull_request
  927. - push
  928. ---
  929. kind: pipeline
  930. name: integration-carddav
  931. steps:
  932. - name: submodules
  933. image: docker:git
  934. commands:
  935. - git submodule update --init
  936. - name: integration-carddav
  937. image: nextcloudci/integration-php7.1:2
  938. commands:
  939. - bash tests/drone-run-integration-tests.sh || exit 0
  940. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  941. - cd build/integration
  942. - ./run.sh features/carddav.feature
  943. trigger:
  944. branch:
  945. - master
  946. - stable*
  947. event:
  948. - pull_request
  949. - push
  950. ---
  951. kind: pipeline
  952. name: integration-dav-v2
  953. steps:
  954. - name: submodules
  955. image: docker:git
  956. commands:
  957. - git submodule update --init
  958. - name: integration-dav-v2
  959. image: nextcloudci/integration-php7.1:2
  960. commands:
  961. - bash tests/drone-run-integration-tests.sh || exit 0
  962. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  963. - cd build/integration
  964. - ./run.sh features/dav-v2.feature
  965. trigger:
  966. branch:
  967. - master
  968. - stable*
  969. event:
  970. - pull_request
  971. - push
  972. ---
  973. kind: pipeline
  974. name: integration-ocs-v1
  975. steps:
  976. - name: submodules
  977. image: docker:git
  978. commands:
  979. - git submodule update --init
  980. - name: integration-ocs-v1
  981. image: nextcloudci/integration-php7.1:2
  982. commands:
  983. - bash tests/drone-run-integration-tests.sh || exit 0
  984. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  985. - cd build/integration
  986. - ./run.sh features/ocs-v1.feature
  987. trigger:
  988. branch:
  989. - master
  990. - stable*
  991. event:
  992. - pull_request
  993. - push
  994. ---
  995. kind: pipeline
  996. name: integration-sharing-v1
  997. steps:
  998. - name: submodules
  999. image: docker:git
  1000. commands:
  1001. - git submodule update --init
  1002. - name: integration-sharing-v1
  1003. image: nextcloudci/integration-php7.1:2
  1004. commands:
  1005. - bash tests/drone-run-integration-tests.sh || exit 0
  1006. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1007. - cd build/integration
  1008. - ./run.sh features/sharing-v1.feature
  1009. trigger:
  1010. branch:
  1011. - master
  1012. - stable*
  1013. event:
  1014. - pull_request
  1015. - push
  1016. ---
  1017. kind: pipeline
  1018. name: integration-sharing-v1-part2
  1019. steps:
  1020. - name: submodules
  1021. image: docker:git
  1022. commands:
  1023. - git submodule update --init
  1024. - name: integration-sharing-v1-part2
  1025. image: nextcloudci/integration-php7.1:2
  1026. commands:
  1027. - bash tests/drone-run-integration-tests.sh || exit 0
  1028. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1029. - cd build/integration
  1030. - ./run.sh features/sharing-v1-part2.feature
  1031. trigger:
  1032. branch:
  1033. - master
  1034. - stable*
  1035. event:
  1036. - pull_request
  1037. - push
  1038. ---
  1039. kind: pipeline
  1040. name: integration-sharing-v1-part3
  1041. steps:
  1042. - name: submodules
  1043. image: docker:git
  1044. commands:
  1045. - git submodule update --init
  1046. - name: integration-sharing-v1-part3
  1047. image: nextcloudci/integration-php7.1:2
  1048. commands:
  1049. - bash tests/drone-run-integration-tests.sh || exit 0
  1050. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1051. - cd build/integration
  1052. - ./run.sh features/sharing-v1-part3.feature
  1053. trigger:
  1054. branch:
  1055. - master
  1056. - stable*
  1057. event:
  1058. - pull_request
  1059. - push
  1060. ---
  1061. kind: pipeline
  1062. name: integration-checksums-v1
  1063. steps:
  1064. - name: submodules
  1065. image: docker:git
  1066. commands:
  1067. - git submodule update --init
  1068. - name: integration-checksums-v1
  1069. image: nextcloudci/integration-php7.1:2
  1070. commands:
  1071. - bash tests/drone-run-integration-tests.sh || exit 0
  1072. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1073. - cd build/integration
  1074. - ./run.sh features/checksums.feature
  1075. trigger:
  1076. branch:
  1077. - master
  1078. - stable*
  1079. event:
  1080. - pull_request
  1081. - push
  1082. ---
  1083. kind: pipeline
  1084. name: integration-external-storage
  1085. steps:
  1086. - name: submodules
  1087. image: docker:git
  1088. commands:
  1089. - git submodule update --init
  1090. - name: integration-external-storage
  1091. image: nextcloudci/integration-php7.1:2
  1092. commands:
  1093. - bash tests/drone-run-integration-tests.sh || exit 0
  1094. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1095. - cd build/integration
  1096. - ./run.sh features/external-storage.feature
  1097. trigger:
  1098. branch:
  1099. - master
  1100. - stable*
  1101. event:
  1102. - pull_request
  1103. - push
  1104. ---
  1105. kind: pipeline
  1106. name: integration-provisioning-v1
  1107. steps:
  1108. - name: submodules
  1109. image: docker:git
  1110. commands:
  1111. - git submodule update --init
  1112. - name: integration-provisioning-v1
  1113. image: nextcloudci/integration-php7.1:2
  1114. commands:
  1115. - bash tests/drone-run-integration-tests.sh || exit 0
  1116. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1117. - cd build/integration
  1118. - ./run.sh features/provisioning-v1.feature
  1119. trigger:
  1120. branch:
  1121. - master
  1122. - stable*
  1123. event:
  1124. - pull_request
  1125. - push
  1126. ---
  1127. kind: pipeline
  1128. name: integration-tags
  1129. steps:
  1130. - name: submodules
  1131. image: docker:git
  1132. commands:
  1133. - git submodule update --init
  1134. - name: integration-tags
  1135. image: nextcloudci/integration-php7.1:2
  1136. commands:
  1137. - bash tests/drone-run-integration-tests.sh || exit 0
  1138. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1139. - cd build/integration
  1140. - ./run.sh features/tags.feature
  1141. trigger:
  1142. branch:
  1143. - master
  1144. - stable*
  1145. event:
  1146. - pull_request
  1147. - push
  1148. ---
  1149. kind: pipeline
  1150. name: integration-caldav
  1151. steps:
  1152. - name: submodules
  1153. image: docker:git
  1154. commands:
  1155. - git submodule update --init
  1156. - name: integration-caldav
  1157. image: nextcloudci/integration-php7.1:2
  1158. commands:
  1159. - bash tests/drone-run-integration-tests.sh || exit 0
  1160. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1161. - cd build/integration
  1162. - ./run.sh features/caldav.feature
  1163. trigger:
  1164. branch:
  1165. - master
  1166. - stable*
  1167. event:
  1168. - pull_request
  1169. - push
  1170. ---
  1171. kind: pipeline
  1172. name: integration-comments
  1173. steps:
  1174. - name: submodules
  1175. image: docker:git
  1176. commands:
  1177. - git submodule update --init
  1178. - name: integration-comments
  1179. image: nextcloudci/integration-php7.1:2
  1180. commands:
  1181. - bash tests/drone-run-integration-tests.sh || exit 0
  1182. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1183. - cd build/integration
  1184. - ./run.sh features/comments.feature
  1185. trigger:
  1186. branch:
  1187. - master
  1188. - stable*
  1189. event:
  1190. - pull_request
  1191. - push
  1192. ---
  1193. kind: pipeline
  1194. name: integration-comments-search
  1195. steps:
  1196. - name: submodules
  1197. image: docker:git
  1198. commands:
  1199. - git submodule update --init
  1200. - name: integration-comments-search
  1201. image: nextcloudci/integration-php7.1:2
  1202. commands:
  1203. - bash tests/drone-run-integration-tests.sh || exit 0
  1204. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1205. - cd build/integration
  1206. - ./run.sh features/comments-search.feature
  1207. trigger:
  1208. branch:
  1209. - master
  1210. - stable*
  1211. event:
  1212. - pull_request
  1213. - push
  1214. ---
  1215. kind: pipeline
  1216. name: integration-favorites
  1217. steps:
  1218. - name: submodules
  1219. image: docker:git
  1220. commands:
  1221. - git submodule update --init
  1222. - name: integration-favorites
  1223. image: nextcloudci/integration-php7.1:2
  1224. commands:
  1225. - bash tests/drone-run-integration-tests.sh || exit 0
  1226. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1227. - cd build/integration
  1228. - ./run.sh features/favorites.feature
  1229. trigger:
  1230. branch:
  1231. - master
  1232. - stable*
  1233. event:
  1234. - pull_request
  1235. - push
  1236. ---
  1237. kind: pipeline
  1238. name: integration-provisioning-v2
  1239. steps:
  1240. - name: submodules
  1241. image: docker:git
  1242. commands:
  1243. - git submodule update --init
  1244. - name: integration-provisioning-v2
  1245. image: nextcloudci/integration-php7.1:2
  1246. commands:
  1247. - bash tests/drone-run-integration-tests.sh || exit 0
  1248. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1249. - cd build/integration
  1250. - ./run.sh features/provisioning-v2.feature
  1251. trigger:
  1252. branch:
  1253. - master
  1254. - stable*
  1255. event:
  1256. - pull_request
  1257. - push
  1258. ---
  1259. kind: pipeline
  1260. name: integration-webdav-related
  1261. steps:
  1262. - name: submodules
  1263. image: docker:git
  1264. commands:
  1265. - git submodule update --init
  1266. - name: integration-webdav-related
  1267. image: nextcloudci/integration-php7.1:2
  1268. commands:
  1269. - bash tests/drone-run-integration-tests.sh || exit 0
  1270. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1271. - cd build/integration
  1272. - ./run.sh features/webdav-related.feature
  1273. trigger:
  1274. branch:
  1275. - master
  1276. - stable*
  1277. event:
  1278. - pull_request
  1279. - push
  1280. ---
  1281. kind: pipeline
  1282. name: integration-sharees-features
  1283. steps:
  1284. - name: submodules
  1285. image: docker:git
  1286. commands:
  1287. - git submodule update --init
  1288. - name: integration-sharees-features
  1289. image: nextcloudci/integration-php7.1:2
  1290. commands:
  1291. - bash tests/drone-run-integration-tests.sh || exit 0
  1292. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1293. - cd build/integration
  1294. - ./run.sh sharees_features/sharees.feature
  1295. trigger:
  1296. branch:
  1297. - master
  1298. - stable*
  1299. event:
  1300. - pull_request
  1301. - push
  1302. ---
  1303. kind: pipeline
  1304. name: integration-sharees-v2-features
  1305. steps:
  1306. - name: submodules
  1307. image: docker:git
  1308. commands:
  1309. - git submodule update --init
  1310. - name: integration-sharees-v2-features
  1311. image: nextcloudci/integration-php7.1:2
  1312. commands:
  1313. - bash tests/drone-run-integration-tests.sh || exit 0
  1314. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1315. - cd build/integration
  1316. - ./run.sh sharees_features/sharees_provisioningapiv2.feature
  1317. trigger:
  1318. branch:
  1319. - master
  1320. - stable*
  1321. event:
  1322. - pull_request
  1323. - push
  1324. ---
  1325. kind: pipeline
  1326. name: integration-setup-features
  1327. steps:
  1328. - name: submodules
  1329. image: docker:git
  1330. commands:
  1331. - git submodule update --init
  1332. - name: integration-setup-features
  1333. image: nextcloudci/integration-php7.1:2
  1334. commands:
  1335. - bash tests/drone-run-integration-tests.sh || exit 0
  1336. - cd build/integration
  1337. - ./run.sh setup_features/setup.feature
  1338. trigger:
  1339. branch:
  1340. - master
  1341. - stable*
  1342. event:
  1343. - pull_request
  1344. - push
  1345. ---
  1346. kind: pipeline
  1347. name: integration-filesdrop-features
  1348. steps:
  1349. - name: submodules
  1350. image: docker:git
  1351. commands:
  1352. - git submodule update --init
  1353. - name: integration-filesdrop-features
  1354. image: nextcloudci/integration-php7.1:2
  1355. commands:
  1356. - bash tests/drone-run-integration-tests.sh || exit 0
  1357. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1358. - cd build/integration
  1359. - ./run.sh filesdrop_features/filesdrop.feature
  1360. trigger:
  1361. branch:
  1362. - master
  1363. - stable*
  1364. event:
  1365. - pull_request
  1366. - push
  1367. ---
  1368. kind: pipeline
  1369. name: integration-transfer-ownership-features
  1370. steps:
  1371. - name: submodules
  1372. image: docker:git
  1373. commands:
  1374. - git submodule update --init
  1375. - name: integration-transfer-ownership-features
  1376. image: nextcloudci/integration-php7.1:2
  1377. commands:
  1378. - bash tests/drone-run-integration-tests.sh || exit 0
  1379. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1380. - cd build/integration
  1381. - ./run.sh features/transfer-ownership.feature
  1382. trigger:
  1383. branch:
  1384. - master
  1385. - stable*
  1386. event:
  1387. - pull_request
  1388. - push
  1389. ---
  1390. kind: pipeline
  1391. name: integration-ldap-features
  1392. steps:
  1393. - name: submodules
  1394. image: docker:git
  1395. commands:
  1396. - git submodule update --init
  1397. - name: integration-ldap-features
  1398. image: nextcloudci/integration-php7.1:2
  1399. commands:
  1400. - bash tests/drone-run-integration-tests.sh || exit 0
  1401. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1402. - cd build/integration
  1403. - ./run.sh ldap_features/ldap-ocs.feature
  1404. trigger:
  1405. branch:
  1406. - master
  1407. - stable*
  1408. event:
  1409. - pull_request
  1410. - push
  1411. ---
  1412. kind: pipeline
  1413. name: integration-ldap-openldap-features
  1414. steps:
  1415. - name: submodules
  1416. image: docker:git
  1417. commands:
  1418. - git submodule update --init
  1419. - name: integration-ldap-openldap-features
  1420. image: nextcloudci/integration-php7.1:2
  1421. commands:
  1422. - bash tests/drone-run-integration-tests.sh || exit 0
  1423. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1424. - ./occ config:system:set redis host --value=cache
  1425. - ./occ config:system:set redis port --value=6379 --type=integer
  1426. - ./occ config:system:set redis timeout --value=0 --type=integer
  1427. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  1428. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  1429. - cd build/integration
  1430. - ./run.sh ldap_features/ldap-openldap.feature
  1431. services:
  1432. - name: cache
  1433. image: redis
  1434. - name: openldap
  1435. image: nextcloudci/openldap:openldap-7
  1436. environment:
  1437. SLAPD_DOMAIN: nextcloud.ci
  1438. SLAPD_ORGANIZATION: Nextcloud
  1439. SLAPD_PASSWORD: admin
  1440. SLAPD_ADDITIONAL_MODULES: memberof
  1441. trigger:
  1442. branch:
  1443. - master
  1444. - stable*
  1445. event:
  1446. - pull_request
  1447. - push
  1448. ---
  1449. kind: pipeline
  1450. name: integration-ldap-openldap-uid-features
  1451. steps:
  1452. - name: submodules
  1453. image: docker:git
  1454. commands:
  1455. - git submodule update --init
  1456. - name: integration-ldap-openldap-uid-features
  1457. image: nextcloudci/integration-php7.1:2
  1458. commands:
  1459. - bash tests/drone-run-integration-tests.sh || exit 0
  1460. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1461. - ./occ config:system:set redis host --value=cache
  1462. - ./occ config:system:set redis port --value=6379 --type=integer
  1463. - ./occ config:system:set redis timeout --value=0 --type=integer
  1464. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  1465. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  1466. - cd build/integration
  1467. - ./run.sh ldap_features/openldap-uid-username.feature
  1468. services:
  1469. - name: cache
  1470. image: redis
  1471. - name: openldap
  1472. image: nextcloudci/openldap:openldap-7
  1473. environment:
  1474. SLAPD_DOMAIN: nextcloud.ci
  1475. SLAPD_ORGANIZATION: Nextcloud
  1476. SLAPD_PASSWORD: admin
  1477. SLAPD_ADDITIONAL_MODULES: memberof
  1478. trigger:
  1479. branch:
  1480. - master
  1481. - stable*
  1482. event:
  1483. - pull_request
  1484. - push
  1485. ---
  1486. kind: pipeline
  1487. name: integration-ldap-openldap-numerical-id-features
  1488. steps:
  1489. - name: submodules
  1490. image: docker:git
  1491. commands:
  1492. - git submodule update --init
  1493. - name: integration-ldap-openldap-numerical-id-features
  1494. image: nextcloudci/integration-php7.1:2
  1495. commands:
  1496. - bash tests/drone-run-integration-tests.sh || exit 0
  1497. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1498. - ./occ config:system:set redis host --value=cache
  1499. - ./occ config:system:set redis port --value=6379 --type=integer
  1500. - ./occ config:system:set redis timeout --value=0 --type=integer
  1501. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  1502. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  1503. - cd build/integration
  1504. - ./run.sh ldap_features/openldap-numerical-id.feature
  1505. services:
  1506. - name: cache
  1507. image: redis
  1508. - name: openldap
  1509. image: nextcloudci/openldap:openldap-7
  1510. environment:
  1511. SLAPD_DOMAIN: nextcloud.ci
  1512. SLAPD_ORGANIZATION: Nextcloud
  1513. SLAPD_PASSWORD: admin
  1514. SLAPD_ADDITIONAL_MODULES: memberof
  1515. trigger:
  1516. branch:
  1517. - master
  1518. - stable*
  1519. event:
  1520. - pull_request
  1521. - push
  1522. ---
  1523. kind: pipeline
  1524. name: integration-trashbin
  1525. steps:
  1526. - name: submodules
  1527. image: docker:git
  1528. commands:
  1529. - git submodule update --init
  1530. - name: integration-trashbin
  1531. image: nextcloudci/integration-php7.1:2
  1532. commands:
  1533. - bash tests/drone-run-integration-tests.sh || exit 0
  1534. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1535. - cd build/integration
  1536. - ./run.sh features/trashbin.feature
  1537. trigger:
  1538. branch:
  1539. - master
  1540. - stable*
  1541. event:
  1542. - pull_request
  1543. - push
  1544. ---
  1545. kind: pipeline
  1546. name: integration-remote-api
  1547. steps:
  1548. - name: submodules
  1549. image: docker:git
  1550. commands:
  1551. - git submodule update --init
  1552. - name: integration-remote-api
  1553. image: nextcloudci/integration-php7.1:2
  1554. commands:
  1555. - bash tests/drone-run-integration-tests.sh || exit 0
  1556. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1557. - cd build/integration
  1558. - ./run.sh remoteapi_features/remote.feature
  1559. trigger:
  1560. branch:
  1561. - master
  1562. - stable*
  1563. event:
  1564. - pull_request
  1565. - push
  1566. ---
  1567. kind: pipeline
  1568. name: integration-download
  1569. steps:
  1570. - name: submodules
  1571. image: docker:git
  1572. commands:
  1573. - git submodule update --init
  1574. - name: integration-download
  1575. image: nextcloudci/integration-php7.1:2
  1576. commands:
  1577. - bash tests/drone-run-integration-tests.sh || exit 0
  1578. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1579. - cd build/integration
  1580. - ./run.sh --tags ~@large features/download.feature
  1581. trigger:
  1582. branch:
  1583. - master
  1584. - stable*
  1585. event:
  1586. - pull_request
  1587. - push
  1588. ---
  1589. kind: pipeline
  1590. name: acceptance-access-levels
  1591. steps:
  1592. - name: submodules
  1593. image: docker:git
  1594. commands:
  1595. - git submodule update --init
  1596. - name: acceptance-access-levels
  1597. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1598. commands:
  1599. - 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
  1600. services:
  1601. - name: selenium
  1602. image: selenium/standalone-firefox:2.53.1-beryllium
  1603. environment:
  1604. # Reduce default log level for Selenium server (INFO) as it is too
  1605. # verbose.
  1606. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1607. trigger:
  1608. branch:
  1609. - master
  1610. - stable*
  1611. event:
  1612. - pull_request
  1613. - push
  1614. ---
  1615. kind: pipeline
  1616. name: acceptance-app-comments
  1617. steps:
  1618. - name: submodules
  1619. image: docker:git
  1620. commands:
  1621. - git submodule update --init
  1622. - name: acceptance-app-comments
  1623. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1624. commands:
  1625. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-app-comments --selenium-server selenium:4444 allow-git-repository-modifications features/app-comments.feature
  1626. services:
  1627. - name: selenium
  1628. image: selenium/standalone-firefox:2.53.1-beryllium
  1629. environment:
  1630. # Reduce default log level for Selenium server (INFO) as it is too
  1631. # verbose.
  1632. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1633. trigger:
  1634. branch:
  1635. - master
  1636. - stable*
  1637. event:
  1638. - pull_request
  1639. - push
  1640. ---
  1641. kind: pipeline
  1642. name: acceptance-app-files
  1643. steps:
  1644. - name: submodules
  1645. image: docker:git
  1646. commands:
  1647. - git submodule update --init
  1648. - name: acceptance-app-files
  1649. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1650. commands:
  1651. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-app-files --selenium-server selenium:4444 allow-git-repository-modifications features/app-files.feature
  1652. services:
  1653. - name: selenium
  1654. image: selenium/standalone-firefox:2.53.1-beryllium
  1655. environment:
  1656. # Reduce default log level for Selenium server (INFO) as it is too
  1657. # verbose.
  1658. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1659. trigger:
  1660. branch:
  1661. - master
  1662. - stable*
  1663. event:
  1664. - pull_request
  1665. - push
  1666. ---
  1667. kind: pipeline
  1668. name: acceptance-app-files-sharing
  1669. steps:
  1670. - name: submodules
  1671. image: docker:git
  1672. commands:
  1673. - git submodule update --init
  1674. - name: acceptance-app-files-sharing
  1675. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1676. commands:
  1677. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-app-files-sharing --selenium-server selenium:4444 allow-git-repository-modifications features/app-files-sharing.feature
  1678. services:
  1679. - name: selenium
  1680. image: selenium/standalone-firefox:2.53.1-beryllium
  1681. environment:
  1682. # Reduce default log level for Selenium server (INFO) as it is too
  1683. # verbose.
  1684. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1685. trigger:
  1686. branch:
  1687. - master
  1688. - stable*
  1689. event:
  1690. - pull_request
  1691. - push
  1692. ---
  1693. kind: pipeline
  1694. name: acceptance-app-files-sharing-link
  1695. steps:
  1696. - name: submodules
  1697. image: docker:git
  1698. commands:
  1699. - git submodule update --init
  1700. - name: acceptance-app-files-sharing-link
  1701. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1702. commands:
  1703. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-app-files-sharing-link --selenium-server selenium:4444 allow-git-repository-modifications features/app-files-sharing-link.feature
  1704. services:
  1705. - name: selenium
  1706. image: selenium/standalone-firefox:2.53.1-beryllium
  1707. environment:
  1708. # Reduce default log level for Selenium server (INFO) as it is too
  1709. # verbose.
  1710. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1711. trigger:
  1712. branch:
  1713. - master
  1714. - stable*
  1715. event:
  1716. - pull_request
  1717. - push
  1718. ---
  1719. kind: pipeline
  1720. name: acceptance-app-files-tags
  1721. steps:
  1722. - name: submodules
  1723. image: docker:git
  1724. commands:
  1725. - git submodule update --init
  1726. - name: acceptance-app-files-tags
  1727. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1728. commands:
  1729. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-app-files-tags --selenium-server selenium:4444 allow-git-repository-modifications features/app-files-tags.feature
  1730. services:
  1731. - name: selenium
  1732. image: selenium/standalone-firefox:2.53.1-beryllium
  1733. environment:
  1734. # Reduce default log level for Selenium server (INFO) as it is too
  1735. # verbose.
  1736. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1737. trigger:
  1738. branch:
  1739. - master
  1740. - stable*
  1741. event:
  1742. - pull_request
  1743. - push
  1744. ---
  1745. kind: pipeline
  1746. name: acceptance-app-theming
  1747. steps:
  1748. - name: submodules
  1749. image: docker:git
  1750. commands:
  1751. - git submodule update --init
  1752. - name: acceptance-app-theming
  1753. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1754. commands:
  1755. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-app-theming --selenium-server selenium:4444 allow-git-repository-modifications features/app-theming.feature
  1756. services:
  1757. - name: selenium
  1758. image: selenium/standalone-firefox:2.53.1-beryllium
  1759. environment:
  1760. # Reduce default log level for Selenium server (INFO) as it is too
  1761. # verbose.
  1762. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1763. trigger:
  1764. branch:
  1765. - master
  1766. - stable*
  1767. event:
  1768. - pull_request
  1769. - push
  1770. ---
  1771. kind: pipeline
  1772. name: acceptance-header
  1773. steps:
  1774. - name: submodules
  1775. image: docker:git
  1776. commands:
  1777. - git submodule update --init
  1778. - name: acceptance-header
  1779. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1780. commands:
  1781. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-header --selenium-server selenium:4444 allow-git-repository-modifications features/header.feature
  1782. services:
  1783. - name: selenium
  1784. image: selenium/standalone-firefox:2.53.1-beryllium
  1785. environment:
  1786. # Reduce default log level for Selenium server (INFO) as it is too
  1787. # verbose.
  1788. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1789. trigger:
  1790. branch:
  1791. - master
  1792. - stable*
  1793. event:
  1794. - pull_request
  1795. - push
  1796. ---
  1797. kind: pipeline
  1798. name: acceptance-login
  1799. steps:
  1800. - name: submodules
  1801. image: docker:git
  1802. commands:
  1803. - git submodule update --init
  1804. - name: acceptance-login
  1805. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1806. commands:
  1807. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-login --selenium-server selenium:4444 allow-git-repository-modifications features/login.feature
  1808. services:
  1809. - name: selenium
  1810. image: selenium/standalone-firefox:2.53.1-beryllium
  1811. environment:
  1812. # Reduce default log level for Selenium server (INFO) as it is too
  1813. # verbose.
  1814. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1815. trigger:
  1816. branch:
  1817. - master
  1818. - stable*
  1819. event:
  1820. - pull_request
  1821. - push
  1822. ---
  1823. kind: pipeline
  1824. name: acceptance-users
  1825. steps:
  1826. - name: submodules
  1827. image: docker:git
  1828. commands:
  1829. - git submodule update --init
  1830. - name: acceptance-users
  1831. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1832. commands:
  1833. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-users --selenium-server selenium:4444 allow-git-repository-modifications features/users.feature
  1834. services:
  1835. - name: selenium
  1836. image: selenium/standalone-firefox:2.53.1-beryllium
  1837. environment:
  1838. # Reduce default log level for Selenium server (INFO) as it is too
  1839. # verbose.
  1840. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1841. trigger:
  1842. branch:
  1843. - master
  1844. - stable*
  1845. event:
  1846. - pull_request
  1847. - push
  1848. ---
  1849. kind: pipeline
  1850. name: acceptance-apps
  1851. steps:
  1852. - name: submodules
  1853. image: docker:git
  1854. commands:
  1855. - git submodule update --init
  1856. - name: acceptance-apps
  1857. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1858. commands:
  1859. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-apps --selenium-server selenium:4444 allow-git-repository-modifications features/apps.feature
  1860. services:
  1861. - name: selenium
  1862. image: selenium/standalone-firefox:2.53.1-beryllium
  1863. environment:
  1864. # Reduce default log level for Selenium server (INFO) as it is too
  1865. # verbose.
  1866. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1867. trigger:
  1868. branch:
  1869. - master
  1870. - stable*
  1871. event:
  1872. - pull_request
  1873. - push
  1874. ---
  1875. kind: pipeline
  1876. name: nodb-codecov
  1877. steps:
  1878. - name: submodules
  1879. image: docker:git
  1880. commands:
  1881. - git submodule update --init
  1882. - name: nodb-codecov
  1883. image: nextcloudci/php7.1:php7.1-16
  1884. commands:
  1885. - phpenmod xdebug
  1886. - TEST_SELECTION=NODB ./autotest.sh sqlite
  1887. - wget https://codecov.io/bash -O codecov.sh
  1888. - 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"
  1889. - 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"
  1890. services:
  1891. - name: cache
  1892. image: redis
  1893. trigger:
  1894. branch:
  1895. - master
  1896. - stable*
  1897. event:
  1898. - push
  1899. ---
  1900. kind: pipeline
  1901. name: db-codecov
  1902. steps:
  1903. - name: submodules
  1904. image: docker:git
  1905. commands:
  1906. - git submodule update --init
  1907. - name: db-codecov
  1908. image: nextcloudci/php7.1:php7.1-16
  1909. commands:
  1910. - phpenmod xdebug
  1911. - TEST_SELECTION=QUICKDB ./autotest.sh sqlite
  1912. - wget https://codecov.io/bash -O codecov.sh
  1913. - 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"
  1914. - 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"
  1915. services:
  1916. - name: cache
  1917. image: redis
  1918. trigger:
  1919. branch:
  1920. - master
  1921. - stable*
  1922. event:
  1923. - push
  1924. ---
  1925. kind: pipeline
  1926. name: object-store-s3
  1927. steps:
  1928. - name: submodules
  1929. image: docker:git
  1930. commands:
  1931. - git submodule update --init
  1932. - name: object-store
  1933. image: nextcloudci/php7.1:php7.1-16
  1934. commands:
  1935. - phpenmod xdebug
  1936. - ./tests/drone-wait-objectstore.sh
  1937. - TEST_SELECTION=PRIMARY-s3 ./autotest.sh sqlite
  1938. - wget https://codecov.io/bash -O codecov.sh
  1939. - 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"
  1940. - 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"
  1941. services:
  1942. - name: fake-s3
  1943. image: lphoward/fake-s3:latest
  1944. trigger:
  1945. branch:
  1946. - master
  1947. - stable*
  1948. event:
  1949. - pull_request
  1950. - push
  1951. ---
  1952. kind: pipeline
  1953. name: object-store-azure
  1954. steps:
  1955. - name: submodules
  1956. image: docker:git
  1957. commands:
  1958. - git submodule update --init
  1959. - name: object-store
  1960. image: nextcloudci/php7.1:php7.1-16
  1961. commands:
  1962. - phpenmod xdebug
  1963. - ./tests/drone-wait-objectstore.sh
  1964. - TEST_SELECTION=PRIMARY-azure ./autotest.sh sqlite
  1965. - wget https://codecov.io/bash -O codecov.sh
  1966. - 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"
  1967. - 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"
  1968. services:
  1969. - name: azurite
  1970. image: arafato/azurite:latest
  1971. environment:
  1972. executable: blob
  1973. trigger:
  1974. branch:
  1975. - master
  1976. - stable*
  1977. event:
  1978. - pull_request
  1979. - push
  1980. ---
  1981. #kind: pipeline
  1982. #name: object-store-swift-v2
  1983. #
  1984. #clone:
  1985. # depth: 1
  1986. #
  1987. #steps:
  1988. #- name: submodules
  1989. # image: docker:git
  1990. # commands:
  1991. # - git submodule update --init
  1992. #- name: object-store
  1993. # image: nextcloudci/php7.1:php7.1-16
  1994. # commands:
  1995. # - phpenmod xdebug
  1996. # - ./tests/drone-wait-objectstore.sh
  1997. # - TEST_SELECTION=PRIMARY-${OBJECT_STORE} ./autotest.sh sqlite
  1998. # - wget https://codecov.io/bash -O codecov.sh
  1999. # - 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"
  2000. # - 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"
  2001. #
  2002. #services:
  2003. #- name: dockswift
  2004. # image: icewind1991/dockswift:nextcloud-ci
  2005. # environment:
  2006. # IPADDRESS: dockswift
  2007. #
  2008. #trigger:
  2009. # branch:
  2010. # - master
  2011. # - stable*
  2012. # event:
  2013. # - pull_request
  2014. # - push
  2015. #
  2016. #---
  2017. #kind: pipeline
  2018. #name: object-store-swift-v3
  2019. #
  2020. #clone:
  2021. # depth: 1
  2022. #
  2023. #steps:
  2024. #- name: submodules
  2025. # image: docker:git
  2026. # commands:
  2027. # - git submodule update --init
  2028. #- name: object-store
  2029. # image: nextcloudci/php7.1:php7.1-16
  2030. # commands:
  2031. # - phpenmod xdebug
  2032. # - ./tests/drone-wait-objectstore.sh
  2033. # - TEST_SELECTION=PRIMARY-${OBJECT_STORE} ./autotest.sh sqlite
  2034. # - wget https://codecov.io/bash -O codecov.sh
  2035. # - 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"
  2036. # - 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"
  2037. #
  2038. #services:
  2039. #- name: dockswift
  2040. # image: icewind1991/dockswift:nextcloud-ci
  2041. # environment:
  2042. # IPADDRESS: dockswift
  2043. #
  2044. #trigger:
  2045. # branch:
  2046. # - master
  2047. # - stable*
  2048. # event:
  2049. # - pull_request
  2050. # - push
  2051. #
  2052. #---
  2053. kind: pipeline
  2054. name: memcache-memcached
  2055. steps:
  2056. - name: submodules
  2057. image: docker:git
  2058. commands:
  2059. - git submodule update --init
  2060. - name: memcache-memcached
  2061. image: nextcloudci/php7.1-memcached:1
  2062. commands:
  2063. - phpenmod xdebug
  2064. - service memcached restart
  2065. - ./autotest.sh sqlite tests/lib/Memcache/MemcachedTest.php
  2066. - wget https://codecov.io/bash -O codecov.sh
  2067. - 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"
  2068. - 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"
  2069. trigger:
  2070. branch:
  2071. - master
  2072. - stable*
  2073. event:
  2074. - pull_request
  2075. - push
  2076. ---
  2077. kind: pipeline
  2078. name: memcache-redis-cluster
  2079. steps:
  2080. - name: submodules
  2081. image: docker:git
  2082. commands:
  2083. - git submodule update --init
  2084. - name: memcache-redis-cluster
  2085. image: nextcloudci/php7.1:php7.1-16
  2086. commands:
  2087. - phpenmod xdebug
  2088. - sleep 20
  2089. - ./autotest.sh sqlite tests/lib/Memcache/RedisTest.php
  2090. - wget https://codecov.io/bash -O codecov.sh
  2091. - 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"
  2092. - 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"
  2093. services:
  2094. - name: cache-cluster
  2095. image: morrisjobke/redis-cluster
  2096. trigger:
  2097. branch:
  2098. - master
  2099. - stable*
  2100. event:
  2101. - pull_request
  2102. - push
  2103. ---
  2104. kind: pipeline
  2105. name: ui-regression
  2106. steps:
  2107. - name: submodules
  2108. image: docker:git
  2109. commands:
  2110. - git submodule update --init
  2111. - name: ui-regression
  2112. image: nextcloudci/ui-regression:ui-regression-1
  2113. commands:
  2114. - cd tests/ui-regression
  2115. - npm install
  2116. - chown -R pptruser out node_modules
  2117. - bash -c "until curl -s http://ui-regression-php-master > /dev/null && curl -s http://ui-regression-php > /dev/null; do sleep 2; done"
  2118. - sudo -u pptruser node runTests.js || true
  2119. - echo "The result can be found at https://s3.bitgrid.net/nextcloud-ui-regression/nextcloud/server/${DRONE_PULL_REQUEST}/index.html"
  2120. shm_size: '1gb'
  2121. services:
  2122. - name: ui-regression-php
  2123. image: nextcloudci/server:server-1
  2124. commands:
  2125. - . /etc/apache2/envvars
  2126. - rm -fr /var/www/html
  2127. - mkdir /var/www/html && cp -rT . /var/www/html && chown -R www-data:www-data /var/www/html
  2128. - rm -fr /var/www/html/config/config.php /var/www/html/data/*
  2129. - apache2 -DFOREGROUND
  2130. - name: ui-regression-php-master
  2131. image: nextcloudci/server:server-1
  2132. commands:
  2133. - . /etc/apache2/envvars
  2134. - rm -fr /var/www/html/config/config.php /var/www/html/data/*
  2135. - su www-data -c "cd /var/www/html/ && git checkout $DRONE_REPO_BRANCH && git pull && git submodule update"
  2136. - apache2 -DFOREGROUND
  2137. - name: publish-s3
  2138. image: plugins/s3
  2139. settings:
  2140. endpoint: https://ci-assets.nextcloud.com
  2141. bucket: nextcloud-ui-regression
  2142. path_style: true
  2143. source: tests/ui-regression/out/**/*
  2144. strip_prefix: tests/ui-regression/out/
  2145. acl: public-read
  2146. target: ${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/${DRONE_PULL_REQUEST}
  2147. secrets: [ aws_access_key_id, aws_secret_access_key ]
  2148. trigger:
  2149. branch:
  2150. - master
  2151. - stable*
  2152. event:
  2153. - pull_request
  2154. - push