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.

.drone.yml 2.9KB

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