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

159 lines
5.8 KiB
YAML
Raw Normal View History

2018-06-12 04:59:46 +02:00
pipeline:
2018-11-17 21:12:06 +01:00
gcc5:
image: debian:stretch-slim
2018-08-14 16:52:30 +02:00
pull: true
2018-11-17 21:12:06 +01:00
when:
event: [push, pull_request]
environment:
- LANG=C.utf8
2018-11-17 21:12:06 +01:00
- CXX=g++-5
- CXXFLAGS=-pipe -O2
2018-08-14 16:52:30 +02:00
commands:
- rm /etc/apt/apt.conf.d/docker-clean
- apt-get update -q
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
- echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
- apt-get install -qy gnupg
- gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
- gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
2018-08-14 16:52:30 +02:00
- apt-get update -q
- apt-get install -qy build-essential cmake pkg-config
2018-11-17 21:12:06 +01:00
- apt-get install -qy -t xenial g++-5
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev
- apt-get install -qy -t sid libcurlpp-dev
2018-08-14 16:52:30 +02:00
- apt-get install -qy rpm file
- rm -rf build && mkdir -p build && cd build
- cmake -DWITH_EXAMPLES=ON -DWITH_TESTS=ON ..
- make VERBOSE=1
- make install DESTDIR=install
volumes:
- /var/cache/debian-package-cache:/var/cache/apt/archives
2018-11-17 21:12:06 +01:00
gcc6:
image: debian:stretch-slim
2018-08-14 16:52:30 +02:00
pull: true
environment:
- LANG=C.utf8
2018-11-17 21:12:06 +01:00
- CXX=g++-6
- CXXFLAGS=-pipe -O2
2018-08-14 16:52:30 +02:00
commands:
- rm /etc/apt/apt.conf.d/docker-clean
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
- echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list
- 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 sid libcurlpp-dev
- apt-get install -qy rpm file
- rm -rf build && mkdir -p build && cd build
- cmake -DWITH_EXAMPLES=ON -DWITH_TESTS=ON ..
- make VERBOSE=1
- make install DESTDIR=install
- ctest ..
- make package
- cmake -DWITH_DEB=ON ..
- make package
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
- make package
volumes:
- /var/cache/debian-package-cache:/var/cache/apt/archives
2018-11-17 21:12:06 +01:00
gcc7:
image: debian:stretch-slim
pull: true
2018-11-17 21:12:06 +01:00
when:
event: [push, pull_request]
environment:
- LANG=C.utf8
2018-11-17 21:12:06 +01:00
- CXX=g++-7
- CXXFLAGS=-pipe -O2
commands:
- rm /etc/apt/apt.conf.d/docker-clean
- apt-get update -q
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
- echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
- apt-get install -qy gnupg
- gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
- gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
- apt-get update -q
- apt-get install -qy build-essential cmake pkg-config
2018-11-17 21:12:06 +01:00
- apt-get install -qy -t xenial g++-7
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev
- apt-get install -qy -t sid libcurlpp-dev
- apt-get install -qy rpm file
- rm -rf build && mkdir -p build && cd build
- cmake -DWITH_EXAMPLES=ON -DWITH_TESTS=ON ..
- make VERBOSE=1
- make install DESTDIR=install
volumes:
- /var/cache/debian-package-cache:/var/cache/apt/archives
2018-11-17 21:12:06 +01:00
gcc8:
image: debian:stretch-slim
pull: true
2018-11-17 21:12:06 +01:00
when:
event: [push, pull_request]
environment:
- LANG=C.utf8
2018-11-17 21:12:06 +01:00
- CXX=g++-8
- CXXFLAGS=-pipe -O2
commands:
- rm /etc/apt/apt.conf.d/docker-clean
2018-11-17 21:12:06 +01:00
- apt-get update -q
2018-08-14 16:52:30 +02:00
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
- echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list
2018-11-17 21:12:06 +01:00
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
- apt-get install -qy gnupg
- gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
- gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
2018-08-14 16:52:30 +02:00
- apt-get update -q
- apt-get install -qy build-essential cmake pkg-config
2018-11-17 21:12:06 +01:00
- apt-get install -qy -t xenial g++-8
2018-08-14 16:52:30 +02:00
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev
- apt-get install -qy -t sid libcurlpp-dev
2018-08-14 16:52:30 +02:00
- apt-get install -qy rpm file
- rm -rf build && mkdir -p build && cd build
- cmake -DWITH_EXAMPLES=ON -DWITH_TESTS=ON ..
- make VERBOSE=1
- make install DESTDIR=install
volumes:
- /var/cache/debian-package-cache:/var/cache/apt/archives
2018-08-15 07:43:19 +02:00
prepare_release:
image: debian:stretch-slim
2018-08-15 07:43:19 +02:00
pull: true
when:
event: tag
2018-08-15 07:43:19 +02:00
commands:
- cp -v build/mastodon-cpp-${DRONE_TAG}_x86_64.tar.gz .
2018-10-08 19:07:28 +02:00
- cp -v build/libmastodon-cpp_${DRONE_TAG}-0_amd64.deb .
- cp -v build/libmastodon-cpp-${DRONE_TAG}-0.x86_64.rpm .
2018-08-15 07:43:19 +02:00
gitea_release:
image: plugins/gitea-release
pull: true
2018-08-15 07:43:19 +02:00
when:
event: tag
base_url: https://schlomp.space
secrets: [ gitea_token ]
title: ${DRONE_TAG}
prerelease: true
files:
2018-09-16 01:28:38 +02:00
- mastodon-cpp-${DRONE_TAG}_x86_64.tar.gz
2018-08-14 17:42:01 +02:00
- libmastodon-cpp_${DRONE_TAG}-0_amd64.deb
- libmastodon-cpp-${DRONE_TAG}-0.x86_64.rpm
checksum:
- sha256
- sha512
2018-06-13 01:03:06 +02:00
notify:
when:
status: [ changed, failure ]
2018-06-13 01:03:06 +02:00
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