.drone.yml 57 KB

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