2019-04-04 12:58:49 +02:00
|
|
|
# -*- mode: conf-toml -*-
|
2018-06-12 04:59:46 +02:00
|
|
|
pipeline:
|
2018-11-17 21:12:06 +01:00
|
|
|
gcc6:
|
2018-10-08 19:57:19 +02:00
|
|
|
image: debian:stretch-slim
|
2018-08-14 16:52:30 +02:00
|
|
|
pull: true
|
2018-10-08 19:57:19 +02:00
|
|
|
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:
|
2018-10-08 19:57:19 +02:00
|
|
|
- rm /etc/apt/apt.conf.d/docker-clean
|
|
|
|
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
|
2018-10-08 18:26:22 +02:00
|
|
|
- echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list
|
2018-10-08 19:57:19 +02:00
|
|
|
- apt-get update -q
|
|
|
|
- apt-get install -qy build-essential cmake pkg-config
|
2019-04-04 20:44:57 +02:00
|
|
|
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev doxygen
|
2018-10-08 19:57:19 +02:00
|
|
|
- apt-get install -qy -t sid libcurlpp-dev
|
|
|
|
- apt-get install -qy rpm file
|
|
|
|
- rm -rf build && mkdir -p build && cd build
|
2019-04-04 12:58:49 +02:00
|
|
|
- cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES ..
|
2018-10-08 19:57:19 +02:00
|
|
|
- make VERBOSE=1
|
|
|
|
- make install DESTDIR=install
|
|
|
|
- ctest ..
|
|
|
|
- make package
|
2019-04-04 20:44:57 +02:00
|
|
|
- cmake -DWITH_DEB=YES ..
|
2018-10-08 19:57:19 +02:00
|
|
|
- make package
|
2019-04-04 20:44:57 +02:00
|
|
|
- cmake -DWITH_DEB=NO -DWITH_RPM=YES ..
|
2018-10-08 19:57:19 +02:00
|
|
|
- make package
|
|
|
|
volumes:
|
|
|
|
- /var/cache/debian-package-cache:/var/cache/apt/archives
|
|
|
|
|
2018-11-17 21:12:06 +01:00
|
|
|
gcc7:
|
2018-10-08 19:57:19 +02:00
|
|
|
image: debian:stretch-slim
|
|
|
|
pull: true
|
2018-11-17 21:12:06 +01:00
|
|
|
when:
|
|
|
|
event: [push, pull_request]
|
2018-10-08 19:57:19 +02:00
|
|
|
environment:
|
|
|
|
- LANG=C.utf8
|
2018-11-17 21:12:06 +01:00
|
|
|
- CXX=g++-7
|
|
|
|
- CXXFLAGS=-pipe -O2
|
2018-10-08 19:57:19 +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
|
2018-10-09 02:04:53 +02:00
|
|
|
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
|
2018-10-08 19:57:19 +02:00
|
|
|
- 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
|
2019-04-04 20:44:57 +02:00
|
|
|
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev doxygen
|
2018-10-08 19:57:19 +02:00
|
|
|
- apt-get install -qy -t sid libcurlpp-dev
|
|
|
|
- rm -rf build && mkdir -p build && cd build
|
2019-04-04 12:58:49 +02:00
|
|
|
- cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES ..
|
2018-10-08 19:57:19 +02:00
|
|
|
- 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:
|
2018-10-08 19:57:19 +02:00
|
|
|
image: debian:stretch-slim
|
|
|
|
pull: true
|
2018-11-17 21:12:06 +01:00
|
|
|
when:
|
|
|
|
event: [push, pull_request]
|
2018-10-08 19:57:19 +02:00
|
|
|
environment:
|
|
|
|
- LANG=C.utf8
|
2018-11-17 21:12:06 +01:00
|
|
|
- CXX=g++-8
|
|
|
|
- CXXFLAGS=-pipe -O2
|
2018-10-08 19:57:19 +02:00
|
|
|
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
|
2018-10-08 19:57:19 +02:00
|
|
|
- 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
|
2018-10-08 19:57:19 +02:00
|
|
|
- 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
|
2019-04-04 20:44:57 +02:00
|
|
|
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev doxygen
|
2018-10-08 18:26:22 +02:00
|
|
|
- apt-get install -qy -t sid libcurlpp-dev
|
2018-08-14 16:52:30 +02:00
|
|
|
- rm -rf build && mkdir -p build && cd build
|
2019-04-04 12:58:49 +02:00
|
|
|
- cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES ..
|
2018-08-14 16:52:30 +02:00
|
|
|
- make VERBOSE=1
|
|
|
|
- make install DESTDIR=install
|
2018-10-08 19:57:19 +02:00
|
|
|
volumes:
|
|
|
|
- /var/cache/debian-package-cache:/var/cache/apt/archives
|
|
|
|
|
2018-08-15 07:43:19 +02:00
|
|
|
prepare_release:
|
2018-10-08 19:57:19 +02:00
|
|
|
image: debian:stretch-slim
|
2018-08-15 07:43:19 +02:00
|
|
|
pull: true
|
2018-07-14 08:14:54 +02:00
|
|
|
when:
|
|
|
|
event: tag
|
2018-08-15 07:43:19 +02:00
|
|
|
commands:
|
2018-08-26 13:49:11 +02:00
|
|
|
- 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-10-08 19:57:19 +02:00
|
|
|
|
2018-08-15 07:43:19 +02:00
|
|
|
gitea_release:
|
2018-07-14 08:14:54 +02:00
|
|
|
image: plugins/gitea-release
|
|
|
|
pull: true
|
2018-08-15 07:43:19 +02:00
|
|
|
when:
|
|
|
|
event: tag
|
2018-07-14 08:14:54 +02:00
|
|
|
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
|
2018-07-14 08:14:54 +02:00
|
|
|
checksum:
|
|
|
|
- sha256
|
|
|
|
- sha512
|
2018-10-08 19:57:19 +02:00
|
|
|
|
2018-06-13 01:03:06 +02:00
|
|
|
notify:
|
2018-06-21 14:54:33 +02:00
|
|
|
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
|