expandurl-mastodon/.drone.yml

30 lines
1014 B
YAML

pipeline:
download:
image: plugins/download
pull: true
source: https://schlomp.space/attachments/dbc2b2b0-86c9-4aee-ac99-9cb9e91a82ed
destination: mastodon-cpp.deb
build:
image: debian:stretch-slim
pull: true
commands:
- echo "deb http://deb.debian.org/debian buster main" >> /etc/apt/sources.list.d/buster.list
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
- apt-get update -q
- apt-get install -qy build-essential cmake pkg-config
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev libxdg-basedir-dev
- apt-get install -qy -t buster libcurlpp-dev
- dpkg -i mastodon-cpp.deb
- mkdir -p build && cd build
- cmake ..
- make VERBOSE=1
- make install DESTDIR=install
notify:
image: drillster/drone-email
pull: true
host: cryptoparty-celle.de
secrets: [ email_username, email_password ]
from: drone@tzend.de
when:
status: [ changed, failure ]