libravatarserv is a simple libravatar server.
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 7.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. pipeline:
  2. download:
  3. image: plugins/download
  4. pull: true
  5. source: https://schlomp.space/attachments/d85b2444-0b8f-4fa9-a8a0-9659f01059e9
  6. destination: identiconpp.deb
  7. gcc5:
  8. image: debian:stretch-slim
  9. pull: true
  10. when:
  11. event: [push, pull_request]
  12. environment:
  13. - LANG=C.utf8
  14. - CXX=g++-5
  15. - CXXFLAGS=-pipe -O2
  16. commands:
  17. - rm /etc/apt/apt.conf.d/docker-clean
  18. - apt-get update -q
  19. - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
  20. - echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
  21. - apt-get install -qy gnupg
  22. - gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
  23. - gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
  24. - apt-get update -q
  25. - apt-get install -qy -t xenial g++-5
  26. - apt-get install -qy cmake pkg-config
  27. - apt-get install -qy libcrypto++-dev libmagick++-dev libxdg-basedir-dev
  28. - dpkg -i identiconpp.deb
  29. - rm -rf build && mkdir -p build && cd build
  30. - cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  31. - make VERBOSE=1
  32. volumes:
  33. - /var/cache/debian-package-cache:/var/cache/apt/archives
  34. gcc6:
  35. image: debian:stretch-slim
  36. pull: true
  37. environment:
  38. - LANG=C.utf8
  39. - CXX=g++-6
  40. - CXXFLAGS=-pipe -O2
  41. commands:
  42. - rm /etc/apt/apt.conf.d/docker-clean
  43. - apt-get update -q
  44. - apt-get install -qy g++-6 cmake pkg-config
  45. - apt-get install -qy libcrypto++-dev libmagick++-dev libxdg-basedir-dev
  46. - apt-get install -qy dpkg-dev d-shlibs rpm file wget
  47. - gpg --no-tty --import /var/autosign_gpg.key
  48. - dpkg -i identiconpp.deb
  49. - rm -rf build && mkdir -p build && cd build
  50. - cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  51. - make VERBOSE=1
  52. - make install DESTDIR=install
  53. - make package
  54. - cmake -DWITH_DEB=ON ..
  55. - make package
  56. - cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
  57. - make package
  58. - gpg --verbose --detach-sign *.tar.gz
  59. - gpg --verbose --detach-sign *.deb
  60. - gpg --verbose --detach-sign *.rpm
  61. volumes:
  62. - /var/cache/debian-package-cache:/var/cache/apt/archives
  63. - /home/tastytea/misc/autosign_gpg.key:/var/autosign_gpg.key
  64. gcc7:
  65. image: debian:stretch-slim
  66. pull: true
  67. when:
  68. event: [push, pull_request]
  69. environment:
  70. - LANG=C.utf8
  71. - CXX=g++-7
  72. - CXXFLAGS=-pipe -O2
  73. commands:
  74. - rm /etc/apt/apt.conf.d/docker-clean
  75. - apt-get update -q
  76. - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
  77. - echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
  78. - apt-get install -qy gnupg
  79. - gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
  80. - gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
  81. - apt-get update -q
  82. - apt-get install -qy -t xenial g++-7
  83. - apt-get install -qy cmake pkg-config
  84. - apt-get install -qy libcrypto++-dev libmagick++-dev libxdg-basedir-dev
  85. - dpkg -i identiconpp.deb
  86. - rm -rf build && mkdir -p build && cd build
  87. - cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  88. - make VERBOSE=1
  89. volumes:
  90. - /var/cache/debian-package-cache:/var/cache/apt/archives
  91. gcc8:
  92. image: debian:stretch-slim
  93. pull: true
  94. when:
  95. event: [push, pull_request]
  96. environment:
  97. - LANG=C.utf8
  98. - CXX=g++-8
  99. - CXXFLAGS=-pipe -O2
  100. commands:
  101. - rm /etc/apt/apt.conf.d/docker-clean
  102. - apt-get update -q
  103. - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
  104. - echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
  105. - apt-get install -qy gnupg
  106. - gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
  107. - gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
  108. - apt-get update -q
  109. - apt-get install -qy -t xenial g++-8
  110. - apt-get install -qy cmake pkg-config
  111. - apt-get install -qy libcrypto++-dev libmagick++-dev libxdg-basedir-dev
  112. - dpkg -i identiconpp.deb
  113. - rm -rf build && mkdir -p build && cd build
  114. - cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  115. - make VERBOSE=1
  116. volumes:
  117. - /var/cache/debian-package-cache:/var/cache/apt/archives
  118. clang5:
  119. image: debian:stretch-slim
  120. pull: true
  121. when:
  122. event: [push, pull_request]
  123. environment:
  124. - LANG=C.utf8
  125. - CXX=clang++-5.0
  126. - CXXFLAGS=-pipe -O2
  127. commands:
  128. - rm /etc/apt/apt.conf.d/docker-clean
  129. - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
  130. - echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list.d/stretch.list
  131. - apt-get update -q
  132. - apt-get install -qy -t stretch-backports clang-5.0
  133. - apt-get install -qy cmake pkg-config
  134. - apt-get install -qy libcrypto++-dev libmagick++-dev libxdg-basedir-dev
  135. - dpkg -i identiconpp.deb
  136. - rm -rf build && mkdir -p build && cd build
  137. - cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  138. - make VERBOSE=1
  139. volumes:
  140. - /var/cache/debian-package-cache:/var/cache/apt/archives
  141. clang6:
  142. image: debian:stretch-slim
  143. pull: true
  144. when:
  145. event: [push, pull_request]
  146. environment:
  147. - LANG=C.utf8
  148. - CXX=clang++-6.0
  149. - CXXFLAGS=-pipe -O2
  150. commands:
  151. - rm /etc/apt/apt.conf.d/docker-clean
  152. - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
  153. - echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list.d/stretch.list
  154. - apt-get update -q
  155. - apt-get install -qy -t stretch-backports clang-6.0
  156. - apt-get install -qy cmake pkg-config
  157. - apt-get install -qy libcrypto++-dev libmagick++-dev libxdg-basedir-dev
  158. - dpkg -i identiconpp.deb
  159. - rm -rf build && mkdir -p build && cd build
  160. - cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  161. - make VERBOSE=1
  162. volumes:
  163. - /var/cache/debian-package-cache:/var/cache/apt/archives
  164. prepare_release:
  165. image: debian:stretch-slim
  166. pull: true
  167. when:
  168. event: tag
  169. commands:
  170. - cp -v build/libravatarserv-${DRONE_TAG}_x86_64.tar.gz .
  171. - cp -v build/libravatarserv-${DRONE_TAG}_x86_64.tar.gz.sig .
  172. - cp -v build/libravatarserv_${DRONE_TAG}-0_amd64.deb .
  173. - cp -v build/libravatarserv_${DRONE_TAG}-0_amd64.deb.sig .
  174. - cp -v build/libravatarserv-${DRONE_TAG}-0.x86_64.rpm .
  175. - cp -v build/libravatarserv-${DRONE_TAG}-0.x86_64.rpm.sig .
  176. gitea_release:
  177. image: plugins/gitea-release
  178. pull: true
  179. when:
  180. event: tag
  181. base_url: https://schlomp.space
  182. secrets: [ gitea_token ]
  183. title: ${DRONE_TAG}
  184. prerelease: true
  185. files:
  186. - libravatarserv-${DRONE_TAG}_x86_64.tar.gz
  187. - libravatarserv-${DRONE_TAG}_x86_64.tar.gz.sig
  188. - libravatarserv_${DRONE_TAG}-0_amd64.deb
  189. - libravatarserv_${DRONE_TAG}-0_amd64.deb.sig
  190. - libravatarserv-${DRONE_TAG}-0.x86_64.rpm
  191. - libravatarserv-${DRONE_TAG}-0.x86_64.rpm.sig
  192. checksum:
  193. - sha512
  194. notify:
  195. image: drillster/drone-email
  196. pull: true
  197. host: cryptoparty-celle.de
  198. secrets: [ email_username, email_password ]
  199. from: drone@tzend.de
  200. when:
  201. status: [ changed, failure ]