.drone.yml 40 KB

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