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.

76 lines
3.0KB

  1. pipeline:
  2. download:
  3. image: plugins/download
  4. pull: true
  5. source: https://schlomp.space/attachments/761761c0-b16b-491e-a6ae-18dca23e82dd
  6. destination: mastodon-cpp.deb
  7. # gcc5:
  8. # image: gcc:5
  9. # pull: true
  10. # commands:
  11. # - rm /usr/local/lib64/libstdc++.so.6
  12. # - echo "deb http://deb.debian.org/debian stretch main" >> /etc/apt/sources.list.d/stretch.list
  13. # - echo "deb http://deb.debian.org/debian buster main" >> /etc/apt/sources.list.d/buster.list
  14. # - echo "APT::Default-Release \"jessie\";" >> /etc/apt/apt.conf.d/00default_release
  15. # - apt-get update -q
  16. # - apt-get install -qyt stretch cmake libjsoncpp-dev
  17. # - apt-get install -qy libcurl4-openssl-dev libxdg-basedir-dev
  18. # - apt-get install -qy -t buster libcurlpp-dev
  19. # - dpkg -i mastodon-cpp.deb
  20. # - rm -rf build && mkdir -p build && cd build
  21. # - cmake ..
  22. # - make VERBOSE=1
  23. # - make install DESTDIR=install
  24. gcc6:
  25. image: gcc:6
  26. pull: true
  27. commands:
  28. - echo "deb http://deb.debian.org/debian stretch main" >> /etc/apt/sources.list.d/stretch.list
  29. - echo "deb http://deb.debian.org/debian buster main" >> /etc/apt/sources.list.d/buster.list
  30. - echo "APT::Default-Release \"jessie\";" >> /etc/apt/apt.conf.d/00default_release
  31. - apt-get update -q
  32. - apt-get install -qyt stretch cmake libjsoncpp-dev
  33. - apt-get install -qy libcurl4-openssl-dev libxdg-basedir-dev
  34. - apt-get install -qy -t buster libcurlpp-dev
  35. - dpkg -i mastodon-cpp.deb
  36. - rm -rf build && mkdir -p build && cd build
  37. - cmake ..
  38. - make VERBOSE=1
  39. - make install DESTDIR=install
  40. gcc7:
  41. image: gcc:7
  42. pull: true
  43. commands:
  44. - echo "deb http://deb.debian.org/debian buster main" >> /etc/apt/sources.list.d/buster.list
  45. - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
  46. - apt-get update -q
  47. - apt-get install -qy cmake libcurl4-openssl-dev libjsoncpp-dev libxdg-basedir-dev
  48. - apt-get install -qy -t buster libcurlpp-dev
  49. - dpkg -i mastodon-cpp.deb
  50. - rm -rf build && mkdir -p build && cd build
  51. - cmake ..
  52. - make VERBOSE=1
  53. - make install DESTDIR=install
  54. gcc8:
  55. image: gcc:8
  56. pull: true
  57. commands:
  58. - echo "deb http://deb.debian.org/debian buster main" >> /etc/apt/sources.list.d/buster.list
  59. - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
  60. - apt-get update -q
  61. - apt-get install -qy cmake libcurl4-openssl-dev libjsoncpp-dev libxdg-basedir-dev
  62. - apt-get install -qy -t buster libcurlpp-dev
  63. - dpkg -i mastodon-cpp.deb
  64. - rm -rf build && mkdir -p build && cd build
  65. - cmake ..
  66. - make VERBOSE=1
  67. - make install DESTDIR=install
  68. notify:
  69. image: drillster/drone-email
  70. pull: true
  71. host: cryptoparty-celle.de
  72. secrets: [ email_username, email_password ]
  73. from: drone@tzend.de
  74. when:
  75. status: [ changed, failure ]