.drone.yml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. kind: pipeline
  2. name: qt-5.7
  3. steps:
  4. - name: build and test
  5. image: nextcloudci/client-5.7:client-5.7-4
  6. commands:
  7. # Install QtKeyChain
  8. - /bin/bash -c "
  9. source /opt/qt57/bin/qt57-env.sh &&
  10. cd /tmp &&
  11. git clone https://github.com/frankosterfeld/qtkeychain.git &&
  12. cd qtkeychain &&
  13. git checkout v0.9.1 &&
  14. mkdir build &&
  15. cd build &&
  16. cmake ../ &&
  17. make &&
  18. make install"
  19. # Build client
  20. - /bin/bash -c "
  21. source /opt/qt57/bin/qt57-env.sh &&
  22. mkdir build &&
  23. cd build &&
  24. cmake -D NO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
  25. make &&
  26. useradd -m -s /bin/bash test &&
  27. chown -R test:test . &&
  28. su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
  29. trigger:
  30. branch:
  31. - master
  32. event:
  33. - pull_request
  34. - push
  35. ---
  36. kind: pipeline
  37. name: qt-5.8
  38. steps:
  39. - name: build and test
  40. image: nextcloudci/client-5.8:client-5.8-4
  41. commands:
  42. # Install QtKeyChain
  43. - /bin/bash -c "
  44. source /opt/qt58/bin/qt58-env.sh &&
  45. cd /tmp &&
  46. git clone https://github.com/frankosterfeld/qtkeychain.git &&
  47. cd qtkeychain &&
  48. git checkout v0.9.1 &&
  49. mkdir build &&
  50. cd build &&
  51. cmake ../ &&
  52. make &&
  53. make install"
  54. # Build client
  55. - /bin/bash -c "
  56. source /opt/qt58/bin/qt58-env.sh &&
  57. mkdir build &&
  58. cd build &&
  59. cmake -D NO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
  60. make &&
  61. useradd -m -s /bin/bash test &&
  62. chown -R test:test . &&
  63. su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
  64. trigger:
  65. branch:
  66. - master
  67. event:
  68. - pull_request
  69. - push
  70. ---
  71. kind: pipeline
  72. name: qt-5.9
  73. steps:
  74. - name: build and test
  75. image: nextcloudci/client-5.9:client-5.9-5
  76. commands:
  77. # Install QtKeyChain
  78. - /bin/bash -c "
  79. source /opt/qt59/bin/qt59-env.sh &&
  80. cd /tmp &&
  81. git clone https://github.com/frankosterfeld/qtkeychain.git &&
  82. cd qtkeychain &&
  83. git checkout v0.9.1 &&
  84. mkdir build &&
  85. cd build &&
  86. cmake ../ &&
  87. make &&
  88. make install"
  89. # Build client
  90. - /bin/bash -c "
  91. source /opt/qt59/bin/qt59-env.sh &&
  92. mkdir build &&
  93. cd build &&
  94. cmake -D NO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
  95. make &&
  96. useradd -m -s /bin/bash test &&
  97. chown -R test:test . &&
  98. su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
  99. trigger:
  100. branch:
  101. - master
  102. event:
  103. - pull_request
  104. - push
  105. ---
  106. kind: pipeline
  107. name: qt-5.10
  108. steps:
  109. - name: build and test
  110. image: nextcloudci/client-5.10:client-5.10-3
  111. commands:
  112. # Install QtKeyChain
  113. - /bin/bash -c "
  114. export CC=gcc-7 &&
  115. export CXX=g++-7 &&
  116. source /opt/qt510/bin/qt510-env.sh &&
  117. cd /tmp &&
  118. git clone https://github.com/frankosterfeld/qtkeychain.git &&
  119. cd qtkeychain &&
  120. git checkout v0.9.1 &&
  121. mkdir build &&
  122. cd build &&
  123. cmake ../ &&
  124. make &&
  125. make install"
  126. # Build client
  127. - /bin/bash -c "
  128. export CC=gcc-7 &&
  129. export CXX=g++-7 &&
  130. source /opt/qt510/bin/qt510-env.sh &&
  131. mkdir build &&
  132. cd build &&
  133. cmake -D NO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
  134. make &&
  135. useradd -m -s /bin/bash test &&
  136. chown -R test:test . &&
  137. su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
  138. trigger:
  139. branch:
  140. - master
  141. event:
  142. - pull_request
  143. - push
  144. ---
  145. kind: pipeline
  146. name: qt-5.11
  147. steps:
  148. - name: build and test
  149. image: nextcloudci/client-5.11:client-5.11-3
  150. commands:
  151. # Install QtKeyChain
  152. - /bin/bash -c "
  153. export CC=gcc-7 &&
  154. export CXX=g++-7 &&
  155. source /opt/qt511/bin/qt511-env.sh &&
  156. cd /tmp &&
  157. git clone https://github.com/frankosterfeld/qtkeychain.git &&
  158. cd qtkeychain &&
  159. git checkout v0.9.1 &&
  160. mkdir build &&
  161. cd build &&
  162. cmake ../ &&
  163. make &&
  164. make install"
  165. # Build client
  166. - /bin/bash -c "
  167. export CC=gcc-7 &&
  168. export CXX=g++-7 &&
  169. source /opt/qt511/bin/qt511-env.sh &&
  170. mkdir build &&
  171. cd build &&
  172. cmake -D NO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
  173. make &&
  174. useradd -m -s /bin/bash test &&
  175. chown -R test:test . &&
  176. su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
  177. trigger:
  178. branch:
  179. - master
  180. event:
  181. - pull_request
  182. - push
  183. ---
  184. kind: pipeline
  185. name: qt-5.11-clang
  186. steps:
  187. - name: build and test
  188. image: nextcloudci/client-5.11:client-5.11-3
  189. commands:
  190. # Install QtKeyChain
  191. - /bin/bash -c "
  192. export CC=clang-6.0 &&
  193. export CXX=clang++-6.0 &&
  194. source /opt/qt511/bin/qt511-env.sh &&
  195. cd /tmp &&
  196. git clone https://github.com/frankosterfeld/qtkeychain.git &&
  197. cd qtkeychain &&
  198. git checkout v0.9.1 &&
  199. mkdir build &&
  200. cd build &&
  201. cmake ../ &&
  202. make &&
  203. make install"
  204. # Build client
  205. - /bin/bash -c "
  206. export CC=clang-6.0 &&
  207. export CXX=clang++-6.0 &&
  208. source /opt/qt511/bin/qt511-env.sh &&
  209. mkdir build &&
  210. cd build &&
  211. cmake -D NO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
  212. make &&
  213. useradd -m -s /bin/bash test &&
  214. chown -R test:test . &&
  215. su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
  216. trigger:
  217. branch:
  218. - master
  219. event:
  220. - pull_request
  221. - push
  222. ---
  223. kind: pipeline
  224. name: qt-5.12
  225. steps:
  226. - name: build and test
  227. image: nextcloudci/client-5.12:client-5.12-5
  228. commands:
  229. # Install QtKeyChain
  230. - /bin/bash -c "
  231. export CC=gcc-7 &&
  232. export CXX=g++-7 &&
  233. export QT_BASE_DIR=/opt/qt5.12.5 &&
  234. export QTDIR=\$QT_BASE_DIR &&
  235. export PATH=\$QT_BASE_DIR/bin:\$PATH &&
  236. export LD_LIBRARY_PATH=\$QT_BASE_DIR/lib/x86_64-linux-gnu:\$QT_BASE_DIR/lib:/usr/local/lib:\$LD_LIBRARY_PATH &&
  237. export PKG_CONFIG_PATH=\$QT_BASE_DIR/lib/pkgconfig:\$PKG_CONFIG_PATH &&
  238. cd /tmp &&
  239. git clone https://github.com/frankosterfeld/qtkeychain.git &&
  240. cd qtkeychain &&
  241. git checkout v0.9.1 &&
  242. mkdir build &&
  243. cd build &&
  244. cmake ../ &&
  245. make &&
  246. make install"
  247. # Build client
  248. - /bin/bash -c "
  249. export CC=gcc-7 &&
  250. export CXX=g++-7 &&
  251. export QT_BASE_DIR=/opt/qt5.12.5 &&
  252. export QTDIR=\$QT_BASE_DIR &&
  253. export PATH=\$QT_BASE_DIR/bin:\$PATH &&
  254. export LD_LIBRARY_PATH=\$QT_BASE_DIR/lib/x86_64-linux-gnu:\$QT_BASE_DIR/lib:/usr/local/lib:\$LD_LIBRARY_PATH &&
  255. export PKG_CONFIG_PATH=\$QT_BASE_DIR/lib/pkgconfig:\$PKG_CONFIG_PATH &&
  256. mkdir build &&
  257. cd build &&
  258. cmake -D NO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
  259. make &&
  260. useradd -m -s /bin/bash test &&
  261. chown -R test:test . &&
  262. su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
  263. trigger:
  264. branch:
  265. - master
  266. event:
  267. - pull_request
  268. - push
  269. ---
  270. kind: pipeline
  271. name: qt-5.12-clang
  272. steps:
  273. - name: build and test
  274. image: nextcloudci/client-5.12:client-5.12-5
  275. commands:
  276. # Install QtKeyChain
  277. - /bin/bash -c "
  278. export CC=clang-6.0 &&
  279. export CXX=clang++-6.0 &&
  280. export QT_BASE_DIR=/opt/qt5.12.5 &&
  281. export QTDIR=\$QT_BASE_DIR &&
  282. export PATH=\$QT_BASE_DIR/bin:\$PATH &&
  283. export LD_LIBRARY_PATH=\$QT_BASE_DIR/lib/x86_64-linux-gnu:\$QT_BASE_DIR/lib:/usr/local/lib:\$LD_LIBRARY_PATH &&
  284. export PKG_CONFIG_PATH=\$QT_BASE_DIR/lib/pkgconfig:\$PKG_CONFIG_PATH &&
  285. cd /tmp &&
  286. git clone https://github.com/frankosterfeld/qtkeychain.git &&
  287. cd qtkeychain &&
  288. git checkout v0.9.1 &&
  289. mkdir build &&
  290. cd build &&
  291. cmake ../ &&
  292. make &&
  293. make install"
  294. # Build client
  295. - /bin/bash -c "
  296. export CC=clang-6.0 &&
  297. export CXX=clang++-6.0 &&
  298. export QT_BASE_DIR=/opt/qt5.12.5 &&
  299. export QTDIR=\$QT_BASE_DIR &&
  300. export PATH=\$QT_BASE_DIR/bin:\$PATH &&
  301. export LD_LIBRARY_PATH=\$QT_BASE_DIR/lib/x86_64-linux-gnu:\$QT_BASE_DIR/lib:/usr/local/lib:\$LD_LIBRARY_PATH &&
  302. export PKG_CONFIG_PATH=\$QT_BASE_DIR/lib/pkgconfig:\$PKG_CONFIG_PATH &&
  303. mkdir build &&
  304. cd build &&
  305. cmake -D NO_SHIBBOLETH=1 -DBUILD_UPDATER=ON -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=1 -DSANITIZE_ADDRESS=ON ../ &&
  306. make &&
  307. useradd -m -s /bin/bash test &&
  308. chown -R test:test . &&
  309. su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
  310. trigger:
  311. branch:
  312. - master
  313. event:
  314. - pull_request
  315. - push
  316. ---
  317. kind: pipeline
  318. name: AppImage
  319. steps:
  320. - name: build
  321. image: nextcloudci/client-5.12:client-5.12-5
  322. commands:
  323. - /bin/bash -c "./admin/linux/build-appimage.sh"
  324. - /bin/bash -c "./admin/linux/upload-appimage.sh"
  325. trigger:
  326. branch:
  327. - master
  328. event:
  329. - pull_request
  330. - push
  331. ---
  332. kind: pipeline
  333. name: Debian
  334. steps:
  335. - name: build
  336. image: nextcloudci/client-debian-ci:client-debian-ci-2
  337. commands:
  338. - /bin/bash -c "./admin/linux/debian/drone-build.sh"
  339. environment:
  340. DEBIAN_SECRET_KEY:
  341. from_secret: DEBIAN_SECRET_KEY
  342. DEBIAN_SECRET_IV:
  343. from_secret: DEBIAN_SECRET_IV
  344. trigger:
  345. branch:
  346. - master
  347. event:
  348. - pull_request
  349. - push
  350. ---
  351. kind: pipeline
  352. name: Documentation
  353. steps:
  354. - name: build
  355. image: nextcloudci/documentation:documentation-5
  356. commands:
  357. - cd doc
  358. - make html
  359. trigger:
  360. branch:
  361. - master
  362. event:
  363. - pull_request
  364. - push