C++ wrapper for the Mastodon API
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 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list
  16. - echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
  17. - apt-get install -qy gnupg
  18. - gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
  19. - gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
  20. - apt-get update -q
  21. - apt-get install -qy build-essential cmake pkg-config
  22. - apt-get install -qy -t xenial g++-5
  23. - apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev
  24. - apt-get install -qy -t sid libcurlpp-dev
  25. - apt-get install -qy rpm file
  26. - rm -rf build && mkdir -p build && cd build
  27. - cmake -DWITH_EXAMPLES=ON -DWITH_TESTS=ON ..
  28. - make VERBOSE=1
  29. - make install DESTDIR=install
  30. volumes:
  31. - /var/cache/debian-package-cache:/var/cache/apt/archives
  32. gcc6:
  33. image: debian:stretch-slim
  34. pull: true
  35. environment:
  36. - LANG=C.utf8
  37. - CXX=g++-6
  38. - CXXFLAGS=-pipe -O2
  39. commands:
  40. - rm /etc/apt/apt.conf.d/docker-clean
  41. - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
  42. - echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list
  43. - apt-get update -q
  44. - apt-get install -qy build-essential cmake pkg-config
  45. - apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev
  46. - apt-get install -qy -t sid libcurlpp-dev
  47. - apt-get install -qy rpm file
  48. - rm -rf build && mkdir -p build && cd build
  49. - cmake -DWITH_EXAMPLES=ON -DWITH_TESTS=ON ..
  50. - make VERBOSE=1
  51. - make install DESTDIR=install
  52. - ctest ..
  53. - make package
  54. - cmake -DWITH_DEB=ON ..
  55. - make package
  56. - cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
  57. - make package
  58. volumes:
  59. - /var/cache/debian-package-cache:/var/cache/apt/archives
  60. gcc7:
  61. image: debian:stretch-slim
  62. pull: true
  63. when:
  64. event: [push, pull_request]
  65. environment:
  66. - LANG=C.utf8
  67. - CXX=g++-7
  68. - CXXFLAGS=-pipe -O2
  69. commands:
  70. - rm /etc/apt/apt.conf.d/docker-clean
  71. - apt-get update -q
  72. - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
  73. - echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list
  74. - echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
  75. - apt-get install -qy gnupg
  76. - gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
  77. - gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
  78. - apt-get update -q
  79. - apt-get install -qy build-essential cmake pkg-config
  80. - apt-get install -qy -t xenial g++-7
  81. - apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev
  82. - apt-get install -qy -t sid libcurlpp-dev
  83. - apt-get install -qy rpm file
  84. - rm -rf build && mkdir -p build && cd build
  85. - cmake -DWITH_EXAMPLES=ON -DWITH_TESTS=ON ..
  86. - make VERBOSE=1
  87. - make install DESTDIR=install
  88. volumes:
  89. - /var/cache/debian-package-cache:/var/cache/apt/archives
  90. gcc8:
  91. image: debian:stretch-slim
  92. pull: true
  93. when:
  94. event: [push, pull_request]
  95. environment:
  96. - LANG=C.utf8
  97. - CXX=g++-8
  98. - CXXFLAGS=-pipe -O2
  99. commands:
  100. - rm /etc/apt/apt.conf.d/docker-clean
  101. - apt-get update -q
  102. - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
  103. - echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list
  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 build-essential cmake pkg-config
  110. - apt-get install -qy -t xenial g++-8
  111. - apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev
  112. - apt-get install -qy -t sid libcurlpp-dev
  113. - apt-get install -qy rpm file
  114. - rm -rf build && mkdir -p build && cd build
  115. - cmake -DWITH_EXAMPLES=ON -DWITH_TESTS=ON ..
  116. - make VERBOSE=1
  117. - make install DESTDIR=install
  118. volumes:
  119. - /var/cache/debian-package-cache:/var/cache/apt/archives
  120. prepare_release:
  121. image: debian:stretch-slim
  122. pull: true
  123. when:
  124. event: tag
  125. commands:
  126. - cp -v build/mastodon-cpp-${DRONE_TAG}_x86_64.tar.gz .
  127. - cp -v build/libmastodon-cpp_${DRONE_TAG}-0_amd64.deb .
  128. - cp -v build/libmastodon-cpp-${DRONE_TAG}-0.x86_64.rpm .
  129. gitea_release:
  130. image: plugins/gitea-release
  131. pull: true
  132. when:
  133. event: tag
  134. base_url: https://schlomp.space
  135. secrets: [ gitea_token ]
  136. title: ${DRONE_TAG}
  137. prerelease: true
  138. files:
  139. - mastodon-cpp-${DRONE_TAG}_x86_64.tar.gz
  140. - libmastodon-cpp_${DRONE_TAG}-0_amd64.deb
  141. - libmastodon-cpp-${DRONE_TAG}-0.x86_64.rpm
  142. checksum:
  143. - sha256
  144. - sha512
  145. notify:
  146. when:
  147. status: [ changed, failure ]
  148. image: drillster/drone-email
  149. pull: true
  150. host: cryptoparty-celle.de
  151. secrets: [ email_username, email_password ]
  152. from: drone@tzend.de