.drone.yml 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183
  1. clone:
  2. git:
  3. image: plugins/git
  4. depth: 1
  5. pipeline:
  6. jsunit:
  7. image: nextcloudci/jsunit:jsunit-5
  8. commands:
  9. - ./autotest-js.sh
  10. - curl -o codecov.sh https://codecov.io/bash
  11. - 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"
  12. - 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"
  13. when:
  14. matrix:
  15. TESTS: jsunit
  16. vue-build-settings:
  17. image: node
  18. commands:
  19. - ./build/vue-builds.sh ./settings/js/settings-vue.js
  20. when:
  21. matrix:
  22. TESTS: vue-build-settings
  23. vue-build-updatenotification:
  24. image: node
  25. commands:
  26. - ./build/vue-builds.sh ./apps/updatenotification/js/updatenotification.js
  27. when:
  28. matrix:
  29. TESTS: vue-build-updatenotification
  30. vue-build-oauth2:
  31. image: node
  32. commands:
  33. - ./build/vue-builds.sh ./apps/oauth2/js/oauth2.js
  34. when:
  35. matrix:
  36. TESTS: vue-build-oauth2
  37. vue-build-accessibility:
  38. image: node
  39. commands:
  40. - ./build/vue-builds.sh ./apps/accessibility/js/accessibility.js
  41. when:
  42. matrix:
  43. TESTS: vue-build-accessibility
  44. vue-build-backupcodes:
  45. image: node
  46. commands:
  47. - ./build/vue-builds.sh ./apps/twofactor_backupcodes/js/settings.js
  48. when:
  49. matrix:
  50. TESTS: vue-build-backupscodes
  51. checkers:
  52. image: nextcloudci/php7.0:php7.0-19
  53. commands:
  54. - ./autotest-checkers.sh
  55. secrets: [ github_token ]
  56. when:
  57. matrix:
  58. TESTS: checkers
  59. handlebars:
  60. image: node
  61. commands:
  62. - npm install handlebars -g
  63. - ./build/compile-handlebars-templates.sh
  64. when:
  65. matrix:
  66. TESTS: handlebars
  67. syntax-php7.0:
  68. image: nextcloudci/php7.0:php7.0-19
  69. commands:
  70. - composer install
  71. - ./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 .
  72. when:
  73. matrix:
  74. TESTS: syntax-php7.0
  75. syntax-php7.1:
  76. image: nextcloudci/php7.1:php7.1-16
  77. commands:
  78. - composer install
  79. - ./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 .
  80. when:
  81. matrix:
  82. TESTS: syntax-php7.1
  83. syntax-php7.2:
  84. image: nextcloudci/php7.2:php7.2-12
  85. commands:
  86. - composer install
  87. - ./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 .
  88. when:
  89. matrix:
  90. TESTS: syntax-php7.2
  91. syntax-php7.3:
  92. image: nextcloudci/php7.3:php7.3-1
  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 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 .
  96. when:
  97. matrix:
  98. TESTS: syntax-php7.3
  99. phan:
  100. image: nextcloudci/php7.2:php7.2-12
  101. commands:
  102. - composer install
  103. - composer require --dev "phan/phan:0.11.1"
  104. - ./lib/composer/phan/phan/phan -k build/.phan/config.php
  105. - php ./build/.phan/plugin-checker.php
  106. when:
  107. matrix:
  108. TESTS: phan
  109. litmus-v1:
  110. image: nextcloudci/litmus-php7.0:litmus-php7.0-6
  111. commands:
  112. - bash tests/travis/install.sh sqlite
  113. - bash apps/dav/tests/travis/litmus-v1/script.sh
  114. when:
  115. matrix:
  116. TESTS: litmus-v1
  117. litmus-v2:
  118. image: nextcloudci/litmus-php7.0:litmus-php7.0-6
  119. commands:
  120. - bash tests/travis/install.sh sqlite
  121. - bash apps/dav/tests/travis/litmus-v2/script.sh
  122. when:
  123. matrix:
  124. TESTS: litmus-v2
  125. caldavtester-new-endpoint:
  126. image: nextcloudci/litmus-php7.0:litmus-php7.0-6
  127. commands:
  128. - bash tests/travis/install.sh sqlite
  129. - bash apps/dav/tests/travis/caldav/install.sh
  130. - bash apps/dav/tests/travis/caldav/script-new-endpoint.sh
  131. when:
  132. matrix:
  133. TESTS: caldavtester-new-endpoint
  134. caldavtester-old-endpoint:
  135. image: nextcloudci/litmus-php7.0:litmus-php7.0-6
  136. commands:
  137. - bash tests/travis/install.sh sqlite
  138. - bash apps/dav/tests/travis/caldav/install.sh
  139. - bash apps/dav/tests/travis/caldav/script-old-endpoint.sh
  140. when:
  141. matrix:
  142. TESTS: caldavtester-old-endpoint
  143. carddavtester-new-endpoint:
  144. image: nextcloudci/litmus-php7.0:litmus-php7.0-6
  145. commands:
  146. - bash tests/travis/install.sh sqlite
  147. - bash apps/dav/tests/travis/carddav/install.sh
  148. - bash apps/dav/tests/travis/carddav/script-new-endpoint.sh
  149. when:
  150. matrix:
  151. TESTS: carddavtester-new-endpoint
  152. carddavtester-old-endpoint:
  153. image: nextcloudci/litmus-php7.0:litmus-php7.0-6
  154. commands:
  155. - bash tests/travis/install.sh sqlite
  156. - bash apps/dav/tests/travis/carddav/install.sh
  157. - bash apps/dav/tests/travis/carddav/script-old-endpoint.sh
  158. when:
  159. matrix:
  160. TESTS: carddavtester-old-endpoint
  161. sqlite-php7.0-samba-native:
  162. image: nextcloudci/samba-native-php7.0:samba-native-php7.0-3
  163. commands:
  164. - smbd -D -FS &
  165. - ./autotest-external.sh sqlite smb-linux
  166. - wget https://codecov.io/bash -O codecov.sh
  167. - 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"
  168. - 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"
  169. - 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"
  170. - 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"
  171. when:
  172. matrix:
  173. TESTS: sqlite-php7.0-samba-native
  174. sqlite-php7.0-samba-non-native:
  175. image: nextcloudci/samba-non-native-php7.0:samba-non-native-php7.0-4
  176. commands:
  177. - smbd -D -FS &
  178. - ./autotest-external.sh sqlite smb-linux
  179. - wget https://codecov.io/bash -O codecov.sh
  180. - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
  181. - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite.xml; fi"
  182. - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-smb-linux.xml; fi"
  183. - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-smb-linux.xml; fi"
  184. when:
  185. matrix:
  186. TESTS: sqlite-php7.0-samba-non-native
  187. sqlite-php7.0-webdav-apache:
  188. image: nextcloudci/webdav-apache-php7.0
  189. commands:
  190. - apache2
  191. - ./autotest-external.sh sqlite webdav-apachedrone
  192. - wget https://codecov.io/bash -O codecov.sh
  193. - 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"
  194. - 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"
  195. - 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"
  196. - 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"
  197. when:
  198. matrix:
  199. TESTS: sqlite-php7.0-webdav-apache
  200. nodb-php7.0:
  201. image: nextcloudci/php7.0:php7.0-19
  202. commands:
  203. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  204. when:
  205. matrix:
  206. DB: NODB
  207. PHP: "7.0"
  208. nodb-php7.1:
  209. image: nextcloudci/php7.1:php7.1-16
  210. commands:
  211. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  212. when:
  213. matrix:
  214. DB: NODB
  215. PHP: 7.1
  216. nodb-php7.2:
  217. image: nextcloudci/php7.2:php7.2-11
  218. commands:
  219. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  220. when:
  221. matrix:
  222. DB: NODB
  223. PHP: 7.2
  224. nodb-php7.3:
  225. image: nextcloudci/php7.3:php7.3-1
  226. commands:
  227. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  228. when:
  229. matrix:
  230. DB: NODB
  231. PHP: 7.3
  232. sqlite-php7.0:
  233. image: nextcloudci/php7.0:php7.0-19
  234. commands:
  235. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  236. when:
  237. matrix:
  238. DB: sqlite
  239. PHP: "7.0"
  240. sqlite-php7.1:
  241. image: nextcloudci/php7.1:php7.1-16
  242. commands:
  243. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  244. when:
  245. matrix:
  246. DB: sqlite
  247. PHP: 7.1
  248. sqlite-php7.2:
  249. image: nextcloudci/php7.2:php7.2-12
  250. commands:
  251. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  252. when:
  253. matrix:
  254. DB: sqlite
  255. PHP: 7.2
  256. sqlite-php7.3:
  257. image: nextcloudci/php7.3:php7.3-1
  258. commands:
  259. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  260. when:
  261. matrix:
  262. DB: sqlite
  263. PHP: 7.3
  264. mysql-php7.0:
  265. image: nextcloudci/php7.0:php7.0-19
  266. commands:
  267. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  268. when:
  269. matrix:
  270. DB: mysql
  271. PHP: "7.0"
  272. mysql-php7.1:
  273. image: nextcloudci/php7.1:php7.1-16
  274. commands:
  275. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  276. when:
  277. matrix:
  278. DB: mysql
  279. PHP: 7.1
  280. mysql-php7.2:
  281. image: nextcloudci/php7.2:php7.2-12
  282. commands:
  283. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  284. when:
  285. matrix:
  286. DB: mysql
  287. PHP: 7.2
  288. mysql-php7.3:
  289. image: nextcloudci/php7.3:php7.3-1
  290. commands:
  291. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  292. when:
  293. matrix:
  294. DB: mysql
  295. PHP: 7.3
  296. mysql5.6-php7.0:
  297. image: nextcloudci/php7.0:php7.0-19
  298. commands:
  299. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  300. when:
  301. matrix:
  302. DB: mysql5.6
  303. PHP: "7.0"
  304. mysql5.6-php7.1:
  305. image: nextcloudci/php7.1:php7.1-16
  306. commands:
  307. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  308. when:
  309. matrix:
  310. DB: mysql5.6
  311. PHP: 7.1
  312. mysql5.5-php7.0:
  313. image: nextcloudci/php7.0:php7.0-19
  314. commands:
  315. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  316. when:
  317. matrix:
  318. DB: mysql5.5
  319. PHP: "7.0"
  320. mysql5.5-php7.1:
  321. image: nextcloudci/php7.1:php7.1-16
  322. commands:
  323. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  324. when:
  325. matrix:
  326. DB: mysql5.5
  327. PHP: 7.1
  328. postgres-php7.0:
  329. image: nextcloudci/php7.0:php7.0-19
  330. commands:
  331. - sleep 10 # gives the database enough time to initialize
  332. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  333. when:
  334. matrix:
  335. DB: postgres
  336. PHP: "7.0"
  337. postgres-php7.1:
  338. image: nextcloudci/php7.1:php7.1-16
  339. commands:
  340. - sleep 10 # gives the database enough time to initialize
  341. - POSTGRES=${POSTGRES} NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  342. when:
  343. matrix:
  344. DB: postgres
  345. PHP: 7.1
  346. mysqlmb4-php7.0:
  347. image: nextcloudci/php7.0:php7.0-19
  348. commands:
  349. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
  350. when:
  351. matrix:
  352. DB: mysqlmb4
  353. PHP: "7.0"
  354. mysqlmb4-php7.1:
  355. image: nextcloudci/php7.1:php7.1-16
  356. commands:
  357. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
  358. when:
  359. matrix:
  360. DB: mysqlmb4
  361. PHP: 7.1
  362. mysqlmb4-php7.2:
  363. image: nextcloudci/php7.2:php7.2-12
  364. commands:
  365. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
  366. when:
  367. matrix:
  368. DB: mysqlmb4
  369. PHP: 7.2
  370. mysqlmb4-php7.3:
  371. image: nextcloudci/php7.3:php7.3-1
  372. commands:
  373. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
  374. when:
  375. matrix:
  376. DB: mysqlmb4
  377. PHP: 7.3
  378. integration-capabilities_features:
  379. image: nextcloudci/integration-php7.0:integration-php7.0-8
  380. commands:
  381. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  382. - cd build/integration
  383. - ./run.sh capabilities_features/capabilities.feature
  384. when:
  385. matrix:
  386. TESTS: integration-capabilities_features
  387. integration-federation_features:
  388. image: nextcloudci/integration-php7.0:integration-php7.0-8
  389. commands:
  390. - ./occ maintenance:install --admin-pass=admin
  391. - cd build/integration
  392. - ./run.sh federation_features/federated.feature
  393. when:
  394. matrix:
  395. TESTS: integration-federation_features
  396. integration-auth:
  397. image: nextcloudci/integration-php7.0:integration-php7.0-8
  398. commands:
  399. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  400. - cd build/integration
  401. - ./run.sh features/auth.feature
  402. when:
  403. matrix:
  404. TESTS: integration-auth
  405. integration-maintenance-mode:
  406. image: nextcloudci/integration-php7.0:integration-php7.0-8
  407. commands:
  408. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  409. - cd build/integration
  410. - ./run.sh features/maintenance-mode.feature
  411. when:
  412. matrix:
  413. TESTS: integration-maintenance-mode
  414. integration-ratelimiting:
  415. image: nextcloudci/integration-php7.0:integration-php7.0-8
  416. commands:
  417. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  418. - ./occ config:system:set redis host --value=cache
  419. - ./occ config:system:set redis port --value=6379 --type=integer
  420. - ./occ config:system:set redis timeout --value=0 --type=integer
  421. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  422. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  423. - ./occ app:enable testing
  424. - cd build/integration
  425. - ./run.sh features/ratelimiting.feature
  426. when:
  427. matrix:
  428. TESTS: integration-ratelimiting
  429. integration-carddav:
  430. image: nextcloudci/integration-php7.0:integration-php7.0-8
  431. commands:
  432. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  433. - cd build/integration
  434. - ./run.sh features/carddav.feature
  435. when:
  436. matrix:
  437. TESTS: integration-carddav
  438. integration-dav-v2:
  439. image: nextcloudci/integration-php7.0:integration-php7.0-8
  440. commands:
  441. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  442. - cd build/integration
  443. - ./run.sh features/dav-v2.feature
  444. when:
  445. matrix:
  446. TESTS: integration-dav-v2
  447. integration-ocs-v1:
  448. image: nextcloudci/integration-php7.0:integration-php7.0-8
  449. commands:
  450. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  451. - cd build/integration
  452. - ./run.sh features/ocs-v1.feature
  453. when:
  454. matrix:
  455. TESTS: integration-ocs-v1
  456. integration-sharing-v1:
  457. image: nextcloudci/integration-php7.0:integration-php7.0-8
  458. commands:
  459. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  460. - cd build/integration
  461. - ./run.sh features/sharing-v1.feature
  462. when:
  463. matrix:
  464. TESTS: integration-sharing-v1
  465. integration-sharing-v1-part2:
  466. image: nextcloudci/integration-php7.0:integration-php7.0-8
  467. commands:
  468. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  469. - cd build/integration
  470. - ./run.sh features/sharing-v1-part2.feature
  471. when:
  472. matrix:
  473. TESTS: integration-sharing-v1-part2
  474. integration-sharing-v1-part3:
  475. image: nextcloudci/integration-php7.0:integration-php7.0-8
  476. commands:
  477. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  478. - cd build/integration
  479. - ./run.sh features/sharing-v1-part3.feature
  480. when:
  481. matrix:
  482. TESTS: integration-sharing-v1-part3
  483. integration-checksums-v1:
  484. image: nextcloudci/integration-php7.0:integration-php7.0-8
  485. commands:
  486. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  487. - cd build/integration
  488. - ./run.sh features/checksums.feature
  489. when:
  490. matrix:
  491. TESTS: integration-checksums
  492. integration-external-storage:
  493. image: nextcloudci/integration-php7.0:integration-php7.0-8
  494. commands:
  495. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  496. - cd build/integration
  497. - ./run.sh features/external-storage.feature
  498. when:
  499. matrix:
  500. TESTS: integration-external-storage
  501. integration-provisioning-v1:
  502. image: nextcloudci/integration-php7.0:integration-php7.0-8
  503. commands:
  504. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  505. - cd build/integration
  506. - ./run.sh features/provisioning-v1.feature
  507. when:
  508. matrix:
  509. TESTS: integration-provisioning-v1
  510. integration-tags:
  511. image: nextcloudci/integration-php7.0:integration-php7.0-8
  512. commands:
  513. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  514. - cd build/integration
  515. - ./run.sh features/tags.feature
  516. when:
  517. matrix:
  518. TESTS: integration-tags
  519. integration-caldav:
  520. image: nextcloudci/integration-php7.0:integration-php7.0-8
  521. commands:
  522. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  523. - cd build/integration
  524. - ./run.sh features/caldav.feature
  525. when:
  526. matrix:
  527. TESTS: integration-caldav
  528. integration-comments:
  529. image: nextcloudci/integration-php7.0:integration-php7.0-8
  530. commands:
  531. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  532. - cd build/integration
  533. - ./run.sh features/comments.feature
  534. when:
  535. matrix:
  536. TESTS: integration-comments
  537. integration-comments-search:
  538. image: nextcloudci/integration-php7.0:integration-php7.0-8
  539. commands:
  540. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  541. - cd build/integration
  542. - ./run.sh features/comments-search.feature
  543. when:
  544. matrix:
  545. TESTS: integration-comments-search
  546. integration-favorites:
  547. image: nextcloudci/integration-php7.0:integration-php7.0-8
  548. commands:
  549. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  550. - cd build/integration
  551. - ./run.sh features/favorites.feature
  552. when:
  553. matrix:
  554. TESTS: integration-favorites
  555. integration-provisioning-v2:
  556. image: nextcloudci/integration-php7.0:integration-php7.0-8
  557. commands:
  558. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  559. - cd build/integration
  560. - ./run.sh features/provisioning-v2.feature
  561. when:
  562. matrix:
  563. TESTS: integration-provisioning-v2
  564. integration-webdav-related:
  565. image: nextcloudci/integration-php7.0:integration-php7.0-8
  566. commands:
  567. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  568. - cd build/integration
  569. - ./run.sh features/webdav-related.feature
  570. when:
  571. matrix:
  572. TESTS: integration-webdav-related
  573. integration-sharees-features:
  574. image: nextcloudci/integration-php7.0:integration-php7.0-8
  575. commands:
  576. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  577. - cd build/integration
  578. - ./run.sh sharees_features/sharees.feature
  579. when:
  580. matrix:
  581. TESTS: integration-sharees-features
  582. integration-sharees-v2-features:
  583. image: nextcloudci/integration-php7.0:integration-php7.0-8
  584. commands:
  585. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  586. - cd build/integration
  587. - ./run.sh sharees_features/sharees_provisioningapiv2.feature
  588. when:
  589. matrix:
  590. TESTS: integration-sharees-v2-features
  591. integration-setup-features:
  592. image: nextcloudci/integration-php7.0:integration-php7.0-8
  593. commands:
  594. - cd build/integration
  595. - ./run.sh setup_features/setup.feature
  596. when:
  597. matrix:
  598. TESTS: integration-setup-features
  599. integration-filesdrop-features:
  600. image: nextcloudci/integration-php7.0:integration-php7.0-8
  601. commands:
  602. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  603. - cd build/integration
  604. - ./run.sh filesdrop_features/filesdrop.feature
  605. when:
  606. matrix:
  607. TESTS: integration-filesdrop-features
  608. integration-transfer-ownership-features:
  609. image: nextcloudci/integration-php7.0:integration-php7.0-8
  610. commands:
  611. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  612. - cd build/integration
  613. - ./run.sh features/transfer-ownership.feature
  614. when:
  615. matrix:
  616. TESTS: integration-transfer-ownership-features
  617. integration-ldap-features:
  618. image: nextcloudci/integration-php7.0:integration-php7.0-8
  619. commands:
  620. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  621. - ./occ app:enable user_ldap
  622. - cd build/integration
  623. - ./run.sh ldap_features/ldap-ocs.feature
  624. when:
  625. matrix:
  626. TESTS: integration-ldap-features
  627. integration-ldap-openldap-features:
  628. image: nextcloudci/integration-php7.0:integration-php7.0-6
  629. commands:
  630. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  631. - ./occ config:system:set redis host --value=cache
  632. - ./occ config:system:set redis port --value=6379 --type=integer
  633. - ./occ config:system:set redis timeout --value=0 --type=integer
  634. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  635. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  636. - ./occ app:enable user_ldap
  637. - cd build/integration
  638. - ./run.sh ldap_features/ldap-openldap.feature
  639. when:
  640. matrix:
  641. TESTS: integration-ldap-openldap-features
  642. integration-ldap-openldap-uid-features:
  643. image: nextcloudci/integration-php7.0:integration-php7.0-6
  644. commands:
  645. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  646. - ./occ config:system:set redis host --value=cache
  647. - ./occ config:system:set redis port --value=6379 --type=integer
  648. - ./occ config:system:set redis timeout --value=0 --type=integer
  649. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  650. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  651. - ./occ app:enable user_ldap
  652. - cd build/integration
  653. - ./run.sh ldap_features/openldap-uid-username.feature
  654. when:
  655. matrix:
  656. TESTS: integration-ldap-openldap-uid-features
  657. integration-ldap-openldap-numerical-id-features:
  658. image: nextcloudci/integration-php7.0:integration-php7.0-6
  659. commands:
  660. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  661. - ./occ config:system:set redis host --value=cache
  662. - ./occ config:system:set redis port --value=6379 --type=integer
  663. - ./occ config:system:set redis timeout --value=0 --type=integer
  664. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  665. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  666. - ./occ app:enable user_ldap
  667. - cd build/integration
  668. - ./run.sh ldap_features/openldap-numerical-id.feature
  669. when:
  670. matrix:
  671. TESTS: integration-ldap-openldap-numerical-id-features
  672. integration-trashbin:
  673. image: nextcloudci/integration-php7.0:integration-php7.0-8
  674. commands:
  675. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  676. - cd build/integration
  677. - ./run.sh features/trashbin.feature
  678. when:
  679. matrix:
  680. TESTS: integration-trashbin
  681. integration-remote-api:
  682. image: nextcloudci/integration-php7.0:integration-php7.0-8
  683. commands:
  684. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  685. - cd build/integration
  686. - ./run.sh remoteapi_features/remote.feature
  687. when:
  688. matrix:
  689. TESTS: integration-remote-api
  690. integration-download:
  691. image: nextcloudci/integration-php7.0:integration-php7.0-8
  692. commands:
  693. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  694. - cd build/integration
  695. - ./run.sh --tags ~@large features/download.feature
  696. when:
  697. matrix:
  698. TESTS: integration-download
  699. acceptance-access-levels:
  700. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  701. commands:
  702. - 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
  703. when:
  704. matrix:
  705. TESTS-ACCEPTANCE: access-levels
  706. acceptance-app-comments:
  707. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  708. commands:
  709. - 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
  710. when:
  711. matrix:
  712. TESTS-ACCEPTANCE: app-comments
  713. acceptance-app-files:
  714. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  715. commands:
  716. - 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
  717. when:
  718. matrix:
  719. TESTS-ACCEPTANCE: app-files
  720. acceptance-app-files-sharing:
  721. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  722. commands:
  723. - 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
  724. when:
  725. matrix:
  726. TESTS-ACCEPTANCE: app-files-sharing
  727. acceptance-app-files-sharing-link:
  728. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  729. commands:
  730. - 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
  731. when:
  732. matrix:
  733. TESTS-ACCEPTANCE: app-files-sharing-link
  734. acceptance-app-files-tags:
  735. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  736. commands:
  737. - 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
  738. when:
  739. matrix:
  740. TESTS-ACCEPTANCE: app-files-tags
  741. acceptance-app-theming:
  742. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  743. commands:
  744. - 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
  745. when:
  746. matrix:
  747. TESTS-ACCEPTANCE: app-theming
  748. acceptance-header:
  749. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  750. commands:
  751. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-header --selenium-server selenium:4444 allow-git-repository-modifications features/header.feature
  752. when:
  753. matrix:
  754. TESTS-ACCEPTANCE: header
  755. acceptance-login:
  756. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  757. commands:
  758. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-login --selenium-server selenium:4444 allow-git-repository-modifications features/login.feature
  759. when:
  760. matrix:
  761. TESTS-ACCEPTANCE: login
  762. acceptance-users:
  763. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  764. commands:
  765. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-users --selenium-server selenium:4444 allow-git-repository-modifications features/users.feature
  766. when:
  767. matrix:
  768. TESTS-ACCEPTANCE: users
  769. acceptance-apps:
  770. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  771. commands:
  772. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-apps --selenium-server selenium:4444 allow-git-repository-modifications features/apps.feature
  773. when:
  774. matrix:
  775. TESTS-ACCEPTANCE: apps
  776. nodb-codecov:
  777. image: nextcloudci/php7.0:php7.0-19
  778. commands:
  779. - phpenmod xdebug
  780. - TEST_SELECTION=NODB ./autotest.sh sqlite
  781. - wget https://codecov.io/bash -O codecov.sh
  782. - 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"
  783. - 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"
  784. when:
  785. matrix:
  786. TESTS: nodb-codecov
  787. db-codecov:
  788. image: nextcloudci/php7.0:php7.0-19
  789. commands:
  790. - phpenmod xdebug
  791. - TEST_SELECTION=QUICKDB ./autotest.sh sqlite
  792. - wget https://codecov.io/bash -O codecov.sh
  793. - 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"
  794. - 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"
  795. when:
  796. matrix:
  797. TESTS: db-codecov
  798. object-store:
  799. image: nextcloudci/php7.0:php7.0-19
  800. commands:
  801. - phpenmod xdebug
  802. - ./tests/drone-wait-objectstore.sh
  803. - TEST_SELECTION=PRIMARY-${OBJECT_STORE} ./autotest.sh sqlite
  804. - wget https://codecov.io/bash -O codecov.sh
  805. - 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"
  806. - 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"
  807. when:
  808. matrix:
  809. TESTS: object-store
  810. memcache-memcached:
  811. image: nextcloudci/php7.0-memcached:php7.0-memcached-9
  812. commands:
  813. - phpenmod xdebug
  814. - service memcached restart
  815. - ./autotest.sh sqlite tests/lib/Memcache/MemcachedTest.php
  816. - wget https://codecov.io/bash -O codecov.sh
  817. - 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"
  818. - 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"
  819. when:
  820. matrix:
  821. TEST: memcache-memcached
  822. memcache-redis-cluster:
  823. image: nextcloudci/php7.0:php7.0-19
  824. commands:
  825. - phpenmod xdebug
  826. - sleep 20
  827. - ./autotest.sh sqlite tests/lib/Memcache/RedisTest.php
  828. - wget https://codecov.io/bash -O codecov.sh
  829. - 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"
  830. - 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"
  831. when:
  832. matrix:
  833. TEST: memcache-redis-cluster
  834. ui-regression:
  835. image: nextcloudci/ui-regression:ui-regression-1
  836. commands:
  837. - cd tests/ui-regression
  838. - npm install
  839. - chown -R pptruser out node_modules
  840. - bash -c "until curl -s http://ui-regression-php-master > /dev/null && curl -s http://ui-regression-php > /dev/null; do sleep 2; done"
  841. - sudo -u pptruser node runTests.js || true
  842. - echo "The result can be found at https://s3.bitgrid.net/nextcloud-ui-regression/nextcloud/server/${DRONE_PULL_REQUEST}/index.html"
  843. shm_size: '1gb'
  844. when:
  845. matrix:
  846. TESTS: ui-regression
  847. publish-s3:
  848. image: plugins/s3
  849. endpoint: https://ci-assets.nextcloud.com
  850. bucket: nextcloud-ui-regression
  851. path_style: true
  852. source: tests/ui-regression/out/**/*
  853. strip_prefix: tests/ui-regression/out/
  854. acl: public-read
  855. target: ${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/${DRONE_PULL_REQUEST}
  856. secrets: [ aws_access_key_id, aws_secret_access_key ]
  857. when:
  858. matrix:
  859. TESTS: ui-regression
  860. matrix:
  861. include:
  862. - TESTS: checkers
  863. - TESTS: vue-build-settings
  864. - TESTS: vue-build-updatenotification
  865. - TESTS: vue-build-oauth2
  866. - TESTS: vue-build-accessibility
  867. - TESTS: vue-build-backupcodes
  868. - TESTS: handlebars
  869. - TESTS: nodb-codecov
  870. ENABLE_REDIS: true
  871. - TESTS: db-codecov
  872. ENABLE_REDIS: true
  873. - DB: NODB
  874. PHP: 7.0
  875. ENABLE_REDIS: true
  876. - DB: NODB
  877. PHP: 7.1
  878. ENABLE_REDIS: true
  879. - DB: NODB
  880. PHP: 7.2
  881. ENABLE_REDIS: false
  882. - DB: NODB
  883. PHP: 7.3
  884. ENABLE_REDIS: false
  885. - DB: sqlite
  886. PHP: 7.0
  887. ENABLE_REDIS: true
  888. - DB: sqlite
  889. PHP: 7.1
  890. ENABLE_REDIS: true
  891. - DB: sqlite
  892. PHP: 7.2
  893. ENABLE_REDIS: false
  894. - DB: sqlite
  895. PHP: 7.3
  896. ENABLE_REDIS: false
  897. - DB: mysql
  898. PHP: 7.0
  899. ENABLE_REDIS: true
  900. - DB: mysql
  901. PHP: 7.1
  902. ENABLE_REDIS: true
  903. - DB: mysql
  904. PHP: 7.2
  905. ENABLE_REDIS: false
  906. - DB: mysql
  907. PHP: 7.3
  908. ENABLE_REDIS: false
  909. - DB: mysql5.6
  910. PHP: 7.0
  911. ENABLE_REDIS: true
  912. - DB: mysql5.6
  913. PHP: 7.1
  914. ENABLE_REDIS: true
  915. - DB: mysql5.5
  916. PHP: 7.0
  917. ENABLE_REDIS: true
  918. - DB: mysql5.5
  919. PHP: 7.1
  920. ENABLE_REDIS: true
  921. - DB: postgres
  922. PHP: 7.0
  923. POSTGRES: 9
  924. ENABLE_REDIS: true
  925. - DB: postgres
  926. PHP: 7.1
  927. POSTGRES: 9
  928. ENABLE_REDIS: true
  929. - DB: postgres
  930. PHP: 7.1
  931. POSTGRES: 10
  932. ENABLE_REDIS: true
  933. - DB: mysqlmb4
  934. PHP: 7.0
  935. ENABLE_REDIS: true
  936. - DB: mysqlmb4
  937. PHP: 7.1
  938. ENABLE_REDIS: true
  939. - DB: mysqlmb4
  940. PHP: 7.2
  941. ENABLE_REDIS: false
  942. - DB: mysqlmb4
  943. PHP: 7.3
  944. ENABLE_REDIS: false
  945. - TESTS: integration-capabilities_features
  946. - TESTS: integration-federation_features
  947. - TESTS: integration-maintenance-mode
  948. - TESTS: integration-ratelimiting
  949. ENABLE_REDIS: true
  950. - TESTS: integration-auth
  951. - TESTS: integration-carddav
  952. - TESTS: integration-dav-v2
  953. - TESTS: integration-ocs-v1
  954. - TESTS: integration-sharing-v1
  955. - TESTS: integration-sharing-v1-part2
  956. - TESTS: integration-sharing-v1-part3
  957. - TESTS: integration-checksums
  958. - TESTS: integration-external-storage
  959. - TESTS: integration-provisioning-v1
  960. - TESTS: integration-tags
  961. - TESTS: integration-caldav
  962. - TESTS: integration-comments
  963. - TESTS: integration-comments-search
  964. - TESTS: integration-favorites
  965. - TESTS: integration-provisioning-v2
  966. - TESTS: integration-webdav-related
  967. - TESTS: integration-sharees-features
  968. - TESTS: integration-sharees-v2-features
  969. - TESTS: integration-setup-features
  970. - TESTS: integration-filesdrop-features
  971. - TESTS: integration-transfer-ownership-features
  972. - TESTS: integration-ldap-features
  973. - TESTS: integration-ldap-openldap-features
  974. ENABLE_OPENLDAP: true
  975. ENABLE_REDIS: true
  976. - TESTS: integration-ldap-openldap-uid-features
  977. ENABLE_OPENLDAP: true
  978. ENABLE_REDIS: true
  979. - TESTS: integration-ldap-openldap-numerical-id-features
  980. ENABLE_OPENLDAP: true
  981. ENABLE_REDIS: true
  982. - TESTS: integration-trashbin
  983. - TESTS: integration-remote-api
  984. - TESTS: integration-download
  985. - TESTS: acceptance
  986. TESTS-ACCEPTANCE: access-levels
  987. - TESTS: acceptance
  988. TESTS-ACCEPTANCE: app-comments
  989. - TESTS: acceptance
  990. TESTS-ACCEPTANCE: app-files
  991. - TESTS: acceptance
  992. TESTS-ACCEPTANCE: app-files-sharing
  993. - TESTS: acceptance
  994. TESTS-ACCEPTANCE: app-files-sharing-link
  995. - TESTS: acceptance
  996. TESTS-ACCEPTANCE: app-files-tags
  997. - TESTS: acceptance
  998. TESTS-ACCEPTANCE: app-theming
  999. - TESTS: acceptance
  1000. TESTS-ACCEPTANCE: header
  1001. - TESTS: acceptance
  1002. TESTS-ACCEPTANCE: login
  1003. - TESTS: acceptance
  1004. TESTS-ACCEPTANCE: users
  1005. - TESTS: acceptance
  1006. TESTS-ACCEPTANCE: apps
  1007. - TESTS: jsunit
  1008. - TESTS: syntax-php7.0
  1009. - TESTS: syntax-php7.1
  1010. - TESTS: syntax-php7.2
  1011. - TESTS: syntax-php7.3
  1012. - TESTS: phan
  1013. - TESTS: litmus-v1
  1014. - TESTS: litmus-v2
  1015. - TESTS: caldavtester-old-endpoint
  1016. - TESTS: caldavtester-new-endpoint
  1017. - TESTS: carddavtester-new-endpoint
  1018. - TESTS: carddavtester-old-endpoint
  1019. - TESTS: object-store
  1020. OBJECT_STORE: s3
  1021. - TESTS: object-store
  1022. OBJECT_STORE: azure
  1023. # - TESTS: object-store
  1024. # OBJECT_STORE: swift
  1025. # SWIFT-AUTH: v2.0
  1026. # - TESTS: object-store
  1027. # OBJECT_STORE: swift
  1028. # SWIFT-AUTH: v3
  1029. - TESTS: sqlite-php7.0-samba-native
  1030. - TESTS: sqlite-php7.0-samba-non-native
  1031. - TEST: memcache-memcached
  1032. - TEST: memcache-redis-cluster
  1033. ENABLE_REDIS_CLUSTER: true
  1034. - TESTS: sqlite-php7.0-webdav-apache
  1035. ENABLE_REDIS: true
  1036. - TESTS: ui-regression
  1037. services:
  1038. cache:
  1039. image: redis
  1040. when:
  1041. matrix:
  1042. ENABLE_REDIS: true
  1043. ui-regression-php:
  1044. image: nextcloudci/server:server-1
  1045. commands:
  1046. - . /etc/apache2/envvars
  1047. - rm -fr /var/www/html
  1048. - mkdir /var/www/html && cp -rT . /var/www/html && chown -R www-data:www-data /var/www/html
  1049. - rm -fr /var/www/html/config/config.php /var/www/html/data/*
  1050. - apache2 -DFOREGROUND
  1051. when:
  1052. matrix:
  1053. TESTS: ui-regression
  1054. ui-regression-php-master:
  1055. image: nextcloudci/server:server-1
  1056. commands:
  1057. - . /etc/apache2/envvars
  1058. - rm -fr /var/www/html/config/config.php /var/www/html/data/*
  1059. - su www-data -c "cd /var/www/html/ && git checkout $DRONE_REPO_BRANCH && git pull && git submodule update"
  1060. - apache2 -DFOREGROUND
  1061. when:
  1062. matrix:
  1063. TESTS: ui-regression
  1064. cache-cluster:
  1065. image: morrisjobke/redis-cluster
  1066. when:
  1067. matrix:
  1068. ENABLE_REDIS_CLUSTER: true
  1069. postgres-9:
  1070. image: postgres:9
  1071. environment:
  1072. - POSTGRES_USER=oc_autotest
  1073. - POSTGRES_DB=oc_autotest_dummy
  1074. - POSTGRES_PASSWORD=owncloud
  1075. tmpfs:
  1076. - /var/lib/postgresql/data
  1077. when:
  1078. matrix:
  1079. DB: postgres
  1080. POSTGRES: 9
  1081. postgres-10:
  1082. image: postgres:10
  1083. environment:
  1084. - POSTGRES_USER=oc_autotest
  1085. - POSTGRES_DB=oc_autotest_dummy
  1086. - POSTGRES_PASSWORD=owncloud
  1087. tmpfs:
  1088. - /var/lib/postgresql/data
  1089. when:
  1090. matrix:
  1091. DB: postgres
  1092. POSTGRES: 10
  1093. mysql:
  1094. image: mysql:5.7
  1095. environment:
  1096. - MYSQL_ROOT_PASSWORD=owncloud
  1097. - MYSQL_USER=oc_autotest
  1098. - MYSQL_PASSWORD=owncloud
  1099. - MYSQL_DATABASE=oc_autotest
  1100. tmpfs:
  1101. - /var/lib/mysql
  1102. when:
  1103. matrix:
  1104. DB: mysql
  1105. mysql:
  1106. image: mysql:5.6
  1107. environment:
  1108. - MYSQL_ROOT_PASSWORD=owncloud
  1109. - MYSQL_USER=oc_autotest
  1110. - MYSQL_PASSWORD=owncloud
  1111. - MYSQL_DATABASE=oc_autotest
  1112. tmpfs:
  1113. - /var/lib/mysql
  1114. when:
  1115. matrix:
  1116. DB: mysql5.6
  1117. mysql:
  1118. image: mysql:5.5
  1119. environment:
  1120. - MYSQL_ROOT_PASSWORD=owncloud
  1121. - MYSQL_USER=oc_autotest
  1122. - MYSQL_PASSWORD=owncloud
  1123. - MYSQL_DATABASE=oc_autotest
  1124. tmpfs:
  1125. - /var/lib/mysql
  1126. when:
  1127. matrix:
  1128. DB: mysql5.5
  1129. mysqlmb4:
  1130. image: mysql:5.7.22
  1131. environment:
  1132. - MYSQL_ROOT_PASSWORD=owncloud
  1133. - MYSQL_USER=oc_autotest
  1134. - MYSQL_PASSWORD=owncloud
  1135. - MYSQL_DATABASE=oc_autotest
  1136. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  1137. tmpfs:
  1138. - /var/lib/mysql
  1139. when:
  1140. matrix:
  1141. DB: mysqlmb4
  1142. fake-s3:
  1143. image: lphoward/fake-s3
  1144. when:
  1145. matrix:
  1146. OBJECT_STORE: s3
  1147. azurite:
  1148. image: arafato/azurite
  1149. environment:
  1150. - executable=blob
  1151. when:
  1152. matrix:
  1153. OBJECT_STORE: azure
  1154. dockswift:
  1155. image: icewind1991/dockswift:nextcloud-ci
  1156. environment:
  1157. - IPADDRESS=dockswift
  1158. when:
  1159. matrix:
  1160. OBJECT_STORE: swift
  1161. selenium:
  1162. image: selenium/standalone-firefox:2.53.1-beryllium
  1163. environment:
  1164. # Reduce default log level for Selenium server (INFO) as it is too
  1165. # verbose.
  1166. - JAVA_OPTS=-Dselenium.LOGGER.level=WARNING
  1167. when:
  1168. matrix:
  1169. TESTS: acceptance
  1170. openldap:
  1171. image: nextcloudci/openldap:openldap-5
  1172. environment:
  1173. - SLAPD_DOMAIN=nextcloud.ci
  1174. - SLAPD_ORGANIZATION=Nextcloud
  1175. - SLAPD_PASSWORD=admin
  1176. - SLAPD_ADDITIONAL_MODULES=memberof
  1177. when:
  1178. matrix:
  1179. ENABLE_OPENLDAP: true
  1180. branches: [ stable15 ]