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.2KB

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