.drone.yml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. pipeline:
  2. clone:
  3. image: plugins/git
  4. depth: 1
  5. jsunit:
  6. image: nextcloudci/jsunit:1.0.6
  7. commands:
  8. - ./autotest-js.sh
  9. when:
  10. matrix:
  11. TESTS: jsunit
  12. check-autoloader:
  13. image: nextcloudci/php7.0:php7.0-2
  14. commands:
  15. - bash ./build/autoloaderchecker.sh
  16. when:
  17. matrix:
  18. TESTS: check-autoloader
  19. app-check-code:
  20. image: nextcloudci/php7.0:php7.0-2
  21. commands:
  22. - ./occ app:check-code admin_audit
  23. - ./occ app:check-code comments
  24. - ./occ app:check-code federation
  25. - ./occ app:check-code workflowengine
  26. when:
  27. matrix:
  28. TESTS: app-check-code
  29. syntax-php5.6:
  30. image: nextcloudci/php5.6:php5.6-2
  31. commands:
  32. - composer install
  33. - ./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 .
  34. when:
  35. matrix:
  36. TESTS: syntax-php5.6
  37. syntax-php7.0:
  38. image: nextcloudci/php7.0:php7.0-2
  39. commands:
  40. - composer install
  41. - ./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 .
  42. when:
  43. matrix:
  44. TESTS: syntax-php7.0
  45. litmus-v1:
  46. image: nextcloudci/litmus-php7.0:litmus-php7.0-2
  47. commands:
  48. - bash tests/travis/install.sh sqlite
  49. - bash apps/dav/tests/travis/litmus-v1/script.sh
  50. when:
  51. matrix:
  52. TESTS: litmus-v1
  53. litmus-v2:
  54. image: nextcloudci/litmus-php7.0:litmus-php7.0-2
  55. commands:
  56. - bash tests/travis/install.sh sqlite
  57. - bash apps/dav/tests/travis/litmus-v2/script.sh
  58. when:
  59. matrix:
  60. TESTS: litmus-v2
  61. caldavtester:
  62. image: nextcloudci/litmus-php7.0:litmus-php7.0-2
  63. commands:
  64. - bash tests/travis/install.sh sqlite
  65. - bash apps/dav/tests/travis/caldav/install.sh
  66. - bash apps/dav/tests/travis/caldav/script.sh
  67. when:
  68. matrix:
  69. TESTS: caldavtester
  70. carddavtester:
  71. image: nextcloudci/litmus-php7.0:litmus-php7.0-2
  72. commands:
  73. - bash tests/travis/install.sh sqlite
  74. - bash apps/dav/tests/travis/carddav/install.sh
  75. - bash apps/dav/tests/travis/carddav/script.sh
  76. when:
  77. matrix:
  78. TESTS: carddavtester
  79. nodb-php5.6:
  80. image: nextcloudci/php5.6:php5.6-2
  81. commands:
  82. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  83. when:
  84. matrix:
  85. DB: NODB
  86. PHP: 5.6
  87. nodb-php7.0:
  88. image: nextcloudci/php7.0:php7.0-2
  89. commands:
  90. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  91. when:
  92. matrix:
  93. DB: NODB
  94. PHP: "7.0"
  95. nodb-php7.1:
  96. image: nextcloudci/php7.1:php7.1-3
  97. commands:
  98. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  99. when:
  100. matrix:
  101. DB: NODB
  102. PHP: 7.1
  103. sqlite-php5.6:
  104. image: nextcloudci/php5.6:php5.6-2
  105. commands:
  106. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  107. when:
  108. matrix:
  109. DB: sqlite
  110. PHP: 5.6
  111. sqlite-php7.0:
  112. image: nextcloudci/php7.0:php7.0-2
  113. commands:
  114. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  115. when:
  116. matrix:
  117. DB: sqlite
  118. PHP: "7.0"
  119. sqlite-php7.1:
  120. image: nextcloudci/php7.1:php7.1-3
  121. commands:
  122. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  123. when:
  124. matrix:
  125. DB: sqlite
  126. PHP: 7.1
  127. mysql-php5.6:
  128. image: nextcloudci/php5.6:php5.6-2
  129. commands:
  130. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  131. when:
  132. matrix:
  133. DB: mysql
  134. PHP: 5.6
  135. postgres-php5.6:
  136. image: nextcloudci/php5.6:php5.6-2
  137. commands:
  138. - sleep 10 # gives the database enough time to initialize
  139. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  140. when:
  141. matrix:
  142. DB: postgres
  143. PHP: 5.6
  144. integration:
  145. image: nextcloudci/php7.0:php7.0-2
  146. commands:
  147. - ./occ maintenance:install --admin-pass=admin
  148. - cd build/integration
  149. - ./run.sh
  150. when:
  151. matrix:
  152. TESTS: integration
  153. matrix:
  154. include:
  155. - TESTS: integration
  156. - TESTS: jsunit
  157. - TESTS: check-autoloader
  158. - TESTS: app-check-code
  159. - TESTS: syntax-php5.6
  160. - TESTS: syntax-php7.0
  161. - TESTS: litmus-v1
  162. - TESTS: litmus-v2
  163. - TESTS: caldavtester
  164. - TESTS: carddavtester
  165. - DB: NODB
  166. PHP: 5.6
  167. - DB: NODB
  168. PHP: 7.0
  169. - DB: NODB
  170. PHP: 7.1
  171. - DB: sqlite
  172. PHP: 5.6
  173. - DB: sqlite
  174. PHP: 7.0
  175. - DB: sqlite
  176. PHP: 7.1
  177. - DB: mysql
  178. PHP: 5.6
  179. - DB: postgres
  180. PHP: 5.6
  181. services:
  182. cache:
  183. image: redis
  184. postgres:
  185. image: postgres
  186. environment:
  187. - POSTGRES_USER=oc_autotest
  188. - POSTGRES_PASSWORD=oc_autotest
  189. when:
  190. matrix:
  191. DB: postgres
  192. mysql:
  193. image: mysql
  194. environment:
  195. - MYSQL_ROOT_PASSWORD=owncloud
  196. - MYSQL_USER=oc_autotest
  197. - MYSQL_PASSWORD=owncloud
  198. - MYSQL_DATABASE=oc_autotest
  199. when:
  200. matrix:
  201. DB: mysql