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 31KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870
  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. checkers:
  17. image: nextcloudci/php7.0:php7.0-19
  18. commands:
  19. - ./autotest-checkers.sh
  20. when:
  21. matrix:
  22. TESTS: checkers
  23. syntax-php7.0:
  24. image: nextcloudci/php7.0:php7.0-19
  25. commands:
  26. - composer install
  27. - ./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 .
  28. when:
  29. matrix:
  30. TESTS: syntax-php7.0
  31. syntax-php7.1:
  32. image: nextcloudci/php7.1:php7.1-16
  33. commands:
  34. - composer install
  35. - ./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 .
  36. when:
  37. matrix:
  38. TESTS: syntax-php7.1
  39. phan:
  40. image: nextcloudci/php7.2:php7.2-11
  41. commands:
  42. - composer install
  43. - composer require --dev "phan/phan:0.11.1"
  44. - ./lib/composer/phan/phan/phan -k build/.phan/config.php
  45. - php ./build/.phan/plugin-checker.php
  46. when:
  47. matrix:
  48. TESTS: phan
  49. litmus-v1:
  50. image: nextcloudci/litmus-php7.0:litmus-php7.0-6
  51. commands:
  52. - bash tests/travis/install.sh sqlite
  53. - bash apps/dav/tests/travis/litmus-v1/script.sh
  54. when:
  55. matrix:
  56. TESTS: litmus-v1
  57. litmus-v2:
  58. image: nextcloudci/litmus-php7.0:litmus-php7.0-6
  59. commands:
  60. - bash tests/travis/install.sh sqlite
  61. - bash apps/dav/tests/travis/litmus-v2/script.sh
  62. when:
  63. matrix:
  64. TESTS: litmus-v2
  65. caldavtester-new-endpoint:
  66. image: nextcloudci/litmus-php7.0:litmus-php7.0-6
  67. commands:
  68. - bash tests/travis/install.sh sqlite
  69. - bash apps/dav/tests/travis/caldav/install.sh
  70. - bash apps/dav/tests/travis/caldav/script-new-endpoint.sh
  71. when:
  72. matrix:
  73. TESTS: caldavtester-new-endpoint
  74. caldavtester-old-endpoint:
  75. image: nextcloudci/litmus-php7.0:litmus-php7.0-6
  76. commands:
  77. - bash tests/travis/install.sh sqlite
  78. - bash apps/dav/tests/travis/caldav/install.sh
  79. - bash apps/dav/tests/travis/caldav/script-old-endpoint.sh
  80. when:
  81. matrix:
  82. TESTS: caldavtester-old-endpoint
  83. carddavtester-new-endpoint:
  84. image: nextcloudci/litmus-php7.0:litmus-php7.0-6
  85. commands:
  86. - bash tests/travis/install.sh sqlite
  87. - bash apps/dav/tests/travis/carddav/install.sh
  88. - bash apps/dav/tests/travis/carddav/script-new-endpoint.sh
  89. when:
  90. matrix:
  91. TESTS: carddavtester-new-endpoint
  92. carddavtester-old-endpoint:
  93. image: nextcloudci/litmus-php7.0:litmus-php7.0-6
  94. commands:
  95. - bash tests/travis/install.sh sqlite
  96. - bash apps/dav/tests/travis/carddav/install.sh
  97. - bash apps/dav/tests/travis/carddav/script-old-endpoint.sh
  98. when:
  99. matrix:
  100. TESTS: carddavtester-old-endpoint
  101. sqlite-php7.0-samba-native:
  102. image: nextcloudci/samba-native-php7.0:samba-native-php7.0-3
  103. commands:
  104. - smbd -D -FS &
  105. - ./autotest-external.sh sqlite smb-linux
  106. - wget https://codecov.io/bash -O codecov.sh
  107. - 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"
  108. - 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"
  109. - 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"
  110. - 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"
  111. when:
  112. matrix:
  113. TESTS: sqlite-php7.0-samba-native
  114. sqlite-php7.0-samba-non-native:
  115. image: nextcloudci/samba-non-native-php7.0:samba-non-native-php7.0-4
  116. commands:
  117. - smbd -D -FS &
  118. - ./autotest-external.sh sqlite smb-linux
  119. - wget https://codecov.io/bash -O codecov.sh
  120. - 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"
  121. - 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"
  122. - 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"
  123. - 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"
  124. when:
  125. matrix:
  126. TESTS: sqlite-php7.0-samba-non-native
  127. sqlite-php7.0-webdav-apache:
  128. image: nextcloudci/webdav-apache-php7.0
  129. commands:
  130. - apache2
  131. - ./autotest-external.sh sqlite webdav-apachedrone
  132. - wget https://codecov.io/bash -O codecov.sh
  133. - 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"
  134. - 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"
  135. - 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"
  136. - 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"
  137. when:
  138. matrix:
  139. TESTS: sqlite-php7.0-webdav-apache
  140. nodb-php7.0:
  141. image: nextcloudci/php7.0:php7.0-19
  142. commands:
  143. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  144. when:
  145. matrix:
  146. DB: NODB
  147. PHP: "7.0"
  148. nodb-php7.1:
  149. image: nextcloudci/php7.1:php7.1-16
  150. commands:
  151. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  152. when:
  153. matrix:
  154. DB: NODB
  155. PHP: 7.1
  156. nodb-php7.2:
  157. image: nextcloudci/php7.2:php7.2-11
  158. commands:
  159. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  160. when:
  161. matrix:
  162. DB: NODB
  163. PHP: 7.2
  164. sqlite-php7.0:
  165. image: nextcloudci/php7.0:php7.0-19
  166. commands:
  167. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  168. when:
  169. matrix:
  170. DB: sqlite
  171. PHP: "7.0"
  172. sqlite-php7.1:
  173. image: nextcloudci/php7.1:php7.1-16
  174. commands:
  175. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  176. when:
  177. matrix:
  178. DB: sqlite
  179. PHP: 7.1
  180. sqlite-php7.2:
  181. image: nextcloudci/php7.2:php7.2-11
  182. commands:
  183. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  184. when:
  185. matrix:
  186. DB: sqlite
  187. PHP: 7.2
  188. mysql-php7.0:
  189. image: nextcloudci/php7.0:php7.0-19
  190. commands:
  191. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  192. when:
  193. matrix:
  194. DB: mysql
  195. PHP: "7.0"
  196. mysql-php7.1:
  197. image: nextcloudci/php7.1:php7.1-16
  198. commands:
  199. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  200. when:
  201. matrix:
  202. DB: mysql
  203. PHP: 7.1
  204. mysql-php7.2:
  205. image: nextcloudci/php7.2:php7.2-11
  206. commands:
  207. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  208. when:
  209. matrix:
  210. DB: mysql
  211. PHP: 7.2
  212. mysql5.6-php7.0:
  213. image: nextcloudci/php7.0:php7.0-19
  214. commands:
  215. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  216. when:
  217. matrix:
  218. DB: mysql5.6
  219. PHP: "7.0"
  220. mysql5.6-php7.1:
  221. image: nextcloudci/php7.1:php7.1-16
  222. commands:
  223. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  224. when:
  225. matrix:
  226. DB: mysql5.6
  227. PHP: 7.1
  228. mysql5.5-php7.0:
  229. image: nextcloudci/php7.0:php7.0-19
  230. commands:
  231. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  232. when:
  233. matrix:
  234. DB: mysql5.5
  235. PHP: "7.0"
  236. mysql5.5-php7.1:
  237. image: nextcloudci/php7.1:php7.1-16
  238. commands:
  239. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  240. when:
  241. matrix:
  242. DB: mysql5.5
  243. PHP: 7.1
  244. postgres-php7.0:
  245. image: nextcloudci/php7.0:php7.0-19
  246. commands:
  247. - sleep 10 # gives the database enough time to initialize
  248. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  249. when:
  250. matrix:
  251. DB: postgres
  252. PHP: "7.0"
  253. postgres-php7.1:
  254. image: nextcloudci/php7.1:php7.1-16
  255. commands:
  256. - sleep 10 # gives the database enough time to initialize
  257. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  258. when:
  259. matrix:
  260. DB: postgres
  261. PHP: 7.1
  262. mysqlmb4-php7.0:
  263. image: nextcloudci/php7.0:php7.0-19
  264. commands:
  265. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
  266. when:
  267. matrix:
  268. DB: mysqlmb4
  269. PHP: "7.0"
  270. mysqlmb4-php7.1:
  271. image: nextcloudci/php7.1:php7.1-16
  272. commands:
  273. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
  274. when:
  275. matrix:
  276. DB: mysqlmb4
  277. PHP: 7.1
  278. mysqlmb4-php7.2:
  279. image: nextcloudci/php7.2:php7.2-11
  280. commands:
  281. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
  282. when:
  283. matrix:
  284. DB: mysqlmb4
  285. PHP: 7.2
  286. integration-capabilities_features:
  287. image: nextcloudci/integration-php7.0:integration-php7.0-6
  288. commands:
  289. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  290. - cd build/integration
  291. - ./run.sh capabilities_features/capabilities.feature
  292. when:
  293. matrix:
  294. TESTS: integration-capabilities_features
  295. integration-federation_features:
  296. image: nextcloudci/integration-php7.0:integration-php7.0-6
  297. commands:
  298. - ./occ maintenance:install --admin-pass=admin
  299. - cd build/integration
  300. - ./run.sh federation_features/federated.feature
  301. when:
  302. matrix:
  303. TESTS: integration-federation_features
  304. integration-auth:
  305. image: nextcloudci/integration-php7.0:integration-php7.0-6
  306. commands:
  307. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  308. - cd build/integration
  309. - ./run.sh features/auth.feature
  310. when:
  311. matrix:
  312. TESTS: integration-auth
  313. integration-maintenance-mode:
  314. image: nextcloudci/integration-php7.0:integration-php7.0-6
  315. commands:
  316. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  317. - cd build/integration
  318. - ./run.sh features/maintenance-mode.feature
  319. when:
  320. matrix:
  321. TESTS: integration-maintenance-mode
  322. integration-ratelimiting:
  323. image: nextcloudci/integration-php7.0:integration-php7.0-6
  324. commands:
  325. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  326. - ./occ config:system:set redis host --value=cache
  327. - ./occ config:system:set redis port --value=6379 --type=integer
  328. - ./occ config:system:set redis timeout --value=0 --type=integer
  329. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  330. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  331. - ./occ app:enable testing
  332. - cd build/integration
  333. - ./run.sh features/ratelimiting.feature
  334. when:
  335. matrix:
  336. TESTS: integration-ratelimiting
  337. integration-carddav:
  338. image: nextcloudci/integration-php7.0:integration-php7.0-6
  339. commands:
  340. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  341. - cd build/integration
  342. - ./run.sh features/carddav.feature
  343. when:
  344. matrix:
  345. TESTS: integration-carddav
  346. integration-dav-v2:
  347. image: nextcloudci/integration-php7.0:integration-php7.0-6
  348. commands:
  349. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  350. - cd build/integration
  351. - ./run.sh features/dav-v2.feature
  352. when:
  353. matrix:
  354. TESTS: integration-dav-v2
  355. integration-ocs-v1:
  356. image: nextcloudci/integration-php7.0:integration-php7.0-6
  357. commands:
  358. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  359. - cd build/integration
  360. - ./run.sh features/ocs-v1.feature
  361. when:
  362. matrix:
  363. TESTS: integration-ocs-v1
  364. integration-sharing-v1:
  365. image: nextcloudci/integration-php7.0:integration-php7.0-6
  366. commands:
  367. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  368. - cd build/integration
  369. - ./run.sh features/sharing-v1.feature
  370. when:
  371. matrix:
  372. TESTS: integration-sharing-v1
  373. integration-sharing-v1-part2:
  374. image: nextcloudci/integration-php7.0:integration-php7.0-6
  375. commands:
  376. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  377. - cd build/integration
  378. - ./run.sh features/sharing-v1-part2.feature
  379. when:
  380. matrix:
  381. TESTS: integration-sharing-v1-part2
  382. integration-sharing-v1-part3:
  383. image: nextcloudci/integration-php7.0:integration-php7.0-6
  384. commands:
  385. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  386. - cd build/integration
  387. - ./run.sh features/sharing-v1-part3.feature
  388. when:
  389. matrix:
  390. TESTS: integration-sharing-v1-part3
  391. integration-checksums-v1:
  392. image: nextcloudci/integration-php7.0:integration-php7.0-6
  393. commands:
  394. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  395. - cd build/integration
  396. - ./run.sh features/checksums.feature
  397. when:
  398. matrix:
  399. TESTS: integration-checksums
  400. integration-external-storage:
  401. image: nextcloudci/integration-php7.0:integration-php7.0-6
  402. commands:
  403. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  404. - cd build/integration
  405. - ./run.sh features/external-storage.feature
  406. when:
  407. matrix:
  408. TESTS: integration-external-storage
  409. integration-provisioning-v1:
  410. image: nextcloudci/integration-php7.0:integration-php7.0-6
  411. commands:
  412. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  413. - cd build/integration
  414. - ./run.sh features/provisioning-v1.feature
  415. when:
  416. matrix:
  417. TESTS: integration-provisioning-v1
  418. integration-tags:
  419. image: nextcloudci/integration-php7.0:integration-php7.0-6
  420. commands:
  421. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  422. - cd build/integration
  423. - ./run.sh features/tags.feature
  424. when:
  425. matrix:
  426. TESTS: integration-tags
  427. integration-caldav:
  428. image: nextcloudci/integration-php7.0:integration-php7.0-6
  429. commands:
  430. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  431. - cd build/integration
  432. - ./run.sh features/caldav.feature
  433. when:
  434. matrix:
  435. TESTS: integration-caldav
  436. integration-comments:
  437. image: nextcloudci/integration-php7.0:integration-php7.0-6
  438. commands:
  439. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  440. - cd build/integration
  441. - ./run.sh features/comments.feature
  442. when:
  443. matrix:
  444. TESTS: integration-comments
  445. integration-favorites:
  446. image: nextcloudci/integration-php7.0:integration-php7.0-6
  447. commands:
  448. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  449. - cd build/integration
  450. - ./run.sh features/favorites.feature
  451. when:
  452. matrix:
  453. TESTS: integration-favorites
  454. integration-provisioning-v2:
  455. image: nextcloudci/integration-php7.0:integration-php7.0-6
  456. commands:
  457. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  458. - cd build/integration
  459. - ./run.sh features/provisioning-v2.feature
  460. when:
  461. matrix:
  462. TESTS: integration-provisioning-v2
  463. integration-webdav-related:
  464. image: nextcloudci/integration-php7.0:integration-php7.0-6
  465. commands:
  466. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  467. - cd build/integration
  468. - ./run.sh features/webdav-related.feature
  469. when:
  470. matrix:
  471. TESTS: integration-webdav-related
  472. integration-sharees-features:
  473. image: nextcloudci/integration-php7.0:integration-php7.0-6
  474. commands:
  475. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  476. - cd build/integration
  477. - ./run.sh sharees_features/sharees.feature
  478. when:
  479. matrix:
  480. TESTS: integration-sharees-features
  481. integration-sharees-v2-features:
  482. image: nextcloudci/integration-php7.0:integration-php7.0-6
  483. commands:
  484. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  485. - cd build/integration
  486. - ./run.sh sharees_features/sharees_provisioningapiv2.feature
  487. when:
  488. matrix:
  489. TESTS: integration-sharees-v2-features
  490. integration-setup-features:
  491. image: nextcloudci/integration-php7.0:integration-php7.0-6
  492. commands:
  493. - cd build/integration
  494. - ./run.sh setup_features/setup.feature
  495. when:
  496. matrix:
  497. TESTS: integration-setup-features
  498. integration-filesdrop-features:
  499. image: nextcloudci/integration-php7.0:integration-php7.0-6
  500. commands:
  501. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  502. - cd build/integration
  503. - ./run.sh filesdrop_features/filesdrop.feature
  504. when:
  505. matrix:
  506. TESTS: integration-filesdrop-features
  507. integration-transfer-ownership-features:
  508. image: nextcloudci/integration-php7.0:integration-php7.0-6
  509. commands:
  510. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  511. - cd build/integration
  512. - ./run.sh features/transfer-ownership.feature
  513. when:
  514. matrix:
  515. TESTS: integration-transfer-ownership-features
  516. integration-ldap-features:
  517. image: nextcloudci/integration-php7.0:integration-php7.0-6
  518. commands:
  519. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  520. - ./occ app:enable user_ldap
  521. - cd build/integration
  522. - ./run.sh ldap_features/ldap-ocs.feature
  523. when:
  524. matrix:
  525. TESTS: integration-ldap-features
  526. integration-trashbin:
  527. image: nextcloudci/integration-php7.0:integration-php7.0-6
  528. commands:
  529. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  530. - cd build/integration
  531. - ./run.sh features/trashbin.feature
  532. when:
  533. matrix:
  534. TESTS: integration-trashbin
  535. integration-remote-api:
  536. image: nextcloudci/integration-php7.0:integration-php7.0-6
  537. commands:
  538. - ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
  539. - cd build/integration
  540. - ./run.sh remoteapi_features/remote.feature
  541. when:
  542. matrix:
  543. TESTS: integration-remote-api
  544. acceptance-access-levels:
  545. image: nextcloudci/integration-php7.0:integration-php7.0-6
  546. commands:
  547. - 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
  548. when:
  549. matrix:
  550. TESTS-ACCEPTANCE: access-levels
  551. acceptance-app-comments:
  552. image: nextcloudci/integration-php7.0:integration-php7.0-6
  553. commands:
  554. - 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
  555. when:
  556. matrix:
  557. TESTS-ACCEPTANCE: app-comments
  558. acceptance-app-files:
  559. image: nextcloudci/integration-php7.0:integration-php7.0-6
  560. commands:
  561. - 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
  562. when:
  563. matrix:
  564. TESTS-ACCEPTANCE: app-files
  565. acceptance-app-theming:
  566. image: nextcloudci/integration-php7.0:integration-php7.0-6
  567. commands:
  568. - 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
  569. when:
  570. matrix:
  571. TESTS-ACCEPTANCE: app-theming
  572. acceptance-login:
  573. image: nextcloudci/integration-php7.0:integration-php7.0-6
  574. commands:
  575. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-login --selenium-server selenium:4444 allow-git-repository-modifications features/login.feature
  576. when:
  577. matrix:
  578. TESTS-ACCEPTANCE: login
  579. nodb-codecov:
  580. image: nextcloudci/php7.0:php7.0-19
  581. commands:
  582. - phpenmod xdebug
  583. - TEST_SELECTION=NODB ./autotest.sh sqlite
  584. - wget https://codecov.io/bash -O codecov.sh
  585. - 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"
  586. - 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"
  587. when:
  588. matrix:
  589. TESTS: nodb-codecov
  590. db-codecov:
  591. image: nextcloudci/php7.0:php7.0-19
  592. commands:
  593. - phpenmod xdebug
  594. - TEST_SELECTION=QUICKDB ./autotest.sh sqlite
  595. - wget https://codecov.io/bash -O codecov.sh
  596. - 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"
  597. - 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"
  598. when:
  599. matrix:
  600. TESTS: db-codecov
  601. object-store:
  602. image: nextcloudci/php7.0:php7.0-19
  603. commands:
  604. - phpenmod xdebug
  605. - ./tests/drone-wait-objectstore.sh
  606. - TEST_SELECTION=PRIMARY-${OBJECT_STORE} ./autotest.sh sqlite
  607. - wget https://codecov.io/bash -O codecov.sh
  608. - 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"
  609. - 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"
  610. when:
  611. matrix:
  612. TESTS: object-store
  613. memcache-memcached:
  614. image: nextcloudci/php7.0-memcached:php7.0-memcached-9
  615. commands:
  616. - phpenmod xdebug
  617. - service memcached restart
  618. - ./autotest.sh sqlite tests/lib/Memcache/MemcachedTest.php
  619. - wget https://codecov.io/bash -O codecov.sh
  620. - 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"
  621. - 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"
  622. when:
  623. matrix:
  624. TEST: memcache-memcached
  625. memcache-redis-cluster:
  626. image: nextcloudci/php7.0:php7.0-19
  627. commands:
  628. - phpenmod xdebug
  629. - sleep 20
  630. - ./autotest.sh sqlite tests/lib/Memcache/RedisTest.php
  631. - wget https://codecov.io/bash -O codecov.sh
  632. - 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"
  633. - 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"
  634. when:
  635. matrix:
  636. TEST: memcache-redis-cluster
  637. matrix:
  638. include:
  639. - TESTS: checkers
  640. - TESTS: nodb-codecov
  641. ENABLE_REDIS: true
  642. - TESTS: db-codecov
  643. ENABLE_REDIS: true
  644. - DB: NODB
  645. PHP: 7.0
  646. ENABLE_REDIS: true
  647. - DB: NODB
  648. PHP: 7.1
  649. ENABLE_REDIS: true
  650. - DB: NODB
  651. PHP: 7.2
  652. ENABLE_REDIS: false
  653. - DB: sqlite
  654. PHP: 7.0
  655. ENABLE_REDIS: true
  656. - DB: sqlite
  657. PHP: 7.1
  658. ENABLE_REDIS: true
  659. - DB: sqlite
  660. PHP: 7.2
  661. ENABLE_REDIS: false
  662. - DB: mysql
  663. PHP: 7.0
  664. ENABLE_REDIS: true
  665. - DB: mysql
  666. PHP: 7.1
  667. ENABLE_REDIS: true
  668. - DB: mysql
  669. PHP: 7.2
  670. ENABLE_REDIS: false
  671. - DB: mysql5.6
  672. PHP: 7.0
  673. ENABLE_REDIS: true
  674. - DB: mysql5.6
  675. PHP: 7.1
  676. ENABLE_REDIS: true
  677. - DB: mysql5.5
  678. PHP: 7.0
  679. ENABLE_REDIS: true
  680. - DB: mysql5.5
  681. PHP: 7.1
  682. ENABLE_REDIS: true
  683. - DB: postgres
  684. PHP: 7.0
  685. POSTGRES: 9
  686. ENABLE_REDIS: true
  687. - DB: postgres
  688. PHP: 7.1
  689. POSTGRES: 9
  690. ENABLE_REDIS: true
  691. - DB: postgres
  692. PHP: 7.1
  693. POSTGRES: 10
  694. ENABLE_REDIS: true
  695. - DB: mysqlmb4
  696. PHP: 7.0
  697. ENABLE_REDIS: true
  698. - DB: mysqlmb4
  699. PHP: 7.1
  700. ENABLE_REDIS: true
  701. - DB: mysqlmb4
  702. PHP: 7.2
  703. ENABLE_REDIS: false
  704. - TESTS: integration-capabilities_features
  705. - TESTS: integration-federation_features
  706. - TESTS: integration-maintenance-mode
  707. - TESTS: integration-ratelimiting
  708. ENABLE_REDIS: true
  709. - TESTS: integration-auth
  710. - TESTS: integration-carddav
  711. - TESTS: integration-dav-v2
  712. - TESTS: integration-ocs-v1
  713. - TESTS: integration-sharing-v1
  714. - TESTS: integration-sharing-v1-part2
  715. - TESTS: integration-sharing-v1-part3
  716. - TESTS: integration-checksums
  717. - TESTS: integration-external-storage
  718. - TESTS: integration-provisioning-v1
  719. - TESTS: integration-tags
  720. - TESTS: integration-caldav
  721. - TESTS: integration-comments
  722. - TESTS: integration-favorites
  723. - TESTS: integration-provisioning-v2
  724. - TESTS: integration-webdav-related
  725. - TESTS: integration-sharees-features
  726. - TESTS: integration-sharees-v2-features
  727. - TESTS: integration-setup-features
  728. - TESTS: integration-filesdrop-features
  729. - TESTS: integration-transfer-ownership-features
  730. - TESTS: integration-ldap-features
  731. - TESTS: integration-trashbin
  732. - TESTS: integration-remote-api
  733. - TESTS: acceptance
  734. TESTS-ACCEPTANCE: access-levels
  735. - TESTS: acceptance
  736. TESTS-ACCEPTANCE: app-comments
  737. - TESTS: acceptance
  738. TESTS-ACCEPTANCE: app-files
  739. - TESTS: acceptance
  740. TESTS-ACCEPTANCE: app-theming
  741. - TESTS: acceptance
  742. TESTS-ACCEPTANCE: login
  743. - TESTS: jsunit
  744. - TESTS: syntax-php7.0
  745. - TESTS: syntax-php7.1
  746. - TESTS: phan
  747. - TESTS: litmus-v1
  748. - TESTS: litmus-v2
  749. - TESTS: caldavtester-old-endpoint
  750. - TESTS: caldavtester-new-endpoint
  751. - TESTS: carddavtester-new-endpoint
  752. - TESTS: carddavtester-old-endpoint
  753. - TESTS: object-store
  754. OBJECT_STORE: s3
  755. - TESTS: object-store
  756. OBJECT_STORE: swift
  757. - TESTS: sqlite-php7.0-samba-native
  758. - TESTS: sqlite-php7.0-samba-non-native
  759. - TEST: memcache-memcached
  760. - TEST: memcache-redis-cluster
  761. ENABLE_REDIS_CLUSTER: true
  762. - TESTS: sqlite-php7.0-webdav-apache
  763. ENABLE_REDIS: true
  764. services:
  765. cache:
  766. image: redis
  767. when:
  768. matrix:
  769. ENABLE_REDIS: true
  770. cache-cluster:
  771. image: morrisjobke/redis-cluster
  772. when:
  773. matrix:
  774. ENABLE_REDIS_CLUSTER: true
  775. postgres-9:
  776. image: postgres:9
  777. environment:
  778. - POSTGRES_USER=oc_autotest
  779. - POSTGRES_PASSWORD=owncloud
  780. tmpfs:
  781. - /var/lib/postgresql/data
  782. when:
  783. matrix:
  784. DB: postgres
  785. POSTGRES: 9
  786. postgres-10:
  787. image: postgres:10
  788. environment:
  789. - POSTGRES_USER=oc_autotest
  790. - POSTGRES_PASSWORD=owncloud
  791. tmpfs:
  792. - /var/lib/postgresql/data
  793. when:
  794. matrix:
  795. DB: postgres
  796. POSTGRES: 10
  797. mysql:
  798. image: mysql:5.7
  799. environment:
  800. - MYSQL_ROOT_PASSWORD=owncloud
  801. - MYSQL_USER=oc_autotest
  802. - MYSQL_PASSWORD=owncloud
  803. - MYSQL_DATABASE=oc_autotest
  804. tmpfs:
  805. - /var/lib/mysql
  806. when:
  807. matrix:
  808. DB: mysql
  809. mysql:
  810. image: mysql:5.6
  811. environment:
  812. - MYSQL_ROOT_PASSWORD=owncloud
  813. - MYSQL_USER=oc_autotest
  814. - MYSQL_PASSWORD=owncloud
  815. - MYSQL_DATABASE=oc_autotest
  816. tmpfs:
  817. - /var/lib/mysql
  818. when:
  819. matrix:
  820. DB: mysql5.6
  821. mysql:
  822. image: mysql:5.5
  823. environment:
  824. - MYSQL_ROOT_PASSWORD=owncloud
  825. - MYSQL_USER=oc_autotest
  826. - MYSQL_PASSWORD=owncloud
  827. - MYSQL_DATABASE=oc_autotest
  828. tmpfs:
  829. - /var/lib/mysql
  830. when:
  831. matrix:
  832. DB: mysql5.5
  833. mysqlmb4:
  834. image: mysql
  835. environment:
  836. - MYSQL_ROOT_PASSWORD=owncloud
  837. - MYSQL_USER=oc_autotest
  838. - MYSQL_PASSWORD=owncloud
  839. - MYSQL_DATABASE=oc_autotest
  840. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  841. tmpfs:
  842. - /var/lib/mysql
  843. when:
  844. matrix:
  845. DB: mysqlmb4
  846. fake-s3:
  847. image: lphoward/fake-s3
  848. when:
  849. matrix:
  850. OBJECT_STORE: s3
  851. dockswift:
  852. image: icewind1991/dockswift:nextcloud-ci
  853. environment:
  854. - IPADDRESS=dockswift
  855. when:
  856. matrix:
  857. OBJECT_STORE: swift
  858. selenium:
  859. image: selenium/standalone-firefox:2.53.1-beryllium
  860. environment:
  861. # Reduce default log level for Selenium server (INFO) as it is too
  862. # verbose.
  863. - JAVA_OPTS=-Dselenium.LOGGER.level=WARNING
  864. when:
  865. matrix:
  866. TESTS: acceptance
  867. branches: [ master, stable* ]