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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. nodb-php5.6:
  13. image: nextcloudci/php5.6:php5.6-2
  14. commands:
  15. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  16. when:
  17. matrix:
  18. DB: NODB
  19. PHP: 5.6
  20. nodb-php7.0:
  21. image: nextcloudci/php7.0:php7.0-2
  22. commands:
  23. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  24. when:
  25. matrix:
  26. DB: NODB
  27. PHP: "7.0"
  28. nodb-php7.1:
  29. image: nextcloudci/php7.1:php7.1-3
  30. commands:
  31. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  32. when:
  33. matrix:
  34. DB: NODB
  35. PHP: 7.1
  36. sqlite-php5.6:
  37. image: nextcloudci/php5.6:php5.6-2
  38. commands:
  39. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  40. when:
  41. matrix:
  42. DB: sqlite
  43. PHP: 5.6
  44. sqlite-php7.0:
  45. image: nextcloudci/php7.0:php7.0-2
  46. commands:
  47. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  48. when:
  49. matrix:
  50. DB: sqlite
  51. PHP: "7.0"
  52. sqlite-php7.1:
  53. image: nextcloudci/php7.1:php7.1-3
  54. commands:
  55. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  56. when:
  57. matrix:
  58. DB: sqlite
  59. PHP: 7.1
  60. mysql-php5.6:
  61. image: nextcloudci/php5.6:php5.6-2
  62. commands:
  63. - sleep 15 # gives the database enough time to initialize
  64. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  65. when:
  66. matrix:
  67. DB: mysql
  68. PHP: 5.6
  69. postgres-php5.6:
  70. image: nextcloudci/php5.6:php5.6-2
  71. commands:
  72. - sleep 10 # gives the database enough time to initialize
  73. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  74. when:
  75. matrix:
  76. DB: postgres
  77. PHP: 5.6
  78. integration:
  79. image: nextcloudci/php7.0:php7.0-2
  80. commands:
  81. - ./occ maintenance:install --admin-pass=admin
  82. - cd build/integration
  83. - ./run.sh
  84. when:
  85. matrix:
  86. TESTS: integration
  87. matrix:
  88. include:
  89. - TESTS: integration
  90. - TESTS: jsunit
  91. - DB: NODB
  92. PHP: 5.6
  93. - DB: NODB
  94. PHP: 7.0
  95. - DB: NODB
  96. PHP: 7.1
  97. - DB: sqlite
  98. PHP: 5.6
  99. - DB: sqlite
  100. PHP: 7.0
  101. - DB: sqlite
  102. PHP: 7.1
  103. - DB: mysql
  104. PHP: 5.6
  105. - DB: postgres
  106. PHP: 5.6
  107. services:
  108. cache:
  109. image: redis
  110. postgres:
  111. image: postgres
  112. environment:
  113. - POSTGRES_USER=oc_autotest
  114. - POSTGRES_PASSWORD=oc_autotest
  115. when:
  116. matrix:
  117. DB: postgres
  118. mysql:
  119. image: mysql
  120. environment:
  121. - MYSQL_ROOT_PASSWORD=owncloud
  122. - MYSQL_USER=oc_autotest
  123. - MYSQL_PASSWORD=owncloud
  124. - MYSQL_DATABASE=oc_autotest
  125. when:
  126. matrix:
  127. DB: mysql