.drone.yml 40 KB

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