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.

674 lines
25 KiB

10 years ago
10 years ago
  1. pipeline:
  2. clone:
  3. image: plugins/git
  4. depth: 1
  5. jsunit:
  6. image: nextcloudci/jsunit:jsunit-5
  7. commands:
  8. - ./autotest-js.sh
  9. - curl -o codecov.sh https://codecov.io/bash
  10. - 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"
  11. - 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"
  12. when:
  13. matrix:
  14. TESTS: jsunit
  15. check-autoloader:
  16. image: nextcloudci/php7.0:php7.0-7
  17. commands:
  18. - bash ./build/autoloaderchecker.sh
  19. when:
  20. matrix:
  21. TESTS: check-autoloader
  22. check-mergejs:
  23. image: nextcloudci/php7.0:php7.0-7
  24. commands:
  25. - bash ./build/mergejschecker.sh
  26. when:
  27. matrix:
  28. TESTS: check-mergejs
  29. translation-check:
  30. image: nextcloudci/php7.0:php7.0-7
  31. commands:
  32. - php ./build/translation-checker.php
  33. when:
  34. matrix:
  35. TESTS: translation-check
  36. app-check-code:
  37. image: nextcloudci/php7.0:php7.0-7
  38. commands:
  39. - ./occ app:check-code admin_audit
  40. - ./occ app:check-code comments
  41. - ./occ app:check-code federation
  42. - ./occ app:check-code sharebymail
  43. - ./occ app:check-code systemtags
  44. - ./occ app:check-code theming
  45. - ./occ app:check-code workflowengine
  46. when:
  47. matrix:
  48. TESTS: app-check-code
  49. signed-off-check:
  50. image: nextcloudci/php7.0:php7.0-7
  51. commands:
  52. - php ./build/signed-off-checker.php
  53. when:
  54. matrix:
  55. TESTS: signed-off-check
  56. htaccess-checker:
  57. image: nextcloudci/php7.0:php7.0-7
  58. commands:
  59. - php ./build/htaccess-checker.php
  60. when:
  61. matrix:
  62. TESTS: htaccess-checker
  63. syntax-php5.6:
  64. image: nextcloudci/php5.6:php5.6-7
  65. commands:
  66. - composer install
  67. - ./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 .
  68. when:
  69. matrix:
  70. TESTS: syntax-php5.6
  71. syntax-php7.0:
  72. image: nextcloudci/php7.0:php7.0-7
  73. commands:
  74. - composer install
  75. - ./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 .
  76. when:
  77. matrix:
  78. TESTS: syntax-php7.0
  79. syntax-php7.1:
  80. image: nextcloudci/php7.1:php7.1-11
  81. commands:
  82. - composer install
  83. - ./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 .
  84. when:
  85. matrix:
  86. TESTS: syntax-php7.1
  87. litmus-v1:
  88. image: nextcloudci/litmus-php7.0:litmus-php7.0-4
  89. commands:
  90. - bash tests/travis/install.sh sqlite
  91. - bash apps/dav/tests/travis/litmus-v1/script.sh
  92. when:
  93. matrix:
  94. TESTS: litmus-v1
  95. litmus-v2:
  96. image: nextcloudci/litmus-php7.0:litmus-php7.0-4
  97. commands:
  98. - bash tests/travis/install.sh sqlite
  99. - bash apps/dav/tests/travis/litmus-v2/script.sh
  100. when:
  101. matrix:
  102. TESTS: litmus-v2
  103. caldavtester-new-endpoint:
  104. image: nextcloudci/litmus-php7.0:litmus-php7.0-4
  105. commands:
  106. - bash tests/travis/install.sh sqlite
  107. - bash apps/dav/tests/travis/caldav/install.sh
  108. - bash apps/dav/tests/travis/caldav/script-new-endpoint.sh
  109. when:
  110. matrix:
  111. TESTS: caldavtester-new-endpoint
  112. caldavtester-old-endpoint:
  113. image: nextcloudci/litmus-php7.0:litmus-php7.0-4
  114. commands:
  115. - bash tests/travis/install.sh sqlite
  116. - bash apps/dav/tests/travis/caldav/install.sh
  117. - bash apps/dav/tests/travis/caldav/script-old-endpoint.sh
  118. when:
  119. matrix:
  120. TESTS: caldavtester-old-endpoint
  121. carddavtester-new-endpoint:
  122. image: nextcloudci/litmus-php7.0:litmus-php7.0-4
  123. commands:
  124. - bash tests/travis/install.sh sqlite
  125. - bash apps/dav/tests/travis/carddav/install.sh
  126. - bash apps/dav/tests/travis/carddav/script-new-endpoint.sh
  127. when:
  128. matrix:
  129. TESTS: carddavtester-new-endpoint
  130. carddavtester-old-endpoint:
  131. image: nextcloudci/litmus-php7.0:litmus-php7.0-4
  132. commands:
  133. - bash tests/travis/install.sh sqlite
  134. - bash apps/dav/tests/travis/carddav/install.sh
  135. - bash apps/dav/tests/travis/carddav/script-old-endpoint.sh
  136. when:
  137. matrix:
  138. TESTS: carddavtester-old-endpoint
  139. sqlite-php7.0-samba-native:
  140. image: nextcloudci/samba-native-php7.0:samba-native-php7.0-1
  141. commands:
  142. - smbd -D -FS &
  143. - ./autotest-external.sh sqlite smb-linux
  144. - wget https://codecov.io/bash -O codecov.sh
  145. - 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"
  146. - 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"
  147. - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-smb-linux.xml; fi"
  148. - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-smb-linux.xml; fi"
  149. when:
  150. matrix:
  151. TESTS: sqlite-php7.0-samba-native
  152. sqlite-php7.0-samba-non-native:
  153. image: nextcloudci/samba-non-native-php7.0:samba-non-native-php7.0-2
  154. commands:
  155. - smbd -D -FS &
  156. - ./autotest-external.sh sqlite smb-linux
  157. - wget https://codecov.io/bash -O codecov.sh
  158. - 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"
  159. - 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"
  160. - sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-smb-linux.xml; fi"
  161. - sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 117641e2-a9e8-4b7b-984b-ae872d9b05f5 -f tests/autotest-external-clover-sqlite-smb-linux.xml; fi"
  162. when:
  163. matrix:
  164. TESTS: sqlite-php7.0-samba-non-native
  165. sqlite-php7.0-webdav-apache:
  166. image: nextcloudci/webdav-apache-php7.0
  167. commands:
  168. - apache2
  169. - ./autotest-external.sh sqlite webdav-apachedrone
  170. - wget https://codecov.io/bash -O codecov.sh
  171. - 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"
  172. - 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"
  173. - 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"
  174. - 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"
  175. when:
  176. matrix:
  177. TESTS: sqlite-php7.0-webdav-apache
  178. nodb-php5.6:
  179. image: nextcloudci/php5.6:php5.6-7
  180. commands:
  181. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  182. when:
  183. matrix:
  184. DB: NODB
  185. PHP: 5.6
  186. nodb-php7.0:
  187. image: nextcloudci/php7.0:php7.0-7
  188. commands:
  189. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  190. when:
  191. matrix:
  192. DB: NODB
  193. PHP: "7.0"
  194. nodb-php7.1:
  195. image: nextcloudci/php7.1:php7.1-11
  196. commands:
  197. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  198. when:
  199. matrix:
  200. DB: NODB
  201. PHP: 7.1
  202. sqlite-php5.6:
  203. image: nextcloudci/php5.6:php5.6-7
  204. commands:
  205. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  206. when:
  207. matrix:
  208. DB: sqlite
  209. PHP: 5.6
  210. sqlite-php7.0:
  211. image: nextcloudci/php7.0:php7.0-7
  212. commands:
  213. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  214. when:
  215. matrix:
  216. DB: sqlite
  217. PHP: "7.0"
  218. sqlite-php7.1:
  219. image: nextcloudci/php7.1:php7.1-11
  220. commands:
  221. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  222. when:
  223. matrix:
  224. DB: sqlite
  225. PHP: 7.1
  226. mysql-php5.6:
  227. image: nextcloudci/php5.6:php5.6-7
  228. commands:
  229. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  230. when:
  231. matrix:
  232. DB: mysql
  233. PHP: 5.6
  234. postgres-php5.6:
  235. image: nextcloudci/php5.6:php5.6-7
  236. commands:
  237. - sleep 10 # gives the database enough time to initialize
  238. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  239. when:
  240. matrix:
  241. DB: postgres
  242. PHP: 5.6
  243. mysqlmb4-php5.6:
  244. image: nextcloudci/php5.6:php5.6-7
  245. commands:
  246. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysqlmb4
  247. when:
  248. matrix:
  249. DB: mysqlmb4
  250. PHP: 5.6
  251. integration-capabilities_features:
  252. image: nextcloudci/integration-php7.0:integration-php7.0-3
  253. commands:
  254. - ./occ maintenance:install --admin-pass=admin
  255. - cd build/integration
  256. - ./run.sh capabilities_features/capabilities.feature
  257. when:
  258. matrix:
  259. TESTS: integration-capabilities_features
  260. integration-federation_features:
  261. image: nextcloudci/integration-php7.0:integration-php7.0-3
  262. commands:
  263. - ./occ maintenance:install --admin-pass=admin
  264. - cd build/integration
  265. - ./run.sh federation_features/federated.feature
  266. when:
  267. matrix:
  268. TESTS: integration-federation_features
  269. integration-auth:
  270. image: nextcloudci/integration-php7.0:integration-php7.0-3
  271. commands:
  272. - ./occ maintenance:install --admin-pass=admin
  273. - cd build/integration
  274. - ./run.sh features/auth.feature
  275. when:
  276. matrix:
  277. TESTS: integration-auth
  278. integration-maintenance-mode:
  279. image: nextcloudci/integration-php7.0:integration-php7.0-3
  280. commands:
  281. - ./occ maintenance:install --admin-pass=admin
  282. - cd build/integration
  283. - ./run.sh features/maintenance-mode.feature
  284. when:
  285. matrix:
  286. TESTS: integration-maintenance-mode
  287. integration-ratelimiting:
  288. image: nextcloudci/integration-php7.0:integration-php7.0-3
  289. commands:
  290. - ./occ maintenance:install --admin-pass=admin
  291. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
  292. - ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
  293. - ./occ app:enable testing
  294. - cd build/integration
  295. - ./run.sh features/ratelimiting.feature
  296. when:
  297. matrix:
  298. TESTS: integration-ratelimiting
  299. integration-carddav:
  300. image: nextcloudci/integration-php7.0:integration-php7.0-3
  301. commands:
  302. - ./occ maintenance:install --admin-pass=admin
  303. - cd build/integration
  304. - ./run.sh features/carddav.feature
  305. when:
  306. matrix:
  307. TESTS: integration-carddav
  308. integration-dav-v2:
  309. image: nextcloudci/integration-php7.0:integration-php7.0-3
  310. commands:
  311. - ./occ maintenance:install --admin-pass=admin
  312. - cd build/integration
  313. - ./run.sh features/dav-v2.feature
  314. when:
  315. matrix:
  316. TESTS: integration-dav-v2
  317. integration-ocs-v1:
  318. image: nextcloudci/integration-php7.0:integration-php7.0-3
  319. commands:
  320. - ./occ maintenance:install --admin-pass=admin
  321. - cd build/integration
  322. - ./run.sh features/ocs-v1.feature
  323. when:
  324. matrix:
  325. TESTS: integration-ocs-v1
  326. integration-sharing-v1:
  327. image: nextcloudci/integration-php7.0:integration-php7.0-3
  328. commands:
  329. - ./occ maintenance:install --admin-pass=admin
  330. - cd build/integration
  331. - ./run.sh features/sharing-v1.feature
  332. when:
  333. matrix:
  334. TESTS: integration-sharing-v1
  335. integration-sharing-v1-part2:
  336. image: nextcloudci/integration-php7.0:integration-php7.0-3
  337. commands:
  338. - ./occ maintenance:install --admin-pass=admin
  339. - cd build/integration
  340. - ./run.sh features/sharing-v1-part2.feature
  341. when:
  342. matrix:
  343. TESTS: integration-sharing-v1-part2
  344. integration-checksums-v1:
  345. image: nextcloudci/integration-php7.0:integration-php7.0-3
  346. commands:
  347. - ./occ maintenance:install --admin-pass=admin
  348. - cd build/integration
  349. - ./run.sh features/checksums.feature
  350. when:
  351. matrix:
  352. TESTS: integration-checksums
  353. integration-external-storage:
  354. image: nextcloudci/integration-php7.0:integration-php7.0-3
  355. commands:
  356. - ./occ maintenance:install --admin-pass=admin
  357. - cd build/integration
  358. - ./run.sh features/external-storage.feature
  359. when:
  360. matrix:
  361. TESTS: integration-external-storage
  362. integration-provisioning-v1:
  363. image: nextcloudci/integration-php7.0:integration-php7.0-3
  364. commands:
  365. - ./occ maintenance:install --admin-pass=admin
  366. - cd build/integration
  367. - ./run.sh features/provisioning-v1.feature
  368. when:
  369. matrix:
  370. TESTS: integration-provisioning-v1
  371. integration-tags:
  372. image: nextcloudci/integration-php7.0:integration-php7.0-3
  373. commands:
  374. - ./occ maintenance:install --admin-pass=admin
  375. - cd build/integration
  376. - ./run.sh features/tags.feature
  377. when:
  378. matrix:
  379. TESTS: integration-tags
  380. integration-caldav:
  381. image: nextcloudci/integration-php7.0:integration-php7.0-3
  382. commands:
  383. - ./occ maintenance:install --admin-pass=admin
  384. - cd build/integration
  385. - ./run.sh features/caldav.feature
  386. when:
  387. matrix:
  388. TESTS: integration-caldav
  389. integration-comments:
  390. image: nextcloudci/integration-php7.0:integration-php7.0-3
  391. commands:
  392. - ./occ maintenance:install --admin-pass=admin
  393. - cd build/integration
  394. - ./run.sh features/comments.feature
  395. when:
  396. matrix:
  397. TESTS: integration-comments
  398. integration-favorites:
  399. image: nextcloudci/integration-php7.0:integration-php7.0-3
  400. commands:
  401. - ./occ maintenance:install --admin-pass=admin
  402. - cd build/integration
  403. - ./run.sh features/favorites.feature
  404. when:
  405. matrix:
  406. TESTS: integration-favorites
  407. integration-provisioning-v2:
  408. image: nextcloudci/integration-php7.0:integration-php7.0-3
  409. commands:
  410. - ./occ maintenance:install --admin-pass=admin
  411. - cd build/integration
  412. - ./run.sh features/provisioning-v2.feature
  413. when:
  414. matrix:
  415. TESTS: integration-provisioning-v2
  416. integration-webdav-related:
  417. image: nextcloudci/integration-php7.0:integration-php7.0-3
  418. commands:
  419. - ./occ maintenance:install --admin-pass=admin
  420. - cd build/integration
  421. - ./run.sh features/webdav-related.feature
  422. when:
  423. matrix:
  424. TESTS: integration-webdav-related
  425. integration-sharees-features:
  426. image: nextcloudci/integration-php7.0:integration-php7.0-3
  427. commands:
  428. - ./occ maintenance:install --admin-pass=admin
  429. - cd build/integration
  430. - ./run.sh sharees_features/sharees.feature
  431. when:
  432. matrix:
  433. TESTS: integration-sharees-features
  434. integration-sharees-v2-features:
  435. image: nextcloudci/integration-php7.0:integration-php7.0-3
  436. commands:
  437. - ./occ maintenance:install --admin-pass=admin
  438. - cd build/integration
  439. - ./run.sh sharees_features/sharees_provisioningapiv2.feature
  440. when:
  441. matrix:
  442. TESTS: integration-sharees-v2-features
  443. integration-setup-features:
  444. image: nextcloudci/integration-php7.0:integration-php7.0-3
  445. commands:
  446. - cd build/integration
  447. - ./run.sh setup_features/setup.feature
  448. when:
  449. matrix:
  450. TESTS: integration-setup-features
  451. integration-filesdrop-features:
  452. image: nextcloudci/integration-php7.0:integration-php7.0-3
  453. commands:
  454. - ./occ maintenance:install --admin-pass=admin
  455. - cd build/integration
  456. - ./run.sh filesdrop_features/filesdrop.feature
  457. when:
  458. matrix:
  459. TESTS: integration-filesdrop-features
  460. integration-transfer-ownership-features:
  461. image: nextcloudci/integration-php7.0:integration-php7.0-3
  462. commands:
  463. - ./occ maintenance:install --admin-pass=admin
  464. - cd build/integration
  465. - ./run.sh features/transfer-ownership.feature
  466. when:
  467. matrix:
  468. TESTS: integration-transfer-ownership-features
  469. integration-ldap-features:
  470. image: nextcloudci/integration-php7.0:integration-php7.0-3
  471. commands:
  472. - ./occ maintenance:install --admin-pass=admin
  473. - ./occ app:enable user_ldap
  474. - cd build/integration
  475. - ./run.sh ldap_features/ldap-ocs.feature
  476. when:
  477. matrix:
  478. TESTS: integration-ldap-features
  479. integration-trashbin:
  480. image: nextcloudci/integration-php7.0:integration-php7.0-3
  481. commands:
  482. - ./occ maintenance:install --admin-pass=admin
  483. - cd build/integration
  484. - ./run.sh features/trashbin.feature
  485. when:
  486. matrix:
  487. TESTS: integration-trashbin
  488. acceptance-access-levels:
  489. image: nextcloudci/php7.0:php7.0-7
  490. commands:
  491. - tests/acceptance/run-local.sh allow-git-repository-modifications features/access-levels.feature
  492. when:
  493. matrix:
  494. TESTS-ACCEPTANCE: access-levels
  495. acceptance-app-files:
  496. image: nextcloudci/php7.0:php7.0-7
  497. commands:
  498. - tests/acceptance/run-local.sh allow-git-repository-modifications features/app-files.feature
  499. when:
  500. matrix:
  501. TESTS-ACCEPTANCE: app-files
  502. acceptance-login:
  503. image: nextcloudci/php7.0:php7.0-7
  504. commands:
  505. - tests/acceptance/run-local.sh allow-git-repository-modifications features/login.feature
  506. when:
  507. matrix:
  508. TESTS-ACCEPTANCE: login
  509. nodb-codecov:
  510. image: nextcloudci/php7.0:php7.0-7
  511. commands:
  512. - TEST_SELECTION=NODB ./autotest.sh sqlite
  513. - wget https://codecov.io/bash -O codecov.sh
  514. - 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"
  515. - 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"
  516. when:
  517. matrix:
  518. TESTS: nodb-codecov
  519. db-codecov:
  520. image: nextcloudci/php7.0:php7.0-7
  521. commands:
  522. - TEST_SELECTION=QUICKDB ./autotest.sh sqlite
  523. - wget https://codecov.io/bash -O codecov.sh
  524. - 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"
  525. - 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"
  526. when:
  527. matrix:
  528. TESTS: db-codecov
  529. object-store:
  530. image: nextcloudci/php7.0:php7.0-7
  531. commands:
  532. - TEST_SELECTION=PRIMARY-${OBJECT_STORE} ./autotest.sh sqlite
  533. - wget https://codecov.io/bash -O codecov.sh
  534. - 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"
  535. - 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"
  536. when:
  537. matrix:
  538. TESTS: object-store
  539. memcache-memcached:
  540. image: nextcloudci/php7.0-memcached:php7.0-memcached-6
  541. commands:
  542. - service memcached restart
  543. - ./autotest.sh sqlite tests/lib/Memcache/MemcachedTest.php
  544. - wget https://codecov.io/bash -O codecov.sh
  545. - 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"
  546. - 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"
  547. when:
  548. matrix:
  549. TEST: memcache-memcached
  550. matrix:
  551. include:
  552. - TESTS: signed-off-check
  553. - TESTS: translation-check
  554. - TESTS: htaccess-checker
  555. - TESTS: nodb-codecov
  556. - TESTS: db-codecov
  557. - TESTS: integration-capabilities_features
  558. - TESTS: integration-federation_features
  559. - TESTS: integration-maintenance-mode
  560. - TESTS: integration-ratelimiting
  561. - TESTS: integration-auth
  562. - TESTS: integration-carddav
  563. - TESTS: integration-dav-v2
  564. - TESTS: integration-ocs-v1
  565. - TESTS: integration-sharing-v1
  566. - TESTS: integration-sharing-v1-part2
  567. - TESTS: integration-checksums
  568. - TESTS: integration-external-storage
  569. - TESTS: integration-provisioning-v1
  570. - TESTS: integration-tags
  571. - TESTS: integration-caldav
  572. - TESTS: integration-comments
  573. - TESTS: integration-favorites
  574. - TESTS: integration-provisioning-v2
  575. - TESTS: integration-webdav-related
  576. - TESTS: integration-sharees-features
  577. - TESTS: integration-sharees-v2-features
  578. - TESTS: integration-setup-features
  579. - TESTS: integration-filesdrop-features
  580. - TESTS: integration-transfer-ownership-features
  581. - TESTS: integration-ldap-features
  582. - TESTS: integration-trashbin
  583. - TESTS: acceptance
  584. TESTS-ACCEPTANCE: access-levels
  585. - TESTS: acceptance
  586. TESTS-ACCEPTANCE: app-files
  587. - TESTS: acceptance
  588. TESTS-ACCEPTANCE: login
  589. - TESTS: jsunit
  590. - TESTS: check-autoloader
  591. - TESTS: check-mergejs
  592. - TESTS: app-check-code
  593. - TESTS: syntax-php5.6
  594. - TESTS: syntax-php7.0
  595. - TESTS: syntax-php7.1
  596. - TESTS: litmus-v1
  597. - TESTS: litmus-v2
  598. - TESTS: caldavtester-old-endpoint
  599. - TESTS: caldavtester-new-endpoint
  600. - TESTS: carddavtester-new-endpoint
  601. - TESTS: carddavtester-old-endpoint
  602. - TESTS: object-store
  603. OBJECT_STORE: s3
  604. - TESTS: sqlite-php7.0-samba-native
  605. - TESTS: sqlite-php7.0-samba-non-native
  606. - TEST: memcache-memcached
  607. - TESTS: sqlite-php7.0-webdav-apache
  608. - DB: NODB
  609. PHP: 5.6
  610. - DB: NODB
  611. PHP: 7.0
  612. - DB: NODB
  613. PHP: 7.1
  614. - DB: sqlite
  615. PHP: 5.6
  616. - DB: sqlite
  617. PHP: 7.0
  618. - DB: sqlite
  619. PHP: 7.1
  620. - DB: mysql
  621. PHP: 5.6
  622. - DB: postgres
  623. PHP: 5.6
  624. - DB: mysqlmb4
  625. PHP: 5.6
  626. services:
  627. cache:
  628. image: redis
  629. postgres:
  630. image: postgres
  631. environment:
  632. - POSTGRES_USER=oc_autotest
  633. - POSTGRES_PASSWORD=oc_autotest
  634. when:
  635. matrix:
  636. DB: postgres
  637. mysql:
  638. image: mysql
  639. environment:
  640. - MYSQL_ROOT_PASSWORD=owncloud
  641. - MYSQL_USER=oc_autotest
  642. - MYSQL_PASSWORD=owncloud
  643. - MYSQL_DATABASE=oc_autotest
  644. when:
  645. matrix:
  646. DB: mysql
  647. mysqlmb4:
  648. image: mysql
  649. environment:
  650. - MYSQL_ROOT_PASSWORD=owncloud
  651. - MYSQL_USER=oc_autotest
  652. - MYSQL_PASSWORD=owncloud
  653. - MYSQL_DATABASE=oc_autotest
  654. command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
  655. when:
  656. matrix:
  657. DB: mysqlmb4
  658. fake-s3:
  659. image: lphoward/fake-s3
  660. when:
  661. matrix:
  662. OBJECT_STORE: s3
  663. selenium:
  664. image: selenium/standalone-firefox:2.53.1-beryllium
  665. environment:
  666. # Reduce default log level for Selenium server (INFO) as it is too
  667. # verbose.
  668. - JAVA_OPTS=-Dselenium.LOGGER.level=WARNING
  669. when:
  670. matrix:
  671. TESTS: acceptance
  672. branches: [ master, stable* ]