Guest User

Untitled

a guest
Oct 27th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.24 KB | None | 0 0
  1. workspace:
  2. base: /drone
  3. path: src
  4.  
  5. clone:
  6. git:
  7. image: plugins/git
  8. depth: 1
  9.  
  10. pipeline:
  11. restore:
  12. image: plugins/s3-cache:1
  13. pull: true
  14. secrets: [ cache_s3_endpoint, cache_s3_access_key, cache_s3_secret_key ]
  15. restore: true
  16. when:
  17. local: false
  18. event: [push, pull_request]
  19. branch: [master, stable10, stable9.1, stable9]
  20.  
  21. composer:
  22. image: owncloudci/php:${PHP_VERSION}
  23. pull: true
  24. commands:
  25. - ./tests/drone/composer-install.sh
  26. # when:
  27. # event: [push, pull_request]
  28. # branch: [master, stable10, stable9.1, stable9]
  29.  
  30.  
  31. npm:
  32. image: owncloudci/php:${PHP_VERSION}
  33. pull: true
  34. commands:
  35. - ./tests/drone/npm-install.sh
  36. # when:
  37. # event: [push, pull_request]
  38. # branch: [master, stable10, stable9.1, stable9]
  39.  
  40. bower:
  41. image: owncloudci/php:${PHP_VERSION}
  42. pull: true
  43. commands:
  44. - ./tests/drone/bower-install.sh
  45. # when:
  46. # event: [push, pull_request]
  47. # branch: [master, stable10, stable9.1, stable9]
  48.  
  49. rebuild:
  50. image: plugins/s3-cache:1
  51. pull: true
  52. secrets: [ cache_s3_endpoint, cache_s3_access_key, cache_s3_secret_key ]
  53. rebuild: true
  54. mount:
  55. - lib/composer
  56. - core/vendor
  57. - build/node_modules
  58. when:
  59. local: false
  60. event: [ push ]
  61. branch: [ master, stable10, stable9.1, stable9 ]
  62.  
  63. flush:
  64. image: plugins/s3-cache:1
  65. pull: true
  66. secrets: [ cache_s3_endpoint, cache_s3_access_key, cache_s3_secret_key ]
  67. flush: true
  68. flush_age: 14
  69. when:
  70. local: false
  71. event: [push]
  72. branch: [master, stable10, stable9.1, stable9]
  73.  
  74. coverage:
  75. image: owncloudci/php:${PHP_VERSION}
  76. pull: true
  77. group: test
  78. environment:
  79. - PHP_VERSION=${PHP_VERSION}
  80. - DB_TYPE=${DB_TYPE}
  81. commands:
  82. - ./tests/drone/test-coverage.sh
  83. when:
  84. event: [push, pull_request]
  85. branch: [master, stable10, stable9.1, stable9]
  86. matrix:
  87. TEST_SUITE: coverage
  88.  
  89. codecov:
  90. image: plugins/codecov:1
  91. secrets: [codecov_token]
  92. pull: true
  93. files:
  94. - tests/autotest-clover-${DB_TYPE}.xml
  95. when:
  96. event: [push, pull_request]
  97. branch: [master, stable10, stable9.1, stable9]
  98. matrix:
  99. TEST_SUITE: coverage
  100.  
  101. javascript:
  102. image: owncloudci/php:${PHP_VERSION}
  103. pull: true
  104. group: test
  105. environment:
  106. - PHP_VERSION=${PHP_VERSION}
  107. - DB_TYPE=${DB_TYPE}
  108. commands:
  109. - ./tests/drone/test-javascript.sh
  110. # when:
  111. #event: [push, pull_request]
  112. #branch: [master, stable10, stable9.1]
  113. # matrix:
  114. # TEST_SUITE: phpunit
  115.  
  116. services:
  117. mariadb:
  118. image: mariadb:10.3
  119. environment:
  120. - MYSQL_USER=owncloud
  121. - MYSQL_PASSWORD=owncloud
  122. - MYSQL_DATABASE=owncloud
  123. - MYSQL_ROOT_PASSWORD=owncloud
  124. when:
  125. matrix:
  126. DB_TYPE: mariadb
  127.  
  128. mysql:
  129. image: mysql:5.7
  130. environment:
  131. - MYSQL_USER=owncloud
  132. - MYSQL_PASSWORD=owncloud
  133. - MYSQL_DATABASE=owncloud
  134. - MYSQL_ROOT_PASSWORD=owncloud
  135. when:
  136. matrix:
  137. DB_TYPE: mysql
  138.  
  139. postgres:
  140. image: postgres:9.6
  141. environment:
  142. - POSTGRES_USER=owncloud
  143. - POSTGRES_PASSWORD=owncloud
  144. - POSTGRES_DB=owncloud
  145. when:
  146. matrix:
  147. DB_TYPE: postgres
  148.  
  149. # oracle:
  150. # image: oracle:x.x
  151. # environment:
  152. # - ORACLE_USER=owncloud
  153. # - ORACLE_PASSWORD=owncloud
  154. # - ORACLE_DB=owncloud
  155. # when:
  156. # matrix:
  157. # DB_TYPE: oracle
  158.  
  159. matrix:
  160. include:
  161. # # PHP 5.6
  162. # - PHP_VERSION: 5.6
  163. # DB_TYPE: sqlite
  164. # TEST_SUITE: phpunit
  165. # - PHP_VERSION: 5.6
  166. # DB_TYPE: mariadb
  167. # TEST_SUITE: phpunit
  168. # - PHP_VERSION: 5.6
  169. # DB_TYPE: mysql
  170. # TEST_SUITE: phpunit
  171. # - PHP_VERSION: 5.6
  172. # DB_TYPE: postgres
  173. # TEST_SUITE: phpunit
  174. # # - PHP_VERSION: 5.6
  175. # # DB_TYPE: oracle
  176. # # TEST_SUITE: phpunit
  177. #
  178. # # PHP 7.0
  179. # - PHP_VERSION: 7.0
  180. # DB_TYPE: sqlite
  181. # TEST_SUITE: phpunit
  182. # - PHP_VERSION: 7.0
  183. # DB_TYPE: mariadb
  184. # TEST_SUITE: phpunit
  185. # - PHP_VERSION: 7.0
  186. # DB_TYPE: mysql
  187. # TEST_SUITE: phpunit
  188. # - PHP_VERSION: 7.0
  189. # DB_TYPE: postgres
  190. # TEST_SUITE: phpunit
  191. # # - PHP_VERSION: 7.0
  192. # # DB_TYPE: oracle
  193. # # TEST_SUITE: phpunit
  194. #
  195. # # PHP 7.1
  196. # - PHP_VERSION: 7.1
  197. # DB_TYPE: sqlite
  198. # TEST_SUITE: phpunit
  199. # - PHP_VERSION: 7.1
  200. # DB_TYPE: mariadb
  201. # TEST_SUITE: phpunit
  202. # - PHP_VERSION: 7.1
  203. # DB_TYPE: mysql
  204. # TEST_SUITE: phpunit
  205. # - PHP_VERSION: 7.1
  206. # DB_TYPE: postgres
  207. # TEST_SUITE: phpunit
  208. # # - PHP_VERSION: 7.1
  209. # # DB_TYPE: oracle
  210. # # TEST_SUITE: phpunit
  211. #
  212. # # PHP 7.2
  213. # - PHP_VERSION: 7.2
  214. # DB_TYPE: sqlite
  215. # TEST_SUITE: phpunit
  216. # - PHP_VERSION: 7.2
  217. # DB_TYPE: mariadb
  218. # TEST_SUITE: phpunit
  219. # - PHP_VERSION: 7.2
  220. # DB_TYPE: mysql
  221. # TEST_SUITE: phpunit
  222. # - PHP_VERSION: 7.2
  223. # DB_TYPE: postgres
  224. # TEST_SUITE: phpunit
  225. # # - PHP_VERSION: 7.2
  226. # # DB_TYPE: oracle
  227. # # TEST_SUITE: phpunit
  228. #
  229. # # Integration
  230. # - PHP_VERSION: 7.1
  231. # DB_TYPE: sqlite
  232. # TEST_SUITE: integration
  233.  
  234. # Code Coverage Computation
  235. - PHP_VERSION: 7.1
  236. DB_TYPE: sqlite
  237. TEST_SUITE: coverage
  238.  
  239. - PHP_VERSION: 7.1
  240. DB_TYPE: sqlite
  241. TEST_SUITE: phpunit
Add Comment
Please, Sign In to add comment