.drone.yml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. clone:
  2. git:
  3. image: plugins/git
  4. tags: true
  5. depth: 1
  6. pipeline:
  7. qt-5.7:
  8. image: nextcloudci/client-5.7:client-5.7-4
  9. commands:
  10. # Install QtKeyChain
  11. - /bin/bash -c "
  12. source /opt/qt57/bin/qt57-env.sh &&
  13. cd /tmp &&
  14. git clone https://github.com/frankosterfeld/qtkeychain.git &&
  15. cd qtkeychain &&
  16. git checkout v0.9.1 &&
  17. mkdir build &&
  18. cd build &&
  19. cmake ../ &&
  20. make &&
  21. make install"
  22. # Build client
  23. - /bin/bash -c "
  24. source /opt/qt57/bin/qt57-env.sh &&
  25. mkdir build &&
  26. cd build &&
  27. cmake -D NO_SHIBBOLETH=1 -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 ../ &&
  28. make &&
  29. useradd -m -s /bin/bash test &&
  30. chown -R test:test . &&
  31. su -c 'ctest --output-on-failure' test"
  32. when:
  33. matrix:
  34. TESTS: qt-5.7
  35. qt-5.8:
  36. image: nextcloudci/client-5.8:client-5.8-4
  37. commands:
  38. # Install QtKeyChain
  39. - /bin/bash -c "
  40. source /opt/qt58/bin/qt58-env.sh &&
  41. cd /tmp &&
  42. git clone https://github.com/frankosterfeld/qtkeychain.git &&
  43. cd qtkeychain &&
  44. git checkout v0.9.1 &&
  45. mkdir build &&
  46. cd build &&
  47. cmake ../ &&
  48. make &&
  49. make install"
  50. # Build client
  51. - /bin/bash -c "
  52. source /opt/qt58/bin/qt58-env.sh &&
  53. mkdir build &&
  54. cd build &&
  55. cmake -D NO_SHIBBOLETH=1 -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 ../ &&
  56. make &&
  57. useradd -m -s /bin/bash test &&
  58. chown -R test:test . &&
  59. su -c 'ctest --output-on-failure' test"
  60. when:
  61. matrix:
  62. TESTS: qt-5.8
  63. qt-5.9:
  64. image: nextcloudci/client-5.9:client-5.9-5
  65. commands:
  66. # Install QtKeyChain
  67. - /bin/bash -c "
  68. source /opt/qt59/bin/qt59-env.sh &&
  69. cd /tmp &&
  70. git clone https://github.com/frankosterfeld/qtkeychain.git &&
  71. cd qtkeychain &&
  72. git checkout v0.9.1 &&
  73. mkdir build &&
  74. cd build &&
  75. cmake ../ &&
  76. make &&
  77. make install"
  78. # Build client
  79. - /bin/bash -c "
  80. source /opt/qt59/bin/qt59-env.sh &&
  81. mkdir build &&
  82. cd build &&
  83. cmake -D NO_SHIBBOLETH=1 -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 ../ &&
  84. make &&
  85. useradd -m -s /bin/bash test &&
  86. chown -R test:test . &&
  87. su -c 'ctest --output-on-failure' test"
  88. when:
  89. matrix:
  90. TESTS: qt-5.9
  91. qt-5.10:
  92. image: nextcloudci/client-5.10:client-5.10-3
  93. commands:
  94. # Install QtKeyChain
  95. - /bin/bash -c "
  96. export CC=gcc-7 &&
  97. export CXX=g++-7 &&
  98. source /opt/qt510/bin/qt510-env.sh &&
  99. cd /tmp &&
  100. git clone https://github.com/frankosterfeld/qtkeychain.git &&
  101. cd qtkeychain &&
  102. git checkout v0.9.1 &&
  103. mkdir build &&
  104. cd build &&
  105. cmake ../ &&
  106. make &&
  107. make install"
  108. # Build client
  109. - /bin/bash -c "
  110. export CC=gcc-7 &&
  111. export CXX=g++-7 &&
  112. source /opt/qt510/bin/qt510-env.sh &&
  113. mkdir build &&
  114. cd build &&
  115. cmake -D NO_SHIBBOLETH=1 -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 ../ &&
  116. make &&
  117. useradd -m -s /bin/bash test &&
  118. chown -R test:test . &&
  119. su -c 'ctest --output-on-failure' test"
  120. when:
  121. matrix:
  122. TESTS: qt-5.10
  123. qt-5.11:
  124. image: nextcloudci/client-5.11:client-5.11-3
  125. commands:
  126. # Install QtKeyChain
  127. - /bin/bash -c "
  128. export CC=gcc-7 &&
  129. export CXX=g++-7 &&
  130. source /opt/qt511/bin/qt511-env.sh &&
  131. cd /tmp &&
  132. git clone https://github.com/frankosterfeld/qtkeychain.git &&
  133. cd qtkeychain &&
  134. git checkout v0.9.1 &&
  135. mkdir build &&
  136. cd build &&
  137. cmake ../ &&
  138. make &&
  139. make install"
  140. # Build client
  141. - /bin/bash -c "
  142. export CC=gcc-7 &&
  143. export CXX=g++-7 &&
  144. source /opt/qt511/bin/qt511-env.sh &&
  145. mkdir build &&
  146. cd build &&
  147. cmake -D NO_SHIBBOLETH=1 -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 ../ &&
  148. make &&
  149. useradd -m -s /bin/bash test &&
  150. chown -R test:test . &&
  151. su -c 'ctest --output-on-failure' test"
  152. when:
  153. matrix:
  154. TESTS: qt-5.11
  155. qt-5.11-clang:
  156. image: nextcloudci/client-5.11:client-5.11-3
  157. commands:
  158. # Install QtKeyChain
  159. - /bin/bash -c "
  160. export CC=clang-6.0 &&
  161. export CXX=clang++-6.0 &&
  162. source /opt/qt511/bin/qt511-env.sh &&
  163. cd /tmp &&
  164. git clone https://github.com/frankosterfeld/qtkeychain.git &&
  165. cd qtkeychain &&
  166. git checkout v0.9.1 &&
  167. mkdir build &&
  168. cd build &&
  169. cmake ../ &&
  170. make &&
  171. make install"
  172. # Build client
  173. - /bin/bash -c "
  174. export CC=clang-6.0 &&
  175. export CXX=clang++-6.0 &&
  176. source /opt/qt511/bin/qt511-env.sh &&
  177. mkdir build &&
  178. cd build &&
  179. cmake -D NO_SHIBBOLETH=1 -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 ../ &&
  180. make &&
  181. useradd -m -s /bin/bash test &&
  182. chown -R test:test . &&
  183. su -c 'ctest --output-on-failure' test"
  184. when:
  185. matrix:
  186. TESTS: qt-5.11-clang
  187. AppImage:
  188. image: nextcloudci/client-5.11:client-5.11-3
  189. commands:
  190. - /bin/bash -c "./admin/linux/build-appimage.sh"
  191. when:
  192. matrix:
  193. BUILD: AppImage
  194. Debian:
  195. image: nextcloudci/client-debian-ci:client-debian-ci-2
  196. commands:
  197. - /bin/bash -c "./admin/linux/debian/drone-build.sh"
  198. secrets: [ DEBIAN_SECRET_KEY, DEBIAN_SECRET_IV ]
  199. when:
  200. matrix:
  201. BUILD: Debian
  202. documentation:
  203. image: nextcloudci/documentation:documentation-5
  204. commands:
  205. - cd doc
  206. - make html
  207. when:
  208. matrix:
  209. TESTS: documentation
  210. matrix:
  211. include:
  212. - TESTS: qt-5.7
  213. - TESTS: qt-5.8
  214. - TESTS: qt-5.9
  215. - TESTS: qt-5.10
  216. - TESTS: qt-5.11
  217. - TESTS: qt-5.11-clang
  218. - BUILD: AppImage
  219. - BUILD: Debian
  220. - TESTS: documentation
  221. branches: [ master, 2.* ]