您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

.drone.yml 38KB

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