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 41KB

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