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

41 lines
1.2 KiB
YAML
Raw Normal View History

2018-06-12 04:59:46 +02:00
pipeline:
build:
image: debian:buster-slim
pull: true
commands:
2018-06-13 01:03:06 +02:00
- apt-get update -q
- apt-get install -qy build-essential cmake pkg-config
- apt-get install -qy libcurl4-openssl-dev libcurlpp-dev libjsoncpp-dev
- apt-get install -qy rpm file
2018-06-12 04:59:46 +02:00
- 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
2018-06-19 09:34:07 +02:00
pull: true
2018-06-12 04:59:46 +02:00
base_url: https://schlomp.space
2018-06-12 07:12:38 +02:00
secrets: [ gitea_token ]
title: ${DRONE_TAG}
prerelease: true
2018-06-12 04:59:46 +02:00
files:
- "mastodon-cpp-${DRONE_TAG}.ebuild"
- "libmastodon-cpp_${DRONE_TAG}-0_amd64.deb"
- "libmastodon-cpp-${DRONE_TAG}-0.x86_64.rpm"
2018-06-13 01:03:06 +02:00
notify:
image: drillster/drone-email
2018-06-19 09:34:07 +02:00
pull: true
2018-06-13 01:03:06 +02:00
host: cryptoparty-celle.de
secrets: [ email_username, email_password ]
from: drone@tzend.de
when:
status: [ changed, failure ]