.drone.yml 54 KB

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