1
0

.drone.yml 37 KB

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