mastorss/.drone.yml
tastytea e8d27eeef2
All checks were successful
the build was successful
drone: download mastodon-cpp-0.17.1
2018-06-21 18:04:49 +02:00

30 lines
1012 B
YAML

pipeline:
download:
image: plugins/download
pull: true
source: https://schlomp.space/attachments/41e6e007-d8fb-483e-90e6-68b98e114562
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 libboost-all-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 ]