2018-06-12 20:37:29 +02:00
|
|
|
pipeline:
|
|
|
|
download:
|
|
|
|
image: plugins/download
|
2018-06-19 09:34:57 +02:00
|
|
|
pull: true
|
2018-06-21 18:01:37 +02:00
|
|
|
source: https://schlomp.space/attachments/41e6e007-d8fb-483e-90e6-68b98e114562
|
2018-06-12 20:37:29 +02:00
|
|
|
destination: mastodon-cpp.deb
|
2018-06-12 08:14:57 +02:00
|
|
|
build:
|
2018-06-21 14:08:25 +02:00
|
|
|
image: debian:stretch-slim
|
2018-06-12 08:14:57 +02:00
|
|
|
pull: true
|
|
|
|
commands:
|
2018-06-21 14:08:25 +02:00
|
|
|
- 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
|
2018-06-13 00:56:02 +02:00
|
|
|
- apt-get update -q
|
|
|
|
- apt-get install -qy build-essential cmake pkg-config
|
2018-06-21 14:08:25 +02:00
|
|
|
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev libxdg-basedir-dev
|
|
|
|
- apt-get install -qy -t buster libcurlpp-dev
|
2018-06-12 08:14:57 +02:00
|
|
|
- dpkg -i mastodon-cpp.deb
|
|
|
|
- mkdir -p build && cd build
|
|
|
|
- cmake ..
|
|
|
|
- make VERBOSE=1
|
|
|
|
- make install DESTDIR=install
|
2018-06-13 00:56:02 +02:00
|
|
|
notify:
|
|
|
|
image: drillster/drone-email
|
2018-06-19 09:34:57 +02:00
|
|
|
pull: true
|
2018-06-13 00:56:02 +02:00
|
|
|
host: cryptoparty-celle.de
|
|
|
|
secrets: [ email_username, email_password ]
|
|
|
|
from: drone@tzend.de
|
|
|
|
when:
|
|
|
|
status: [ changed, failure ]
|