This repository has been archived on 2020-05-10. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon-cpp/.drone.yml

44 lines
1.5 KiB
YAML

pipeline:
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
- apt-get install -qy -t buster libcurlpp-dev
- apt-get install -qy rpm file
- mkdir -p build && cd build
- cmake -DWITH_EXAMPLES=ON -DWITH_TESTS=ON ..
- make VERBOSE=1
- make install DESTDIR=install
- ctest ..
- cp -v ../packages/gentoo/mastodon-cpp-0.0.0.ebuild mastodon-cpp-${DRONE_TAG}.ebuild
- cmake -DWITH_DEB=ON ..
- make package
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
- make package
# gitea_release:
# when:
# event: tag
# image: plugins/gitea-release
# pull: true
# base_url: https://schlomp.space
# secrets: [ gitea_token ]
# title: ${DRONE_TAG}
# prerelease: true
# files:
# - build/"mastodon-cpp-${DRONE_TAG}.ebuild"
# - build/"libmastodon-cpp_${DRONE_TAG}-0_amd64.deb"
# - build/"libmastodon-cpp-${DRONE_TAG}-0.x86_64.rpm"
notify:
when:
status: [ changed, failure ]
image: drillster/drone-email
pull: true
host: cryptoparty-celle.de
secrets: [ email_username, email_password ]
from: drone@tzend.de