A Mastodon bot that expands shortened URLs.
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.

88 lines
3.4KB

  1. pipeline:
  2. download:
  3. image: plugins/download
  4. pull: true
  5. source: https://schlomp.space/tastytea/mastodon-cpp/releases/download/0.106.0/libmastodon-cpp_0.106.0-0_amd64.deb
  6. destination: mastodon-cpp.deb
  7. gcc6:
  8. image: debian:stretch-slim
  9. pull: true
  10. environment:
  11. - LANG=C.utf8
  12. - CXX=g++-6
  13. - CXXFLAGS=-pipe -O2
  14. commands:
  15. - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
  16. - echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list
  17. - apt-get update -q
  18. - apt-get install -qy build-essential cmake pkg-config
  19. - apt-get install -qy libjsoncpp-dev libcurl4-openssl-dev libxdg-basedir-dev asciidoc
  20. - apt-get install -qy -t sid libcurlpp-dev
  21. - dpkg -i mastodon-cpp.deb
  22. - rm -rf build && mkdir -p build && cd build
  23. - cmake ..
  24. - make VERBOSE=1
  25. - make install DESTDIR=install
  26. gcc7:
  27. image: debian:stretch-slim
  28. pull: true
  29. environment:
  30. - LANG=C.utf8
  31. - CXX=g++-7
  32. - CXXFLAGS=-pipe -O2
  33. commands:
  34. - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
  35. - echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list
  36. - echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
  37. - apt-get update -q
  38. - apt-get install -qy gnupg
  39. - gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
  40. - gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
  41. - apt-get update -q
  42. - apt-get install -qy build-essential cmake pkg-config
  43. - apt-get install -qy -t xenial g++-7
  44. - apt-get install -qy libjsoncpp-dev libcurl4-openssl-dev libxdg-basedir-dev asciidoc
  45. - apt-get install -qy -t sid libcurlpp-dev
  46. - dpkg -i mastodon-cpp.deb
  47. - rm -rf build && mkdir -p build && cd build
  48. - cmake ..
  49. - make VERBOSE=1
  50. - make install DESTDIR=install
  51. gcc8:
  52. image: debian:stretch-slim
  53. pull: true
  54. environment:
  55. - LANG=C.utf8
  56. - CXX=g++-8
  57. - CXXFLAGS=-pipe -O2
  58. commands:
  59. - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
  60. - echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list
  61. - echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
  62. - apt-get update -q
  63. - apt-get install -qy gnupg
  64. - gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
  65. - gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
  66. - apt-get update -q
  67. - apt-get install -qy build-essential cmake pkg-config
  68. - apt-get install -qy -t xenial g++-8
  69. - apt-get install -qy libjsoncpp-dev libcurl4-openssl-dev libxdg-basedir-dev asciidoc
  70. - apt-get install -qy -t sid libcurlpp-dev
  71. - dpkg -i mastodon-cpp.deb
  72. - rm -rf build && mkdir -p build && cd build
  73. - cmake ..
  74. - make VERBOSE=1
  75. - make install DESTDIR=install
  76. notify:
  77. image: drillster/drone-email
  78. pull: true
  79. host: cryptoparty-celle.de
  80. secrets: [ email_username, email_password ]
  81. from: drone@tzend.de
  82. when:
  83. status: [ changed, failure ]