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

.drone.yml 39KB

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