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

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