You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.drone.yml 42KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165
  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 app:enable user_ldap
  632. - cd build/integration
  633. - ./run.sh ldap_features/ldap-openldap.feature
  634. when:
  635. matrix:
  636. TESTS: integration-ldap-openldap-features
  637. integration-ldap-openldap-uid-features:
  638. image: nextcloudci/integration-php7.0:integration-php7.0-6
  639. commands:
  640. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  641. - ./occ app:enable user_ldap
  642. - cd build/integration
  643. - ./run.sh ldap_features/openldap-uid-username.feature
  644. when:
  645. matrix:
  646. TESTS: integration-ldap-openldap-uid-features
  647. integration-ldap-openldap-numerical-id-features:
  648. image: nextcloudci/integration-php7.0:integration-php7.0-6
  649. commands:
  650. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  651. - ./occ app:enable user_ldap
  652. - cd build/integration
  653. - ./run.sh ldap_features/openldap-numerical-id.feature
  654. when:
  655. matrix:
  656. TESTS: integration-ldap-openldap-numerical-id-features
  657. integration-trashbin:
  658. image: nextcloudci/integration-php7.0:integration-php7.0-8
  659. commands:
  660. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  661. - cd build/integration
  662. - ./run.sh features/trashbin.feature
  663. when:
  664. matrix:
  665. TESTS: integration-trashbin
  666. integration-remote-api:
  667. image: nextcloudci/integration-php7.0:integration-php7.0-8
  668. commands:
  669. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  670. - cd build/integration
  671. - ./run.sh remoteapi_features/remote.feature
  672. when:
  673. matrix:
  674. TESTS: integration-remote-api
  675. integration-download:
  676. image: nextcloudci/integration-php7.0:integration-php7.0-8
  677. commands:
  678. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  679. - cd build/integration
  680. - ./run.sh --tags ~@large features/download.feature
  681. when:
  682. matrix:
  683. TESTS: integration-download
  684. acceptance-access-levels:
  685. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  686. commands:
  687. - 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
  688. when:
  689. matrix:
  690. TESTS-ACCEPTANCE: access-levels
  691. acceptance-app-comments:
  692. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  693. commands:
  694. - 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
  695. when:
  696. matrix:
  697. TESTS-ACCEPTANCE: app-comments
  698. acceptance-app-files:
  699. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  700. commands:
  701. - 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
  702. when:
  703. matrix:
  704. TESTS-ACCEPTANCE: app-files
  705. acceptance-app-files-sharing:
  706. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  707. commands:
  708. - 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
  709. when:
  710. matrix:
  711. TESTS-ACCEPTANCE: app-files-sharing
  712. acceptance-app-files-sharing-link:
  713. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  714. commands:
  715. - 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
  716. when:
  717. matrix:
  718. TESTS-ACCEPTANCE: app-files-sharing-link
  719. acceptance-app-files-tags:
  720. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  721. commands:
  722. - 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
  723. when:
  724. matrix:
  725. TESTS-ACCEPTANCE: app-files-tags
  726. acceptance-app-theming:
  727. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  728. commands:
  729. - 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
  730. when:
  731. matrix:
  732. TESTS-ACCEPTANCE: app-theming
  733. acceptance-header:
  734. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  735. commands:
  736. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-header --selenium-server selenium:4444 allow-git-repository-modifications features/header.feature
  737. when:
  738. matrix:
  739. TESTS-ACCEPTANCE: header
  740. acceptance-login:
  741. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  742. commands:
  743. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-login --selenium-server selenium:4444 allow-git-repository-modifications features/login.feature
  744. when:
  745. matrix:
  746. TESTS-ACCEPTANCE: login
  747. acceptance-users:
  748. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  749. commands:
  750. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-users --selenium-server selenium:4444 allow-git-repository-modifications features/users.feature
  751. when:
  752. matrix:
  753. TESTS-ACCEPTANCE: users
  754. acceptance-apps:
  755. image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
  756. commands:
  757. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-apps --selenium-server selenium:4444 allow-git-repository-modifications features/apps.feature
  758. when:
  759. matrix:
  760. TESTS-ACCEPTANCE: apps
  761. nodb-codecov:
  762. image: nextcloudci/php7.0:php7.0-19
  763. commands:
  764. - phpenmod xdebug
  765. - TEST_SELECTION=NODB ./autotest.sh sqlite
  766. - wget https://codecov.io/bash -O codecov.sh
  767. - 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"
  768. - 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"
  769. when:
  770. matrix:
  771. TESTS: nodb-codecov
  772. db-codecov:
  773. image: nextcloudci/php7.0:php7.0-19
  774. commands:
  775. - phpenmod xdebug
  776. - TEST_SELECTION=QUICKDB ./autotest.sh sqlite
  777. - wget https://codecov.io/bash -O codecov.sh
  778. - 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"
  779. - 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"
  780. when:
  781. matrix:
  782. TESTS: db-codecov
  783. object-store:
  784. image: nextcloudci/php7.0:php7.0-19
  785. commands:
  786. - phpenmod xdebug
  787. - ./tests/drone-wait-objectstore.sh
  788. - TEST_SELECTION=PRIMARY-${OBJECT_STORE} ./autotest.sh sqlite
  789. - wget https://codecov.io/bash -O codecov.sh
  790. - 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"
  791. - 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"
  792. when:
  793. matrix:
  794. TESTS: object-store
  795. memcache-memcached:
  796. image: nextcloudci/php7.0-memcached:php7.0-memcached-9
  797. commands:
  798. - phpenmod xdebug
  799. - service memcached restart
  800. - ./autotest.sh sqlite tests/lib/Memcache/MemcachedTest.php
  801. - wget https://codecov.io/bash -O codecov.sh
  802. - 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"
  803. - 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"
  804. when:
  805. matrix:
  806. TEST: memcache-memcached
  807. memcache-redis-cluster:
  808. image: nextcloudci/php7.0:php7.0-19
  809. commands:
  810. - phpenmod xdebug
  811. - sleep 20
  812. - ./autotest.sh sqlite tests/lib/Memcache/RedisTest.php
  813. - wget https://codecov.io/bash -O codecov.sh
  814. - 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"
  815. - 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"
  816. when:
  817. matrix:
  818. TEST: memcache-redis-cluster
  819. ui-regression:
  820. image: nextcloudci/ui-regression:ui-regression-1
  821. commands:
  822. - cd tests/ui-regression
  823. - npm install
  824. - chown -R pptruser out node_modules
  825. - bash -c "until curl -s http://ui-regression-php-master > /dev/null && curl -s http://ui-regression-php > /dev/null; do sleep 2; done"
  826. - sudo -u pptruser node runTests.js || true
  827. - echo "The result can be found at https://s3.bitgrid.net/nextcloud-ui-regression/nextcloud/server/${DRONE_PULL_REQUEST}/index.html"
  828. shm_size: '1gb'
  829. when:
  830. matrix:
  831. TESTS: ui-regression
  832. publish-s3:
  833. image: plugins/s3
  834. endpoint: https://ci-assets.nextcloud.com
  835. bucket: nextcloud-ui-regression
  836. path_style: true
  837. source: tests/ui-regression/out/**/*
  838. strip_prefix: tests/ui-regression/out/
  839. acl: public-read
  840. target: ${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/${DRONE_PULL_REQUEST}
  841. secrets: [ aws_access_key_id, aws_secret_access_key ]
  842. when:
  843. matrix:
  844. TESTS: ui-regression
  845. matrix:
  846. include:
  847. - TESTS: checkers
  848. - TESTS: vue-build-settings
  849. - TESTS: vue-build-updatenotification
  850. - TESTS: vue-build-oauth2
  851. - TESTS: vue-build-accessibility
  852. - TESTS: vue-build-backupcodes
  853. - TESTS: handlebars
  854. - TESTS: nodb-codecov
  855. ENABLE_REDIS: true
  856. - TESTS: db-codecov
  857. ENABLE_REDIS: true
  858. - DB: NODB
  859. PHP: 7.0
  860. ENABLE_REDIS: true
  861. - DB: NODB
  862. PHP: 7.1
  863. ENABLE_REDIS: true
  864. - DB: NODB
  865. PHP: 7.2
  866. ENABLE_REDIS: false
  867. - DB: NODB
  868. PHP: 7.3
  869. ENABLE_REDIS: false
  870. - DB: sqlite
  871. PHP: 7.0
  872. ENABLE_REDIS: true
  873. - DB: sqlite
  874. PHP: 7.1
  875. ENABLE_REDIS: true
  876. - DB: sqlite
  877. PHP: 7.2
  878. ENABLE_REDIS: false
  879. - DB: sqlite
  880. PHP: 7.3
  881. ENABLE_REDIS: false
  882. - DB: mysql
  883. PHP: 7.0
  884. ENABLE_REDIS: true
  885. - DB: mysql
  886. PHP: 7.1
  887. ENABLE_REDIS: true
  888. - DB: mysql
  889. PHP: 7.2
  890. ENABLE_REDIS: false
  891. - DB: mysql
  892. PHP: 7.3
  893. ENABLE_REDIS: false
  894. - DB: mysql5.6
  895. PHP: 7.0
  896. ENABLE_REDIS: true
  897. - DB: mysql5.6
  898. PHP: 7.1
  899. ENABLE_REDIS: true
  900. - DB: mysql5.5
  901. PHP: 7.0
  902. ENABLE_REDIS: true
  903. - DB: mysql5.5
  904. PHP: 7.1
  905. ENABLE_REDIS: true
  906. - DB: postgres
  907. PHP: 7.0
  908. POSTGRES: 9
  909. ENABLE_REDIS: true
  910. - DB: postgres
  911. PHP: 7.1
  912. POSTGRES: 9
  913. ENABLE_REDIS: true
  914. - DB: postgres
  915. PHP: 7.1
  916. POSTGRES: 10
  917. ENABLE_REDIS: true
  918. - DB: mysqlmb4
  919. PHP: 7.0
  920. ENABLE_REDIS: true
  921. - DB: mysqlmb4
  922. PHP: 7.1
  923. ENABLE_REDIS: true
  924. - DB: mysqlmb4
  925. PHP: 7.2
  926. ENABLE_REDIS: false
  927. - DB: mysqlmb4
  928. PHP: 7.3
  929. ENABLE_REDIS: false
  930. - TESTS: integration-capabilities_features
  931. - TESTS: integration-federation_features
  932. - TESTS: integration-maintenance-mode
  933. - TESTS: integration-ratelimiting
  934. ENABLE_REDIS: true
  935. - TESTS: integration-auth
  936. - TESTS: integration-carddav
  937. - TESTS: integration-dav-v2
  938. - TESTS: integration-ocs-v1
  939. - TESTS: integration-sharing-v1
  940. - TESTS: integration-sharing-v1-part2
  941. - TESTS: integration-sharing-v1-part3
  942. - TESTS: integration-checksums
  943. - TESTS: integration-external-storage
  944. - TESTS: integration-provisioning-v1
  945. - TESTS: integration-tags
  946. - TESTS: integration-caldav
  947. - TESTS: integration-comments
  948. - TESTS: integration-comments-search
  949. - TESTS: integration-favorites
  950. - TESTS: integration-provisioning-v2
  951. - TESTS: integration-webdav-related
  952. - TESTS: integration-sharees-features
  953. - TESTS: integration-sharees-v2-features
  954. - TESTS: integration-setup-features
  955. - TESTS: integration-filesdrop-features
  956. - TESTS: integration-transfer-ownership-features
  957. - TESTS: integration-ldap-features
  958. - TESTS: integration-ldap-openldap-features
  959. ENABLE_OPENLDAP: true
  960. - TESTS: integration-ldap-openldap-uid-features
  961. ENABLE_OPENLDAP: true
  962. - TESTS: integration-ldap-openldap-numerical-id-features
  963. ENABLE_OPENLDAP: true
  964. - TESTS: integration-trashbin
  965. - TESTS: integration-remote-api
  966. - TESTS: integration-download
  967. - TESTS: acceptance
  968. TESTS-ACCEPTANCE: access-levels
  969. - TESTS: acceptance
  970. TESTS-ACCEPTANCE: app-comments
  971. - TESTS: acceptance
  972. TESTS-ACCEPTANCE: app-files
  973. - TESTS: acceptance
  974. TESTS-ACCEPTANCE: app-files-sharing
  975. - TESTS: acceptance
  976. TESTS-ACCEPTANCE: app-files-sharing-link
  977. - TESTS: acceptance
  978. TESTS-ACCEPTANCE: app-files-tags
  979. - TESTS: acceptance
  980. TESTS-ACCEPTANCE: app-theming
  981. - TESTS: acceptance
  982. TESTS-ACCEPTANCE: header
  983. - TESTS: acceptance
  984. TESTS-ACCEPTANCE: login
  985. - TESTS: acceptance
  986. TESTS-ACCEPTANCE: users
  987. - TESTS: acceptance
  988. TESTS-ACCEPTANCE: apps
  989. - TESTS: jsunit
  990. - TESTS: syntax-php7.0
  991. - TESTS: syntax-php7.1
  992. - TESTS: syntax-php7.2
  993. - TESTS: syntax-php7.3
  994. - TESTS: phan
  995. - TESTS: litmus-v1
  996. - TESTS: litmus-v2
  997. - TESTS: caldavtester-old-endpoint
  998. - TESTS: caldavtester-new-endpoint
  999. - TESTS: carddavtester-new-endpoint
  1000. - TESTS: carddavtester-old-endpoint
  1001. - TESTS: object-store
  1002. OBJECT_STORE: s3
  1003. - TESTS: object-store
  1004. OBJECT_STORE: azure
  1005. # - TESTS: object-store
  1006. # OBJECT_STORE: swift
  1007. # SWIFT-AUTH: v2.0
  1008. # - TESTS: object-store
  1009. # OBJECT_STORE: swift
  1010. # SWIFT-AUTH: v3
  1011. - TESTS: sqlite-php7.0-samba-native
  1012. - TESTS: sqlite-php7.0-samba-non-native
  1013. - TEST: memcache-memcached
  1014. - TEST: memcache-redis-cluster
  1015. ENABLE_REDIS_CLUSTER: true
  1016. - TESTS: sqlite-php7.0-webdav-apache
  1017. ENABLE_REDIS: true
  1018. - TESTS: ui-regression
  1019. services:
  1020. cache:
  1021. image: redis
  1022. when:
  1023. matrix:
  1024. ENABLE_REDIS: true
  1025. ui-regression-php:
  1026. image: nextcloudci/server:server-1
  1027. commands:
  1028. - . /etc/apache2/envvars
  1029. - rm -fr /var/www/html
  1030. - mkdir /var/www/html && cp -rT . /var/www/html && chown -R www-data:www-data /var/www/html
  1031. - rm -fr /var/www/html/config/config.php /var/www/html/data/*
  1032. - apache2 -DFOREGROUND
  1033. when:
  1034. matrix:
  1035. TESTS: ui-regression
  1036. ui-regression-php-master:
  1037. image: nextcloudci/server:server-1
  1038. commands:
  1039. - . /etc/apache2/envvars
  1040. - rm -fr /var/www/html/config/config.php /var/www/html/data/*
  1041. - su www-data -c "cd /var/www/html/ && git checkout $DRONE_REPO_BRANCH && git pull && git submodule update"
  1042. - apache2 -DFOREGROUND
  1043. when:
  1044. matrix:
  1045. TESTS: ui-regression
  1046. cache-cluster:
  1047. image: morrisjobke/redis-cluster
  1048. when:
  1049. matrix:
  1050. ENABLE_REDIS_CLUSTER: true
  1051. postgres-9:
  1052. image: postgres:9
  1053. environment:
  1054. - POSTGRES_USER=oc_autotest
  1055. - POSTGRES_DB=oc_autotest_dummy
  1056. - POSTGRES_PASSWORD=owncloud
  1057. tmpfs:
  1058. - /var/lib/postgresql/data
  1059. when:
  1060. matrix:
  1061. DB: postgres
  1062. POSTGRES: 9
  1063. postgres-10:
  1064. image: postgres:10
  1065. environment:
  1066. - POSTGRES_USER=oc_autotest
  1067. - POSTGRES_DB=oc_autotest_dummy
  1068. - POSTGRES_PASSWORD=owncloud
  1069. tmpfs:
  1070. - /var/lib/postgresql/data
  1071. when:
  1072. matrix:
  1073. DB: postgres
  1074. POSTGRES: 10
  1075. mysql:
  1076. image: mysql:5.7
  1077. environment:
  1078. - MYSQL_ROOT_PASSWORD=owncloud
  1079. - MYSQL_USER=oc_autotest
  1080. - MYSQL_PASSWORD=owncloud
  1081. - MYSQL_DATABASE=oc_autotest
  1082. tmpfs:
  1083. - /var/lib/mysql
  1084. when:
  1085. matrix:
  1086. DB: mysql
  1087. mysql:
  1088. image: mysql:5.6
  1089. environment:
  1090. - MYSQL_ROOT_PASSWORD=owncloud
  1091. - MYSQL_USER=oc_autotest
  1092. - MYSQL_PASSWORD=owncloud
  1093. - MYSQL_DATABASE=oc_autotest
  1094. tmpfs:
  1095. - /var/lib/mysql
  1096. when:
  1097. matrix:
  1098. DB: mysql5.6
  1099. mysql:
  1100. image: mysql:5.5
  1101. environment:
  1102. - MYSQL_ROOT_PASSWORD=owncloud
  1103. - MYSQL_USER=oc_autotest
  1104. - MYSQL_PASSWORD=owncloud
  1105. - MYSQL_DATABASE=oc_autotest
  1106. tmpfs:
  1107. - /var/lib/mysql
  1108. when:
  1109. matrix:
  1110. DB: mysql5.5
  1111. mysqlmb4:
  1112. image: mysql:5.7.22
  1113. environment:
  1114. - MYSQL_ROOT_PASSWORD=owncloud
  1115. - MYSQL_USER=oc_autotest
  1116. - MYSQL_PASSWORD=owncloud
  1117. - MYSQL_DATABASE=oc_autotest
  1118. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  1119. tmpfs:
  1120. - /var/lib/mysql
  1121. when:
  1122. matrix:
  1123. DB: mysqlmb4
  1124. fake-s3:
  1125. image: lphoward/fake-s3
  1126. when:
  1127. matrix:
  1128. OBJECT_STORE: s3
  1129. azurite:
  1130. image: arafato/azurite
  1131. environment:
  1132. - executable=blob
  1133. when:
  1134. matrix:
  1135. OBJECT_STORE: azure
  1136. dockswift:
  1137. image: icewind1991/dockswift:nextcloud-ci
  1138. environment:
  1139. - IPADDRESS=dockswift
  1140. when:
  1141. matrix:
  1142. OBJECT_STORE: swift
  1143. selenium:
  1144. image: selenium/standalone-firefox:2.53.1-beryllium
  1145. environment:
  1146. # Reduce default log level for Selenium server (INFO) as it is too
  1147. # verbose.
  1148. - JAVA_OPTS=-Dselenium.LOGGER.level=WARNING
  1149. when:
  1150. matrix:
  1151. TESTS: acceptance
  1152. openldap:
  1153. image: nextcloudci/openldap:openldap-5
  1154. environment:
  1155. - SLAPD_DOMAIN=nextcloud.ci
  1156. - SLAPD_ORGANIZATION=Nextcloud
  1157. - SLAPD_PASSWORD=admin
  1158. - SLAPD_ADDITIONAL_MODULES=memberof
  1159. when:
  1160. matrix:
  1161. ENABLE_OPENLDAP: true
  1162. branches: [ master, stable* ]