.drone.yml 52 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233
  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: mysql-php7.1
  356. steps:
  357. - name: submodules
  358. image: docker:git
  359. commands:
  360. - git submodule update --init
  361. - name: mysql-php7.1
  362. image: nextcloudci/php7.1:php7.1-16
  363. commands:
  364. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  365. services:
  366. - name: cache
  367. image: redis
  368. - name: mysql
  369. image: mysql:5.7
  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: mysql-php7.2
  387. steps:
  388. - name: submodules
  389. image: docker:git
  390. commands:
  391. - git submodule update --init
  392. - name: mysql-php7.2
  393. image: nextcloudci/php7.2:php7.2-12
  394. commands:
  395. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  396. services:
  397. - name: mysql
  398. image: mysql:5.7
  399. environment:
  400. MYSQL_ROOT_PASSWORD: owncloud
  401. MYSQL_USER: oc_autotest
  402. MYSQL_PASSWORD: owncloud
  403. MYSQL_DATABASE: oc_autotest
  404. tmpfs:
  405. - /var/lib/mysql
  406. trigger:
  407. branch:
  408. - master
  409. - stable*
  410. event:
  411. - pull_request
  412. - push
  413. ---
  414. kind: pipeline
  415. name: mysql-php7.3
  416. steps:
  417. - name: submodules
  418. image: docker:git
  419. commands:
  420. - git submodule update --init
  421. - name: mysql-php7.3
  422. image: nextcloudci/php7.3:php7.3-1
  423. commands:
  424. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  425. services:
  426. - name: mysql
  427. image: mysql:5.7
  428. environment:
  429. MYSQL_ROOT_PASSWORD: owncloud
  430. MYSQL_USER: oc_autotest
  431. MYSQL_PASSWORD: owncloud
  432. MYSQL_DATABASE: oc_autotest
  433. tmpfs:
  434. - /var/lib/mysql
  435. trigger:
  436. branch:
  437. - master
  438. - stable*
  439. event:
  440. - pull_request
  441. - push
  442. ---
  443. kind: pipeline
  444. name: mysql5.6-php7.1
  445. steps:
  446. - name: submodules
  447. image: docker:git
  448. commands:
  449. - git submodule update --init
  450. - name: mysql5.6-php7.1
  451. image: nextcloudci/php7.1:php7.1-16
  452. commands:
  453. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  454. services:
  455. - name: cache
  456. image: redis
  457. - name: mysql
  458. image: mysql:5.6
  459. environment:
  460. MYSQL_ROOT_PASSWORD: owncloud
  461. MYSQL_USER: oc_autotest
  462. MYSQL_PASSWORD: owncloud
  463. MYSQL_DATABASE: oc_autotest
  464. tmpfs:
  465. - /var/lib/mysql
  466. trigger:
  467. branch:
  468. - master
  469. - stable*
  470. event:
  471. - pull_request
  472. - push
  473. ---
  474. kind: pipeline
  475. name: mysql5.5-php7.1
  476. steps:
  477. - name: submodules
  478. image: docker:git
  479. commands:
  480. - git submodule update --init
  481. - name: mysql5.5-php7.1
  482. image: nextcloudci/php7.1:php7.1-16
  483. commands:
  484. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  485. services:
  486. - name: cache
  487. image: redis
  488. - name: mysql
  489. image: mysql:5.5
  490. environment:
  491. MYSQL_ROOT_PASSWORD: owncloud
  492. MYSQL_USER: oc_autotest
  493. MYSQL_PASSWORD: owncloud
  494. MYSQL_DATABASE: oc_autotest
  495. tmpfs:
  496. - /var/lib/mysql
  497. trigger:
  498. branch:
  499. - master
  500. - stable*
  501. event:
  502. - pull_request
  503. - push
  504. ---
  505. kind: pipeline
  506. name: postgres9-php7.1
  507. steps:
  508. - name: submodules
  509. image: docker:git
  510. commands:
  511. - git submodule update --init
  512. - name: postgres-php7.1
  513. image: nextcloudci/php7.1:php7.1-16
  514. commands:
  515. - sleep 10 # gives the database enough time to initialize
  516. - POSTGRES=9 NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  517. services:
  518. - name: cache
  519. image: redis
  520. - name: postgres-9
  521. image: postgres:9
  522. environment:
  523. POSTGRES_USER: oc_autotest
  524. POSTGRES_DB: oc_autotest_dummy
  525. POSTGRES_PASSWORD: owncloud
  526. tmpfs:
  527. - /var/lib/postgresql/data
  528. trigger:
  529. branch:
  530. - master
  531. - stable*
  532. event:
  533. - pull_request
  534. - push
  535. ---
  536. kind: pipeline
  537. name: postgres10-php7.1
  538. steps:
  539. - name: submodules
  540. image: docker:git
  541. commands:
  542. - git submodule update --init
  543. - name: postgres-php7.1
  544. image: nextcloudci/php7.1:php7.1-16
  545. commands:
  546. - sleep 10 # gives the database enough time to initialize
  547. - POSTGRES=10 NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  548. services:
  549. - name: cache
  550. image: redis
  551. - name: postgres-10
  552. image: postgres:10
  553. environment:
  554. POSTGRES_USER: oc_autotest
  555. POSTGRES_DB: oc_autotest_dummy
  556. POSTGRES_PASSWORD: owncloud
  557. tmpfs:
  558. - /var/lib/postgresql/data
  559. trigger:
  560. branch:
  561. - master
  562. - stable*
  563. event:
  564. - pull_request
  565. - push
  566. ---
  567. kind: pipeline
  568. name: mysqlmb4-php7.1
  569. steps:
  570. - name: submodules
  571. image: docker:git
  572. commands:
  573. - git submodule update --init
  574. - name: mysqlmb4-php7.1
  575. image: nextcloudci/php7.1:php7.1-16
  576. commands:
  577. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
  578. services:
  579. - name: cache
  580. image: redis
  581. - name: mysqlmb4
  582. image: mysql:5.7.22
  583. environment:
  584. MYSQL_ROOT_PASSWORD: owncloud
  585. MYSQL_USER: oc_autotest
  586. MYSQL_PASSWORD: owncloud
  587. MYSQL_DATABASE: oc_autotest
  588. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  589. tmpfs:
  590. - /var/lib/mysql
  591. trigger:
  592. branch:
  593. - master
  594. - stable*
  595. event:
  596. - pull_request
  597. - push
  598. ---
  599. kind: pipeline
  600. name: mysqlmb4-php7.2
  601. steps:
  602. - name: submodules
  603. image: docker:git
  604. commands:
  605. - git submodule update --init
  606. - name: mysqlmb4-php7.2
  607. image: nextcloudci/php7.2:php7.2-12
  608. commands:
  609. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
  610. services:
  611. - name: cache
  612. image: redis
  613. - name: mysqlmb4
  614. image: mysql:5.7.22
  615. environment:
  616. MYSQL_ROOT_PASSWORD: owncloud
  617. MYSQL_USER: oc_autotest
  618. MYSQL_PASSWORD: owncloud
  619. MYSQL_DATABASE: oc_autotest
  620. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  621. tmpfs:
  622. - /var/lib/mysql
  623. trigger:
  624. branch:
  625. - master
  626. - stable*
  627. event:
  628. - pull_request
  629. - push
  630. ---
  631. kind: pipeline
  632. name: mysqlmb4-php7.3
  633. steps:
  634. - name: submodules
  635. image: docker:git
  636. commands:
  637. - git submodule update --init
  638. - name: mysqlmb4-php7.3
  639. image: nextcloudci/php7.3:php7.3-1
  640. commands:
  641. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
  642. services:
  643. - name: cache
  644. image: redis
  645. - name: mysqlmb4
  646. image: mysql:5.7.22
  647. environment:
  648. MYSQL_ROOT_PASSWORD: owncloud
  649. MYSQL_USER: oc_autotest
  650. MYSQL_PASSWORD: owncloud
  651. MYSQL_DATABASE: oc_autotest
  652. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  653. tmpfs:
  654. - /var/lib/mysql
  655. trigger:
  656. branch:
  657. - master
  658. - stable*
  659. event:
  660. - pull_request
  661. - push
  662. ---
  663. kind: pipeline
  664. name: integration-capabilities_features
  665. steps:
  666. - name: submodules
  667. image: docker:git
  668. commands:
  669. - git submodule update --init
  670. - name: integration-capabilities_features
  671. image: nextcloudci/integration-php7.1:1
  672. commands:
  673. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  674. - cd build/integration
  675. - ./run.sh capabilities_features/capabilities.feature
  676. trigger:
  677. branch:
  678. - master
  679. - stable*
  680. event:
  681. - pull_request
  682. - push
  683. ---
  684. kind: pipeline
  685. name: integration-federation_features
  686. steps:
  687. - name: submodules
  688. image: docker:git
  689. commands:
  690. - git submodule update --init
  691. - name: integration-federation_features
  692. image: nextcloudci/integration-php7.1:1
  693. commands:
  694. - ./occ maintenance:install --admin-pass=admin
  695. - cd build/integration
  696. - ./run.sh federation_features/federated.feature
  697. trigger:
  698. branch:
  699. - master
  700. - stable*
  701. event:
  702. - pull_request
  703. - push
  704. ---
  705. kind: pipeline
  706. name: integration-auth
  707. steps:
  708. - name: submodules
  709. image: docker:git
  710. commands:
  711. - git submodule update --init
  712. - name: integration-auth
  713. image: nextcloudci/integration-php7.1:1
  714. commands:
  715. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  716. - cd build/integration
  717. - ./run.sh features/auth.feature
  718. trigger:
  719. branch:
  720. - master
  721. - stable*
  722. event:
  723. - pull_request
  724. - push
  725. ---
  726. kind: pipeline
  727. name: integration-maintenance-mode
  728. steps:
  729. - name: submodules
  730. image: docker:git
  731. commands:
  732. - git submodule update --init
  733. - name: integration-maintenance-mode
  734. image: nextcloudci/integration-php7.1:1
  735. commands:
  736. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  737. - cd build/integration
  738. - ./run.sh features/maintenance-mode.feature
  739. trigger:
  740. branch:
  741. - master
  742. - stable*
  743. event:
  744. - pull_request
  745. - push
  746. ---
  747. kind: pipeline
  748. name: integration-ratelimiting
  749. steps:
  750. - name: submodules
  751. image: docker:git
  752. commands:
  753. - git submodule update --init
  754. - name: integration-ratelimiting
  755. image: nextcloudci/integration-php7.1:1
  756. commands:
  757. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  758. - ./occ config:system:set redis host --value=cache
  759. - ./occ config:system:set redis port --value=6379 --type=integer
  760. - ./occ config:system:set redis timeout --value=0 --type=integer
  761. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  762. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  763. - ./occ app:enable testing
  764. - cd build/integration
  765. - ./run.sh features/ratelimiting.feature
  766. services:
  767. - name: cache
  768. image: redis
  769. trigger:
  770. branch:
  771. - master
  772. - stable*
  773. event:
  774. - pull_request
  775. - push
  776. ---
  777. kind: pipeline
  778. name: integration-carddav
  779. steps:
  780. - name: submodules
  781. image: docker:git
  782. commands:
  783. - git submodule update --init
  784. - name: integration-carddav
  785. image: nextcloudci/integration-php7.1:1
  786. commands:
  787. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  788. - cd build/integration
  789. - ./run.sh features/carddav.feature
  790. trigger:
  791. branch:
  792. - master
  793. - stable*
  794. event:
  795. - pull_request
  796. - push
  797. ---
  798. kind: pipeline
  799. name: integration-dav-v2
  800. steps:
  801. - name: submodules
  802. image: docker:git
  803. commands:
  804. - git submodule update --init
  805. - name: integration-dav-v2
  806. image: nextcloudci/integration-php7.1:1
  807. commands:
  808. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  809. - cd build/integration
  810. - ./run.sh features/dav-v2.feature
  811. trigger:
  812. branch:
  813. - master
  814. - stable*
  815. event:
  816. - pull_request
  817. - push
  818. ---
  819. kind: pipeline
  820. name: integration-ocs-v1
  821. steps:
  822. - name: submodules
  823. image: docker:git
  824. commands:
  825. - git submodule update --init
  826. - name: integration-ocs-v1
  827. image: nextcloudci/integration-php7.1:1
  828. commands:
  829. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  830. - cd build/integration
  831. - ./run.sh features/ocs-v1.feature
  832. trigger:
  833. branch:
  834. - master
  835. - stable*
  836. event:
  837. - pull_request
  838. - push
  839. ---
  840. kind: pipeline
  841. name: integration-sharing-v1
  842. steps:
  843. - name: submodules
  844. image: docker:git
  845. commands:
  846. - git submodule update --init
  847. - name: integration-sharing-v1
  848. image: nextcloudci/integration-php7.1:1
  849. commands:
  850. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  851. - cd build/integration
  852. - ./run.sh features/sharing-v1.feature
  853. trigger:
  854. branch:
  855. - master
  856. - stable*
  857. event:
  858. - pull_request
  859. - push
  860. ---
  861. kind: pipeline
  862. name: integration-sharing-v1-part2
  863. steps:
  864. - name: submodules
  865. image: docker:git
  866. commands:
  867. - git submodule update --init
  868. - name: integration-sharing-v1-part2
  869. image: nextcloudci/integration-php7.1:1
  870. commands:
  871. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  872. - cd build/integration
  873. - ./run.sh features/sharing-v1-part2.feature
  874. trigger:
  875. branch:
  876. - master
  877. - stable*
  878. event:
  879. - pull_request
  880. - push
  881. ---
  882. kind: pipeline
  883. name: integration-sharing-v1-part3
  884. steps:
  885. - name: submodules
  886. image: docker:git
  887. commands:
  888. - git submodule update --init
  889. - name: integration-sharing-v1-part3
  890. image: nextcloudci/integration-php7.1:1
  891. commands:
  892. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  893. - cd build/integration
  894. - ./run.sh features/sharing-v1-part3.feature
  895. trigger:
  896. branch:
  897. - master
  898. - stable*
  899. event:
  900. - pull_request
  901. - push
  902. ---
  903. kind: pipeline
  904. name: integration-checksums-v1
  905. steps:
  906. - name: submodules
  907. image: docker:git
  908. commands:
  909. - git submodule update --init
  910. - name: integration-checksums-v1
  911. image: nextcloudci/integration-php7.1:1
  912. commands:
  913. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  914. - cd build/integration
  915. - ./run.sh features/checksums.feature
  916. trigger:
  917. branch:
  918. - master
  919. - stable*
  920. event:
  921. - pull_request
  922. - push
  923. ---
  924. kind: pipeline
  925. name: integration-external-storage
  926. steps:
  927. - name: submodules
  928. image: docker:git
  929. commands:
  930. - git submodule update --init
  931. - name: integration-external-storage
  932. image: nextcloudci/integration-php7.1:1
  933. commands:
  934. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  935. - cd build/integration
  936. - ./run.sh features/external-storage.feature
  937. trigger:
  938. branch:
  939. - master
  940. - stable*
  941. event:
  942. - pull_request
  943. - push
  944. ---
  945. kind: pipeline
  946. name: integration-provisioning-v1
  947. steps:
  948. - name: submodules
  949. image: docker:git
  950. commands:
  951. - git submodule update --init
  952. - name: integration-provisioning-v1
  953. image: nextcloudci/integration-php7.1:1
  954. commands:
  955. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  956. - cd build/integration
  957. - ./run.sh features/provisioning-v1.feature
  958. trigger:
  959. branch:
  960. - master
  961. - stable*
  962. event:
  963. - pull_request
  964. - push
  965. ---
  966. kind: pipeline
  967. name: integration-tags
  968. steps:
  969. - name: submodules
  970. image: docker:git
  971. commands:
  972. - git submodule update --init
  973. - name: integration-tags
  974. image: nextcloudci/integration-php7.1:1
  975. commands:
  976. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  977. - cd build/integration
  978. - ./run.sh features/tags.feature
  979. trigger:
  980. branch:
  981. - master
  982. - stable*
  983. event:
  984. - pull_request
  985. - push
  986. ---
  987. kind: pipeline
  988. name: integration-caldav
  989. steps:
  990. - name: submodules
  991. image: docker:git
  992. commands:
  993. - git submodule update --init
  994. - name: integration-caldav
  995. image: nextcloudci/integration-php7.1:1
  996. commands:
  997. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  998. - cd build/integration
  999. - ./run.sh features/caldav.feature
  1000. trigger:
  1001. branch:
  1002. - master
  1003. - stable*
  1004. event:
  1005. - pull_request
  1006. - push
  1007. ---
  1008. kind: pipeline
  1009. name: integration-comments
  1010. steps:
  1011. - name: submodules
  1012. image: docker:git
  1013. commands:
  1014. - git submodule update --init
  1015. - name: integration-comments
  1016. image: nextcloudci/integration-php7.1:1
  1017. commands:
  1018. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1019. - cd build/integration
  1020. - ./run.sh features/comments.feature
  1021. trigger:
  1022. branch:
  1023. - master
  1024. - stable*
  1025. event:
  1026. - pull_request
  1027. - push
  1028. ---
  1029. kind: pipeline
  1030. name: integration-comments-search
  1031. steps:
  1032. - name: submodules
  1033. image: docker:git
  1034. commands:
  1035. - git submodule update --init
  1036. - name: integration-comments-search
  1037. image: nextcloudci/integration-php7.1:1
  1038. commands:
  1039. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1040. - cd build/integration
  1041. - ./run.sh features/comments-search.feature
  1042. trigger:
  1043. branch:
  1044. - master
  1045. - stable*
  1046. event:
  1047. - pull_request
  1048. - push
  1049. ---
  1050. kind: pipeline
  1051. name: integration-favorites
  1052. steps:
  1053. - name: submodules
  1054. image: docker:git
  1055. commands:
  1056. - git submodule update --init
  1057. - name: integration-favorites
  1058. image: nextcloudci/integration-php7.1:1
  1059. commands:
  1060. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1061. - cd build/integration
  1062. - ./run.sh features/favorites.feature
  1063. trigger:
  1064. branch:
  1065. - master
  1066. - stable*
  1067. event:
  1068. - pull_request
  1069. - push
  1070. ---
  1071. kind: pipeline
  1072. name: integration-provisioning-v2
  1073. steps:
  1074. - name: submodules
  1075. image: docker:git
  1076. commands:
  1077. - git submodule update --init
  1078. - name: integration-provisioning-v2
  1079. image: nextcloudci/integration-php7.1:1
  1080. commands:
  1081. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1082. - cd build/integration
  1083. - ./run.sh features/provisioning-v2.feature
  1084. trigger:
  1085. branch:
  1086. - master
  1087. - stable*
  1088. event:
  1089. - pull_request
  1090. - push
  1091. ---
  1092. kind: pipeline
  1093. name: integration-webdav-related
  1094. steps:
  1095. - name: submodules
  1096. image: docker:git
  1097. commands:
  1098. - git submodule update --init
  1099. - name: integration-webdav-related
  1100. image: nextcloudci/integration-php7.1:1
  1101. commands:
  1102. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1103. - cd build/integration
  1104. - ./run.sh features/webdav-related.feature
  1105. trigger:
  1106. branch:
  1107. - master
  1108. - stable*
  1109. event:
  1110. - pull_request
  1111. - push
  1112. ---
  1113. kind: pipeline
  1114. name: integration-sharees-features
  1115. steps:
  1116. - name: submodules
  1117. image: docker:git
  1118. commands:
  1119. - git submodule update --init
  1120. - name: integration-sharees-features
  1121. image: nextcloudci/integration-php7.1:1
  1122. commands:
  1123. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1124. - cd build/integration
  1125. - ./run.sh sharees_features/sharees.feature
  1126. trigger:
  1127. branch:
  1128. - master
  1129. - stable*
  1130. event:
  1131. - pull_request
  1132. - push
  1133. ---
  1134. kind: pipeline
  1135. name: integration-sharees-v2-features
  1136. steps:
  1137. - name: submodules
  1138. image: docker:git
  1139. commands:
  1140. - git submodule update --init
  1141. - name: integration-sharees-v2-features
  1142. image: nextcloudci/integration-php7.1:1
  1143. commands:
  1144. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1145. - cd build/integration
  1146. - ./run.sh sharees_features/sharees_provisioningapiv2.feature
  1147. trigger:
  1148. branch:
  1149. - master
  1150. - stable*
  1151. event:
  1152. - pull_request
  1153. - push
  1154. ---
  1155. kind: pipeline
  1156. name: integration-setup-features
  1157. steps:
  1158. - name: submodules
  1159. image: docker:git
  1160. commands:
  1161. - git submodule update --init
  1162. - name: integration-setup-features
  1163. image: nextcloudci/integration-php7.1:1
  1164. commands:
  1165. - cd build/integration
  1166. - ./run.sh setup_features/setup.feature
  1167. trigger:
  1168. branch:
  1169. - master
  1170. - stable*
  1171. event:
  1172. - pull_request
  1173. - push
  1174. ---
  1175. kind: pipeline
  1176. name: integration-filesdrop-features
  1177. steps:
  1178. - name: submodules
  1179. image: docker:git
  1180. commands:
  1181. - git submodule update --init
  1182. - name: integration-filesdrop-features
  1183. image: nextcloudci/integration-php7.1:1
  1184. commands:
  1185. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1186. - cd build/integration
  1187. - ./run.sh filesdrop_features/filesdrop.feature
  1188. trigger:
  1189. branch:
  1190. - master
  1191. - stable*
  1192. event:
  1193. - pull_request
  1194. - push
  1195. ---
  1196. kind: pipeline
  1197. name: integration-transfer-ownership-features
  1198. steps:
  1199. - name: submodules
  1200. image: docker:git
  1201. commands:
  1202. - git submodule update --init
  1203. - name: integration-transfer-ownership-features
  1204. image: nextcloudci/integration-php7.1:1
  1205. commands:
  1206. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1207. - cd build/integration
  1208. - ./run.sh features/transfer-ownership.feature
  1209. trigger:
  1210. branch:
  1211. - master
  1212. - stable*
  1213. event:
  1214. - pull_request
  1215. - push
  1216. ---
  1217. kind: pipeline
  1218. name: integration-ldap-features
  1219. steps:
  1220. - name: submodules
  1221. image: docker:git
  1222. commands:
  1223. - git submodule update --init
  1224. - name: integration-ldap-features
  1225. image: nextcloudci/integration-php7.1:1
  1226. commands:
  1227. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1228. - cd build/integration
  1229. - ./run.sh ldap_features/ldap-ocs.feature
  1230. trigger:
  1231. branch:
  1232. - master
  1233. - stable*
  1234. event:
  1235. - pull_request
  1236. - push
  1237. ---
  1238. kind: pipeline
  1239. name: integration-ldap-openldap-features
  1240. steps:
  1241. - name: submodules
  1242. image: docker:git
  1243. commands:
  1244. - git submodule update --init
  1245. - name: integration-ldap-openldap-features
  1246. image: nextcloudci/integration-php7.1:1
  1247. commands:
  1248. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1249. - ./occ config:system:set redis host --value=cache
  1250. - ./occ config:system:set redis port --value=6379 --type=integer
  1251. - ./occ config:system:set redis timeout --value=0 --type=integer
  1252. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  1253. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  1254. - cd build/integration
  1255. - ./run.sh ldap_features/ldap-openldap.feature
  1256. services:
  1257. - name: cache
  1258. image: redis
  1259. - name: openldap
  1260. image: nextcloudci/openldap:openldap-7
  1261. environment:
  1262. SLAPD_DOMAIN: nextcloud.ci
  1263. SLAPD_ORGANIZATION: Nextcloud
  1264. SLAPD_PASSWORD: admin
  1265. SLAPD_ADDITIONAL_MODULES: memberof
  1266. trigger:
  1267. branch:
  1268. - master
  1269. - stable*
  1270. event:
  1271. - pull_request
  1272. - push
  1273. ---
  1274. kind: pipeline
  1275. name: integration-ldap-openldap-uid-features
  1276. steps:
  1277. - name: submodules
  1278. image: docker:git
  1279. commands:
  1280. - git submodule update --init
  1281. - name: integration-ldap-openldap-uid-features
  1282. image: nextcloudci/integration-php7.1:1
  1283. commands:
  1284. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1285. - ./occ config:system:set redis host --value=cache
  1286. - ./occ config:system:set redis port --value=6379 --type=integer
  1287. - ./occ config:system:set redis timeout --value=0 --type=integer
  1288. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  1289. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  1290. - cd build/integration
  1291. - ./run.sh ldap_features/openldap-uid-username.feature
  1292. services:
  1293. - name: cache
  1294. image: redis
  1295. - name: openldap
  1296. image: nextcloudci/openldap:openldap-7
  1297. environment:
  1298. SLAPD_DOMAIN: nextcloud.ci
  1299. SLAPD_ORGANIZATION: Nextcloud
  1300. SLAPD_PASSWORD: admin
  1301. SLAPD_ADDITIONAL_MODULES: memberof
  1302. trigger:
  1303. branch:
  1304. - master
  1305. - stable*
  1306. event:
  1307. - pull_request
  1308. - push
  1309. ---
  1310. kind: pipeline
  1311. name: integration-ldap-openldap-numerical-id-features
  1312. steps:
  1313. - name: submodules
  1314. image: docker:git
  1315. commands:
  1316. - git submodule update --init
  1317. - name: integration-ldap-openldap-numerical-id-features
  1318. image: nextcloudci/integration-php7.1:1
  1319. commands:
  1320. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1321. - ./occ config:system:set redis host --value=cache
  1322. - ./occ config:system:set redis port --value=6379 --type=integer
  1323. - ./occ config:system:set redis timeout --value=0 --type=integer
  1324. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  1325. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  1326. - cd build/integration
  1327. - ./run.sh ldap_features/openldap-numerical-id.feature
  1328. services:
  1329. - name: cache
  1330. image: redis
  1331. - name: openldap
  1332. image: nextcloudci/openldap:openldap-7
  1333. environment:
  1334. SLAPD_DOMAIN: nextcloud.ci
  1335. SLAPD_ORGANIZATION: Nextcloud
  1336. SLAPD_PASSWORD: admin
  1337. SLAPD_ADDITIONAL_MODULES: memberof
  1338. trigger:
  1339. branch:
  1340. - master
  1341. - stable*
  1342. event:
  1343. - pull_request
  1344. - push
  1345. ---
  1346. kind: pipeline
  1347. name: integration-trashbin
  1348. steps:
  1349. - name: submodules
  1350. image: docker:git
  1351. commands:
  1352. - git submodule update --init
  1353. - name: integration-trashbin
  1354. image: nextcloudci/integration-php7.1:1
  1355. commands:
  1356. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1357. - cd build/integration
  1358. - ./run.sh features/trashbin.feature
  1359. trigger:
  1360. branch:
  1361. - master
  1362. - stable*
  1363. event:
  1364. - pull_request
  1365. - push
  1366. ---
  1367. kind: pipeline
  1368. name: integration-remote-api
  1369. steps:
  1370. - name: submodules
  1371. image: docker:git
  1372. commands:
  1373. - git submodule update --init
  1374. - name: integration-remote-api
  1375. image: nextcloudci/integration-php7.1:1
  1376. commands:
  1377. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1378. - cd build/integration
  1379. - ./run.sh remoteapi_features/remote.feature
  1380. trigger:
  1381. branch:
  1382. - master
  1383. - stable*
  1384. event:
  1385. - pull_request
  1386. - push
  1387. ---
  1388. kind: pipeline
  1389. name: integration-download
  1390. steps:
  1391. - name: submodules
  1392. image: docker:git
  1393. commands:
  1394. - git submodule update --init
  1395. - name: integration-download
  1396. image: nextcloudci/integration-php7.1:1
  1397. commands:
  1398. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  1399. - cd build/integration
  1400. - ./run.sh --tags ~@large features/download.feature
  1401. trigger:
  1402. branch:
  1403. - master
  1404. - stable*
  1405. event:
  1406. - pull_request
  1407. - push
  1408. ---
  1409. kind: pipeline
  1410. name: acceptance-access-levels
  1411. steps:
  1412. - name: submodules
  1413. image: docker:git
  1414. commands:
  1415. - git submodule update --init
  1416. - name: acceptance-access-levels
  1417. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1418. commands:
  1419. - 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
  1420. services:
  1421. - name: selenium
  1422. image: selenium/standalone-firefox:2.53.1-beryllium
  1423. environment:
  1424. # Reduce default log level for Selenium server (INFO) as it is too
  1425. # verbose.
  1426. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1427. trigger:
  1428. branch:
  1429. - master
  1430. - stable*
  1431. event:
  1432. - pull_request
  1433. - push
  1434. ---
  1435. kind: pipeline
  1436. name: acceptance-app-comments
  1437. steps:
  1438. - name: submodules
  1439. image: docker:git
  1440. commands:
  1441. - git submodule update --init
  1442. - name: acceptance-app-comments
  1443. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1444. commands:
  1445. - 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
  1446. services:
  1447. - name: selenium
  1448. image: selenium/standalone-firefox:2.53.1-beryllium
  1449. environment:
  1450. # Reduce default log level for Selenium server (INFO) as it is too
  1451. # verbose.
  1452. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1453. trigger:
  1454. branch:
  1455. - master
  1456. - stable*
  1457. event:
  1458. - pull_request
  1459. - push
  1460. ---
  1461. kind: pipeline
  1462. name: acceptance-app-files
  1463. steps:
  1464. - name: submodules
  1465. image: docker:git
  1466. commands:
  1467. - git submodule update --init
  1468. - name: acceptance-app-files
  1469. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1470. commands:
  1471. - 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
  1472. services:
  1473. - name: selenium
  1474. image: selenium/standalone-firefox:2.53.1-beryllium
  1475. environment:
  1476. # Reduce default log level for Selenium server (INFO) as it is too
  1477. # verbose.
  1478. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1479. trigger:
  1480. branch:
  1481. - master
  1482. - stable*
  1483. event:
  1484. - pull_request
  1485. - push
  1486. ---
  1487. kind: pipeline
  1488. name: acceptance-app-files-sharing
  1489. steps:
  1490. - name: submodules
  1491. image: docker:git
  1492. commands:
  1493. - git submodule update --init
  1494. - name: acceptance-app-files-sharing
  1495. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1496. commands:
  1497. - 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
  1498. services:
  1499. - name: selenium
  1500. image: selenium/standalone-firefox:2.53.1-beryllium
  1501. environment:
  1502. # Reduce default log level for Selenium server (INFO) as it is too
  1503. # verbose.
  1504. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1505. trigger:
  1506. branch:
  1507. - master
  1508. - stable*
  1509. event:
  1510. - pull_request
  1511. - push
  1512. ---
  1513. kind: pipeline
  1514. name: acceptance-app-files-sharing-link
  1515. steps:
  1516. - name: submodules
  1517. image: docker:git
  1518. commands:
  1519. - git submodule update --init
  1520. - name: acceptance-app-files-sharing-link
  1521. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1522. commands:
  1523. - 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
  1524. services:
  1525. - name: selenium
  1526. image: selenium/standalone-firefox:2.53.1-beryllium
  1527. environment:
  1528. # Reduce default log level for Selenium server (INFO) as it is too
  1529. # verbose.
  1530. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1531. trigger:
  1532. branch:
  1533. - master
  1534. - stable*
  1535. event:
  1536. - pull_request
  1537. - push
  1538. ---
  1539. kind: pipeline
  1540. name: acceptance-app-files-tags
  1541. steps:
  1542. - name: submodules
  1543. image: docker:git
  1544. commands:
  1545. - git submodule update --init
  1546. - name: acceptance-app-files-tags
  1547. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1548. commands:
  1549. - 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
  1550. services:
  1551. - name: selenium
  1552. image: selenium/standalone-firefox:2.53.1-beryllium
  1553. environment:
  1554. # Reduce default log level for Selenium server (INFO) as it is too
  1555. # verbose.
  1556. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1557. trigger:
  1558. branch:
  1559. - master
  1560. - stable*
  1561. event:
  1562. - pull_request
  1563. - push
  1564. ---
  1565. kind: pipeline
  1566. name: acceptance-app-theming
  1567. steps:
  1568. - name: submodules
  1569. image: docker:git
  1570. commands:
  1571. - git submodule update --init
  1572. - name: acceptance-app-theming
  1573. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1574. commands:
  1575. - 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
  1576. services:
  1577. - name: selenium
  1578. image: selenium/standalone-firefox:2.53.1-beryllium
  1579. environment:
  1580. # Reduce default log level for Selenium server (INFO) as it is too
  1581. # verbose.
  1582. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1583. trigger:
  1584. branch:
  1585. - master
  1586. - stable*
  1587. event:
  1588. - pull_request
  1589. - push
  1590. ---
  1591. kind: pipeline
  1592. name: acceptance-header
  1593. steps:
  1594. - name: submodules
  1595. image: docker:git
  1596. commands:
  1597. - git submodule update --init
  1598. - name: acceptance-header
  1599. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1600. commands:
  1601. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-header --selenium-server selenium:4444 allow-git-repository-modifications features/header.feature
  1602. services:
  1603. - name: selenium
  1604. image: selenium/standalone-firefox:2.53.1-beryllium
  1605. environment:
  1606. # Reduce default log level for Selenium server (INFO) as it is too
  1607. # verbose.
  1608. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1609. trigger:
  1610. branch:
  1611. - master
  1612. - stable*
  1613. event:
  1614. - pull_request
  1615. - push
  1616. ---
  1617. kind: pipeline
  1618. name: acceptance-login
  1619. steps:
  1620. - name: submodules
  1621. image: docker:git
  1622. commands:
  1623. - git submodule update --init
  1624. - name: acceptance-login
  1625. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1626. commands:
  1627. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-login --selenium-server selenium:4444 allow-git-repository-modifications features/login.feature
  1628. services:
  1629. - name: selenium
  1630. image: selenium/standalone-firefox:2.53.1-beryllium
  1631. environment:
  1632. # Reduce default log level for Selenium server (INFO) as it is too
  1633. # verbose.
  1634. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1635. trigger:
  1636. branch:
  1637. - master
  1638. - stable*
  1639. event:
  1640. - pull_request
  1641. - push
  1642. ---
  1643. kind: pipeline
  1644. name: acceptance-users
  1645. steps:
  1646. - name: submodules
  1647. image: docker:git
  1648. commands:
  1649. - git submodule update --init
  1650. - name: acceptance-users
  1651. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1652. commands:
  1653. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-users --selenium-server selenium:4444 allow-git-repository-modifications features/users.feature
  1654. services:
  1655. - name: selenium
  1656. image: selenium/standalone-firefox:2.53.1-beryllium
  1657. environment:
  1658. # Reduce default log level for Selenium server (INFO) as it is too
  1659. # verbose.
  1660. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1661. trigger:
  1662. branch:
  1663. - master
  1664. - stable*
  1665. event:
  1666. - pull_request
  1667. - push
  1668. ---
  1669. kind: pipeline
  1670. name: acceptance-apps
  1671. steps:
  1672. - name: submodules
  1673. image: docker:git
  1674. commands:
  1675. - git submodule update --init
  1676. - name: acceptance-apps
  1677. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  1678. commands:
  1679. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-apps --selenium-server selenium:4444 allow-git-repository-modifications features/apps.feature
  1680. services:
  1681. - name: selenium
  1682. image: selenium/standalone-firefox:2.53.1-beryllium
  1683. environment:
  1684. # Reduce default log level for Selenium server (INFO) as it is too
  1685. # verbose.
  1686. JAVA_OPTS: -Dselenium.LOGGER.level=WARNING
  1687. trigger:
  1688. branch:
  1689. - master
  1690. - stable*
  1691. event:
  1692. - pull_request
  1693. - push
  1694. ---
  1695. kind: pipeline
  1696. name: nodb-codecov
  1697. steps:
  1698. - name: submodules
  1699. image: docker:git
  1700. commands:
  1701. - git submodule update --init
  1702. - name: nodb-codecov
  1703. image: nextcloudci/php7.1:php7.1-16
  1704. commands:
  1705. - phpenmod xdebug
  1706. - TEST_SELECTION=NODB ./autotest.sh sqlite
  1707. - wget https://codecov.io/bash -O codecov.sh
  1708. - 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"
  1709. - 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"
  1710. services:
  1711. - name: cache
  1712. image: redis
  1713. trigger:
  1714. branch:
  1715. - master
  1716. - stable*
  1717. event:
  1718. - pull_request
  1719. - push
  1720. ---
  1721. kind: pipeline
  1722. name: db-codecov
  1723. steps:
  1724. - name: submodules
  1725. image: docker:git
  1726. commands:
  1727. - git submodule update --init
  1728. - name: db-codecov
  1729. image: nextcloudci/php7.1:php7.1-16
  1730. commands:
  1731. - phpenmod xdebug
  1732. - TEST_SELECTION=QUICKDB ./autotest.sh sqlite
  1733. - wget https://codecov.io/bash -O codecov.sh
  1734. - 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"
  1735. - 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"
  1736. services:
  1737. - name: cache
  1738. image: redis
  1739. trigger:
  1740. branch:
  1741. - master
  1742. - stable*
  1743. event:
  1744. - pull_request
  1745. - push
  1746. ---
  1747. kind: pipeline
  1748. name: object-store-s3
  1749. steps:
  1750. - name: submodules
  1751. image: docker:git
  1752. commands:
  1753. - git submodule update --init
  1754. - name: object-store
  1755. image: nextcloudci/php7.1:php7.1-16
  1756. commands:
  1757. - phpenmod xdebug
  1758. - ./tests/drone-wait-objectstore.sh
  1759. - TEST_SELECTION=PRIMARY-${OBJECT_STORE} ./autotest.sh sqlite
  1760. - wget https://codecov.io/bash -O codecov.sh
  1761. - 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"
  1762. - 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"
  1763. services:
  1764. - name: fake-s3
  1765. image: lphoward/fake-s3:latest
  1766. trigger:
  1767. branch:
  1768. - master
  1769. - stable*
  1770. event:
  1771. - pull_request
  1772. - push
  1773. ---
  1774. kind: pipeline
  1775. name: object-store-azure
  1776. steps:
  1777. - name: submodules
  1778. image: docker:git
  1779. commands:
  1780. - git submodule update --init
  1781. - name: object-store
  1782. image: nextcloudci/php7.1:php7.1-16
  1783. commands:
  1784. - phpenmod xdebug
  1785. - ./tests/drone-wait-objectstore.sh
  1786. - TEST_SELECTION=PRIMARY-${OBJECT_STORE} ./autotest.sh sqlite
  1787. - wget https://codecov.io/bash -O codecov.sh
  1788. - 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"
  1789. - 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"
  1790. services:
  1791. - name: azurite
  1792. image: arafato/azurite:latest
  1793. environment:
  1794. executable: blob
  1795. trigger:
  1796. branch:
  1797. - master
  1798. - stable*
  1799. event:
  1800. - pull_request
  1801. - push
  1802. ---
  1803. #kind: pipeline
  1804. #name: object-store-swift-v2
  1805. #
  1806. #clone:
  1807. # depth: 1
  1808. #
  1809. #steps:
  1810. #- name: submodules
  1811. # image: docker:git
  1812. # commands:
  1813. # - git submodule update --init
  1814. #- name: object-store
  1815. # image: nextcloudci/php7.1:php7.1-16
  1816. # commands:
  1817. # - phpenmod xdebug
  1818. # - ./tests/drone-wait-objectstore.sh
  1819. # - TEST_SELECTION=PRIMARY-${OBJECT_STORE} ./autotest.sh sqlite
  1820. # - wget https://codecov.io/bash -O codecov.sh
  1821. # - 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"
  1822. # - 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"
  1823. #
  1824. #services:
  1825. #- name: dockswift
  1826. # image: icewind1991/dockswift:nextcloud-ci
  1827. # environment:
  1828. # IPADDRESS: dockswift
  1829. #
  1830. #trigger:
  1831. # branch:
  1832. # - master
  1833. # - stable*
  1834. # event:
  1835. # - pull_request
  1836. # - push
  1837. #
  1838. #---
  1839. #kind: pipeline
  1840. #name: object-store-swift-v3
  1841. #
  1842. #clone:
  1843. # depth: 1
  1844. #
  1845. #steps:
  1846. #- name: submodules
  1847. # image: docker:git
  1848. # commands:
  1849. # - git submodule update --init
  1850. #- name: object-store
  1851. # image: nextcloudci/php7.1:php7.1-16
  1852. # commands:
  1853. # - phpenmod xdebug
  1854. # - ./tests/drone-wait-objectstore.sh
  1855. # - TEST_SELECTION=PRIMARY-${OBJECT_STORE} ./autotest.sh sqlite
  1856. # - wget https://codecov.io/bash -O codecov.sh
  1857. # - 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"
  1858. # - 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"
  1859. #
  1860. #services:
  1861. #- name: dockswift
  1862. # image: icewind1991/dockswift:nextcloud-ci
  1863. # environment:
  1864. # IPADDRESS: dockswift
  1865. #
  1866. #trigger:
  1867. # branch:
  1868. # - master
  1869. # - stable*
  1870. # event:
  1871. # - pull_request
  1872. # - push
  1873. #
  1874. #---
  1875. kind: pipeline
  1876. name: memcache-memcached
  1877. steps:
  1878. - name: submodules
  1879. image: docker:git
  1880. commands:
  1881. - git submodule update --init
  1882. - name: memcache-memcached
  1883. image: nextcloudci/php7.1-memcached:1
  1884. commands:
  1885. - phpenmod xdebug
  1886. - service memcached restart
  1887. - ./autotest.sh sqlite tests/lib/Memcache/MemcachedTest.php
  1888. - wget https://codecov.io/bash -O codecov.sh
  1889. - 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"
  1890. - 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"
  1891. trigger:
  1892. branch:
  1893. - master
  1894. - stable*
  1895. event:
  1896. - pull_request
  1897. - push
  1898. ---
  1899. kind: pipeline
  1900. name: memcache-redis-cluster
  1901. steps:
  1902. - name: submodules
  1903. image: docker:git
  1904. commands:
  1905. - git submodule update --init
  1906. - name: memcache-redis-cluster
  1907. image: nextcloudci/php7.1:php7.1-16
  1908. commands:
  1909. - phpenmod xdebug
  1910. - sleep 20
  1911. - ./autotest.sh sqlite tests/lib/Memcache/RedisTest.php
  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-cluster
  1917. image: morrisjobke/redis-cluster
  1918. trigger:
  1919. branch:
  1920. - master
  1921. - stable*
  1922. event:
  1923. - pull_request
  1924. - push
  1925. ---
  1926. kind: pipeline
  1927. name: ui-regression
  1928. steps:
  1929. - name: submodules
  1930. image: docker:git
  1931. commands:
  1932. - git submodule update --init
  1933. - name: ui-regression
  1934. image: nextcloudci/ui-regression:ui-regression-1
  1935. commands:
  1936. - cd tests/ui-regression
  1937. - npm install
  1938. - chown -R pptruser out node_modules
  1939. - bash -c "until curl -s http://ui-regression-php-master > /dev/null && curl -s http://ui-regression-php > /dev/null; do sleep 2; done"
  1940. - sudo -u pptruser node runTests.js || true
  1941. - echo "The result can be found at https://s3.bitgrid.net/nextcloud-ui-regression/nextcloud/server/${DRONE_PULL_REQUEST}/index.html"
  1942. shm_size: '1gb'
  1943. services:
  1944. - name: ui-regression-php
  1945. image: nextcloudci/server:server-1
  1946. commands:
  1947. - . /etc/apache2/envvars
  1948. - rm -fr /var/www/html
  1949. - mkdir /var/www/html && cp -rT . /var/www/html && chown -R www-data:www-data /var/www/html
  1950. - rm -fr /var/www/html/config/config.php /var/www/html/data/*
  1951. - apache2 -DFOREGROUND
  1952. - name: ui-regression-php-master
  1953. image: nextcloudci/server:server-1
  1954. commands:
  1955. - . /etc/apache2/envvars
  1956. - rm -fr /var/www/html/config/config.php /var/www/html/data/*
  1957. - su www-data -c "cd /var/www/html/ && git checkout $DRONE_REPO_BRANCH && git pull && git submodule update"
  1958. - apache2 -DFOREGROUND
  1959. - name: publish-s3
  1960. image: plugins/s3
  1961. settings:
  1962. endpoint: https://ci-assets.nextcloud.com
  1963. bucket: nextcloud-ui-regression
  1964. path_style: true
  1965. source: tests/ui-regression/out/**/*
  1966. strip_prefix: tests/ui-regression/out/
  1967. acl: public-read
  1968. target: ${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/${DRONE_PULL_REQUEST}
  1969. secrets: [ aws_access_key_id, aws_secret_access_key ]
  1970. trigger:
  1971. branch:
  1972. - master
  1973. - stable*
  1974. event:
  1975. - pull_request
  1976. - push