identiconpp is a library to generate identicons for C++ and C.
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.0KB

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