.drone.yml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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. when:
  10. matrix:
  11. TESTS: jsunit
  12. syntax-php5.4:
  13. image: nextcloudci/php5.4:php5.4-5
  14. commands:
  15. - composer install
  16. - vendor/bin/parallel-lint --exclude vendor/jakub-onderka/ --exclude 3rdparty/symfony/polyfill-php70/Resources/stubs/ --exclude 3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/ --exclude 3rdparty/paragonie/random_compat/lib/ --exclude vendor/composer/autoload_static.php --exclude 3rdparty/composer/autoload_static.php .
  17. when:
  18. matrix:
  19. TESTS: syntax-php5.4
  20. syntax-php5.5:
  21. image: nextcloudci/php5.5:php5.5-5
  22. commands:
  23. - composer install
  24. - vendor/bin/parallel-lint --exclude vendor/jakub-onderka/ --exclude 3rdparty/symfony/polyfill-php70/Resources/stubs/ --exclude 3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/ --exclude 3rdparty/paragonie/random_compat/lib/ --exclude vendor/composer/autoload_static.php --exclude 3rdparty/composer/autoload_static.php .
  25. when:
  26. matrix:
  27. TESTS: syntax-php5.5
  28. syntax-php5.6:
  29. image: nextcloudci/php5.6:php5.6-7
  30. commands:
  31. - composer install
  32. - vendor/bin/parallel-lint --exclude vendor/jakub-onderka/ --exclude 3rdparty/symfony/polyfill-php70/Resources/stubs/ --exclude 3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/ --exclude 3rdparty/paragonie/random_compat/lib/ --exclude vendor/composer/autoload_static.php --exclude 3rdparty/composer/autoload_static.php .
  33. when:
  34. matrix:
  35. TESTS: syntax-php5.6
  36. syntax-php7.0:
  37. image: nextcloudci/php7.0:php7.0-7
  38. commands:
  39. - composer install
  40. - vendor/bin/parallel-lint --exclude vendor/jakub-onderka/ --exclude 3rdparty/symfony/polyfill-php70/Resources/stubs/ --exclude 3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/ --exclude 3rdparty/paragonie/random_compat/lib/ --exclude vendor/composer/autoload_static.php --exclude 3rdparty/composer/autoload_static.php .
  41. when:
  42. matrix:
  43. TESTS: syntax-php7.0
  44. litmus-v1:
  45. image: nextcloudci/litmus-php7.0:litmus-php7.0-4
  46. commands:
  47. - bash tests/travis/install.sh sqlite
  48. - bash apps/dav/tests/travis/litmus-v1/script.sh
  49. when:
  50. matrix:
  51. TESTS: litmus-v1
  52. litmus-v2:
  53. image: nextcloudci/litmus-php7.0:litmus-php7.0-4
  54. commands:
  55. - bash tests/travis/install.sh sqlite
  56. - bash apps/dav/tests/travis/litmus-v2/script.sh
  57. when:
  58. matrix:
  59. TESTS: litmus-v2
  60. caldavtester:
  61. image: nextcloudci/litmus-php7.0:litmus-php7.0-4
  62. commands:
  63. - bash tests/travis/install.sh sqlite
  64. - bash apps/dav/tests/travis/caldav/install.sh
  65. - bash apps/dav/tests/travis/caldav/script.sh
  66. when:
  67. matrix:
  68. TESTS: caldavtester
  69. carddavtester:
  70. image: nextcloudci/litmus-php7.0:litmus-php7.0-4
  71. commands:
  72. - bash tests/travis/install.sh sqlite
  73. - bash apps/dav/tests/travis/carddav/install.sh
  74. - bash apps/dav/tests/travis/carddav/script.sh
  75. when:
  76. matrix:
  77. TESTS: carddavtester
  78. sqlite-php5.4:
  79. image: nextcloudci/php5.4:php5.4-5
  80. commands:
  81. - ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database sqlite --database-pass=''
  82. - NOCOVERAGE=true ./autotest.sh sqlite
  83. when:
  84. matrix:
  85. DB: sqlite
  86. PHP: 5.4
  87. sqlite-php5.5:
  88. image: nextcloudci/php5.5:php5.5-5
  89. commands:
  90. - ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database sqlite --database-pass=''
  91. - NOCOVERAGE=true ./autotest.sh sqlite
  92. when:
  93. matrix:
  94. DB: sqlite
  95. PHP: 5.5
  96. sqlite:
  97. image: nextcloudci/php5.6:php5.6-7
  98. commands:
  99. - ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database sqlite --database-pass=''
  100. - ./autotest.sh sqlite
  101. when:
  102. matrix:
  103. DB: sqlite
  104. PHP: 5.6
  105. postgres:
  106. image: nextcloudci/php5.6:php5.6-7
  107. commands:
  108. - sleep 10 # gives the database enough time to initialize
  109. - ./autotest.sh pgsql
  110. when:
  111. matrix:
  112. DB: postgres
  113. PHP: 5.6
  114. integration:
  115. image: nextcloudci/php5.6:php5.6-7
  116. commands:
  117. - ./occ maintenance:install --admin-pass=admin
  118. - cd build/integration
  119. - ./run.sh
  120. when:
  121. matrix:
  122. TESTS: integration
  123. matrix:
  124. include:
  125. - TESTS: integration
  126. - TESTS: jsunit
  127. - TESTS: syntax-php5.4
  128. - TESTS: syntax-php5.5
  129. - TESTS: syntax-php5.6
  130. - TESTS: syntax-php7.0
  131. - TESTS: litmus-v1
  132. - TESTS: litmus-v2
  133. - TESTS: caldavtester
  134. - TESTS: carddavtester
  135. - DB: sqlite
  136. PHP: 5.4
  137. - DB: sqlite
  138. PHP: 5.5
  139. - DB: sqlite
  140. PHP: 5.6
  141. - DB: postgres
  142. PHP: 5.6
  143. services:
  144. cache:
  145. image: redis
  146. postgres:
  147. image: postgres
  148. environment:
  149. - POSTGRES_USER=oc_autotest
  150. - POSTGRES_PASSWORD=oc_autotest
  151. when:
  152. matrix:
  153. DB: postgres