.drone.yml 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883
  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-header:
  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-header --selenium-server selenium:4444 allow-git-repository-modifications features/header.feature
  576. when:
  577. matrix:
  578. TESTS-ACCEPTANCE: header
  579. acceptance-login:
  580. image: nextcloudci/integration-php7.0:integration-php7.0-6
  581. commands:
  582. - tests/acceptance/run-local.sh --timeout-multiplier 10 --nextcloud-server-domain acceptance-login --selenium-server selenium:4444 allow-git-repository-modifications features/login.feature
  583. when:
  584. matrix:
  585. TESTS-ACCEPTANCE: login
  586. nodb-codecov:
  587. image: nextcloudci/php7.0:php7.0-19
  588. commands:
  589. - phpenmod xdebug
  590. - TEST_SELECTION=NODB ./autotest.sh sqlite
  591. - wget https://codecov.io/bash -O codecov.sh
  592. - 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"
  593. - 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"
  594. when:
  595. matrix:
  596. TESTS: nodb-codecov
  597. db-codecov:
  598. image: nextcloudci/php7.0:php7.0-19
  599. commands:
  600. - phpenmod xdebug
  601. - TEST_SELECTION=QUICKDB ./autotest.sh sqlite
  602. - wget https://codecov.io/bash -O codecov.sh
  603. - 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"
  604. - 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"
  605. when:
  606. matrix:
  607. TESTS: db-codecov
  608. object-store:
  609. image: nextcloudci/php7.0:php7.0-19
  610. commands:
  611. - phpenmod xdebug
  612. - ./tests/drone-wait-objectstore.sh
  613. - TEST_SELECTION=PRIMARY-${OBJECT_STORE} ./autotest.sh sqlite
  614. - wget https://codecov.io/bash -O codecov.sh
  615. - 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"
  616. - 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"
  617. when:
  618. matrix:
  619. TESTS: object-store
  620. memcache-memcached:
  621. image: nextcloudci/php7.0-memcached:php7.0-memcached-9
  622. commands:
  623. - phpenmod xdebug
  624. - service memcached restart
  625. - ./autotest.sh sqlite tests/lib/Memcache/MemcachedTest.php
  626. - wget https://codecov.io/bash -O codecov.sh
  627. - 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"
  628. - 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"
  629. when:
  630. matrix:
  631. TEST: memcache-memcached
  632. memcache-redis-cluster:
  633. image: nextcloudci/php7.0:php7.0-19
  634. commands:
  635. - phpenmod xdebug
  636. - sleep 20
  637. - ./autotest.sh sqlite tests/lib/Memcache/RedisTest.php
  638. - wget https://codecov.io/bash -O codecov.sh
  639. - 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"
  640. - 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"
  641. when:
  642. matrix:
  643. TEST: memcache-redis-cluster
  644. matrix:
  645. include:
  646. - TESTS: checkers
  647. - TESTS: nodb-codecov
  648. ENABLE_REDIS: true
  649. - TESTS: db-codecov
  650. ENABLE_REDIS: true
  651. - DB: NODB
  652. PHP: 7.0
  653. ENABLE_REDIS: true
  654. - DB: NODB
  655. PHP: 7.1
  656. ENABLE_REDIS: true
  657. - DB: NODB
  658. PHP: 7.2
  659. ENABLE_REDIS: false
  660. - DB: sqlite
  661. PHP: 7.0
  662. ENABLE_REDIS: true
  663. - DB: sqlite
  664. PHP: 7.1
  665. ENABLE_REDIS: true
  666. - DB: sqlite
  667. PHP: 7.2
  668. ENABLE_REDIS: false
  669. - DB: mysql
  670. PHP: 7.0
  671. ENABLE_REDIS: true
  672. - DB: mysql
  673. PHP: 7.1
  674. ENABLE_REDIS: true
  675. - DB: mysql
  676. PHP: 7.2
  677. ENABLE_REDIS: false
  678. - DB: mysql5.6
  679. PHP: 7.0
  680. ENABLE_REDIS: true
  681. - DB: mysql5.6
  682. PHP: 7.1
  683. ENABLE_REDIS: true
  684. - DB: mysql5.5
  685. PHP: 7.0
  686. ENABLE_REDIS: true
  687. - DB: mysql5.5
  688. PHP: 7.1
  689. ENABLE_REDIS: true
  690. - DB: postgres
  691. PHP: 7.0
  692. POSTGRES: 9
  693. ENABLE_REDIS: true
  694. - DB: postgres
  695. PHP: 7.1
  696. POSTGRES: 9
  697. ENABLE_REDIS: true
  698. - DB: postgres
  699. PHP: 7.1
  700. POSTGRES: 10
  701. ENABLE_REDIS: true
  702. - DB: mysqlmb4
  703. PHP: 7.0
  704. ENABLE_REDIS: true
  705. - DB: mysqlmb4
  706. PHP: 7.1
  707. ENABLE_REDIS: true
  708. - DB: mysqlmb4
  709. PHP: 7.2
  710. ENABLE_REDIS: false
  711. - TESTS: integration-capabilities_features
  712. - TESTS: integration-federation_features
  713. - TESTS: integration-maintenance-mode
  714. - TESTS: integration-ratelimiting
  715. ENABLE_REDIS: true
  716. - TESTS: integration-auth
  717. - TESTS: integration-carddav
  718. - TESTS: integration-dav-v2
  719. - TESTS: integration-ocs-v1
  720. - TESTS: integration-sharing-v1
  721. - TESTS: integration-sharing-v1-part2
  722. - TESTS: integration-sharing-v1-part3
  723. - TESTS: integration-checksums
  724. - TESTS: integration-external-storage
  725. - TESTS: integration-provisioning-v1
  726. - TESTS: integration-tags
  727. - TESTS: integration-caldav
  728. - TESTS: integration-comments
  729. - TESTS: integration-favorites
  730. - TESTS: integration-provisioning-v2
  731. - TESTS: integration-webdav-related
  732. - TESTS: integration-sharees-features
  733. - TESTS: integration-sharees-v2-features
  734. - TESTS: integration-setup-features
  735. - TESTS: integration-filesdrop-features
  736. - TESTS: integration-transfer-ownership-features
  737. - TESTS: integration-ldap-features
  738. - TESTS: integration-trashbin
  739. - TESTS: integration-remote-api
  740. - TESTS: acceptance
  741. TESTS-ACCEPTANCE: access-levels
  742. - TESTS: acceptance
  743. TESTS-ACCEPTANCE: app-comments
  744. - TESTS: acceptance
  745. TESTS-ACCEPTANCE: app-files
  746. - TESTS: acceptance
  747. TESTS-ACCEPTANCE: app-theming
  748. - TESTS: acceptance
  749. TESTS-ACCEPTANCE: header
  750. - TESTS: acceptance
  751. TESTS-ACCEPTANCE: login
  752. - TESTS: jsunit
  753. - TESTS: syntax-php7.0
  754. - TESTS: syntax-php7.1
  755. - TESTS: phan
  756. - TESTS: litmus-v1
  757. - TESTS: litmus-v2
  758. - TESTS: caldavtester-old-endpoint
  759. - TESTS: caldavtester-new-endpoint
  760. - TESTS: carddavtester-new-endpoint
  761. - TESTS: carddavtester-old-endpoint
  762. - TESTS: object-store
  763. OBJECT_STORE: s3
  764. - TESTS: object-store
  765. OBJECT_STORE: swift
  766. SWIFT-AUTH: v2.0
  767. - TESTS: object-store
  768. OBJECT_STORE: swift
  769. SWIFT-AUTH: v3
  770. - TESTS: sqlite-php7.0-samba-native
  771. - TESTS: sqlite-php7.0-samba-non-native
  772. - TEST: memcache-memcached
  773. - TEST: memcache-redis-cluster
  774. ENABLE_REDIS_CLUSTER: true
  775. - TESTS: sqlite-php7.0-webdav-apache
  776. ENABLE_REDIS: true
  777. services:
  778. cache:
  779. image: redis
  780. when:
  781. matrix:
  782. ENABLE_REDIS: true
  783. cache-cluster:
  784. image: morrisjobke/redis-cluster
  785. when:
  786. matrix:
  787. ENABLE_REDIS_CLUSTER: true
  788. postgres-9:
  789. image: postgres:9
  790. environment:
  791. - POSTGRES_USER=oc_autotest
  792. - POSTGRES_PASSWORD=owncloud
  793. tmpfs:
  794. - /var/lib/postgresql/data
  795. when:
  796. matrix:
  797. DB: postgres
  798. POSTGRES: 9
  799. postgres-10:
  800. image: postgres:10
  801. environment:
  802. - POSTGRES_USER=oc_autotest
  803. - POSTGRES_PASSWORD=owncloud
  804. tmpfs:
  805. - /var/lib/postgresql/data
  806. when:
  807. matrix:
  808. DB: postgres
  809. POSTGRES: 10
  810. mysql:
  811. image: mysql:5.7
  812. environment:
  813. - MYSQL_ROOT_PASSWORD=owncloud
  814. - MYSQL_USER=oc_autotest
  815. - MYSQL_PASSWORD=owncloud
  816. - MYSQL_DATABASE=oc_autotest
  817. tmpfs:
  818. - /var/lib/mysql
  819. when:
  820. matrix:
  821. DB: mysql
  822. mysql:
  823. image: mysql:5.6
  824. environment:
  825. - MYSQL_ROOT_PASSWORD=owncloud
  826. - MYSQL_USER=oc_autotest
  827. - MYSQL_PASSWORD=owncloud
  828. - MYSQL_DATABASE=oc_autotest
  829. tmpfs:
  830. - /var/lib/mysql
  831. when:
  832. matrix:
  833. DB: mysql5.6
  834. mysql:
  835. image: mysql:5.5
  836. environment:
  837. - MYSQL_ROOT_PASSWORD=owncloud
  838. - MYSQL_USER=oc_autotest
  839. - MYSQL_PASSWORD=owncloud
  840. - MYSQL_DATABASE=oc_autotest
  841. tmpfs:
  842. - /var/lib/mysql
  843. when:
  844. matrix:
  845. DB: mysql5.5
  846. mysqlmb4:
  847. image: mysql
  848. environment:
  849. - MYSQL_ROOT_PASSWORD=owncloud
  850. - MYSQL_USER=oc_autotest
  851. - MYSQL_PASSWORD=owncloud
  852. - MYSQL_DATABASE=oc_autotest
  853. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  854. tmpfs:
  855. - /var/lib/mysql
  856. when:
  857. matrix:
  858. DB: mysqlmb4
  859. fake-s3:
  860. image: lphoward/fake-s3
  861. when:
  862. matrix:
  863. OBJECT_STORE: s3
  864. dockswift:
  865. image: icewind1991/dockswift:nextcloud-ci
  866. environment:
  867. - IPADDRESS=dockswift
  868. when:
  869. matrix:
  870. OBJECT_STORE: swift
  871. selenium:
  872. image: selenium/standalone-firefox:2.53.1-beryllium
  873. environment:
  874. # Reduce default log level for Selenium server (INFO) as it is too
  875. # verbose.
  876. - JAVA_OPTS=-Dselenium.LOGGER.level=WARNING
  877. when:
  878. matrix:
  879. TESTS: acceptance
  880. branches: [ master, stable* ]