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

236 lines
8.9 KiB
YAML
Raw Permalink Normal View History

2018-06-12 04:59:46 +02:00
pipeline:
2018-11-17 21:12:06 +01:00
gcc6:
image: debian:stretch-slim
2018-08-14 16:52:30 +02:00
pull: true
2019-04-08 21:24:08 +02:00
when:
event: [push, pull_request]
environment:
- LANG=C.utf8
2018-11-17 21:12:06 +01:00
- CXX=g++-6
- CXXFLAGS=-pipe -O2
secrets:
- mastodon_cpp_access_token
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
2019-04-14 04:16:26 +02:00
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev doxygen catch
- apt-get install -qy -t sid libcurlpp-dev
- rm -rf build && mkdir -p build && cd build
- cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES -DEXTRA_TEST_ARGS="[pleroma]" ..
- make VERBOSE=1
- make install DESTDIR=install
2019-04-14 04:16:26 +02:00
- ctest
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
secrets:
- mastodon_cpp_access_token
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
2019-04-14 04:16:26 +02:00
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev doxygen catch
- apt-get install -qy -t sid libcurlpp-dev
- rm -rf build && mkdir -p build && cd build
- cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES -DEXTRA_TEST_ARGS="[pleroma]" ..
- make VERBOSE=1
- make install DESTDIR=install
2019-04-14 04:16:26 +02:00
- ctest
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
secrets:
- mastodon_cpp_access_token
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
2019-04-14 04:16:26 +02:00
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev doxygen catch
- apt-get install -qy -t sid libcurlpp-dev
2018-08-14 16:52:30 +02:00
- rm -rf build && mkdir -p build && cd build
- cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES -DEXTRA_TEST_ARGS="[pleroma]" ..
2018-08-14 16:52:30 +02:00
- make VERBOSE=1
- make install DESTDIR=install
2019-04-16 04:10:39 +02:00
- ctest
volumes:
- /var/cache/debian-package-cache:/var/cache/apt/archives
clang5:
image: debian:stretch-slim
pull: true
when:
event: [push, pull_request]
environment:
- LANG=C.utf8
- CXX=clang++-5.0
- CXXFLAGS=-pipe -O2
secrets:
- mastodon_cpp_access_token
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 stretch-backports main" >> /etc/apt/sources.list.d/stretch.list
- 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 -t stretch-backports clang-5.0
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev doxygen catch
- apt-get install -qy -t sid libcurlpp-dev
- rm -rf build && mkdir -p build && cd build
- cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES -DEXTRA_TEST_ARGS="[pleroma]" ..
2019-04-16 04:10:39 +02:00
- make VERBOSE=1
- make install DESTDIR=install
- ctest
volumes:
- /var/cache/debian-package-cache:/var/cache/apt/archives
clang6:
image: debian:stretch-slim
pull: true
when:
event: [push, pull_request]
environment:
- LANG=C.utf8
- CXX=clang++-6.0
- CXXFLAGS=-pipe -O2
secrets:
- mastodon_cpp_access_token
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 stretch-backports main" >> /etc/apt/sources.list.d/stretch.list
- 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 -t stretch-backports clang-6.0
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev doxygen catch
- apt-get install -qy -t sid libcurlpp-dev
- rm -rf build && mkdir -p build && cd build
- cmake -DWITH_EXAMPLES=YES -DWITH_TESTS=YES -DEXTRA_TEST_ARGS="[pleroma]" ..
2019-04-16 04:10:39 +02:00
- make VERBOSE=1
- make install DESTDIR=install
2019-04-14 04:16:26 +02:00
- ctest
volumes:
- /var/cache/debian-package-cache:/var/cache/apt/archives
2019-04-08 21:24:08 +02:00
package_deb:
image: debian:stretch-slim
2018-08-15 07:43:19 +02:00
pull: true
when:
event: tag
2019-04-08 21:24:08 +02:00
environment:
- LANG=C.utf8
- CXXFLAGS=-pipe -O2
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 doxygen
- apt-get install -qy -t sid libcurlpp-dev
- apt-get install -qy file
2019-04-08 21:24:08 +02:00
- rm -rf build && mkdir -p build && cd build
- cmake -DWITH_EXAMPLES=NO -DWITH_TESTS=NO ..
- make package
- cmake -DWITH_DEB=YES ..
- make package
- cp -v mastodon-cpp-${DRONE_TAG}_x86_64.tar.gz ..
- cp -v libmastodon-cpp_${DRONE_TAG}-0_amd64.deb ..
volumes:
- /var/cache/debian-package-cache:/var/cache/apt/archives
package_rpm:
image: centos:7
pull: true
when:
event: tag
environment:
- LANG=C.utf8
- CXXFLAGS=-pipe -O2
2018-08-15 07:43:19 +02:00
commands:
2019-04-13 23:26:10 +02:00
- sed -i 's/keepcache=0/keepcache=1/' /etc/yum.conf
2019-04-13 22:49:48 +02:00
- curl -s -o /var/cache/yum/epel-release-latest-7.noarch.rpm http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
- rpm -i /var/cache/yum/epel-release-latest-7.noarch.rpm
2019-04-14 00:04:01 +02:00
- yum install -qy centos-release-scl
- yum install -qy devtoolset-6
- scl enable devtoolset-6 bash
2019-04-14 00:11:30 +02:00
- yum install -qy libcurl-devel doxygen rpm-build
2019-04-13 23:26:10 +02:00
- yum --enablerepo=epel install -qy cmake3 jsoncpp-devel
2019-04-14 06:21:26 +02:00
- curl -s -o /var/cache/yum/curlpp-devel-0.7.3-5.el6.x86_64.rpm https://download.fedoraproject.org/pub/epel/6/x86_64/Packages/c/curlpp-devel-0.7.3-5.el6.x86_64.rpm
- curl -s -o /var/cache/yum/curlpp-0.7.3-5.el6.x86_64.rpm https://download.fedoraproject.org/pub/epel/6/x86_64/Packages/c/curlpp-0.7.3-5.el6.x86_64.rpm
2019-04-13 23:26:10 +02:00
- yum localinstall -qy /var/cache/yum/curlpp-*
2019-04-08 21:24:08 +02:00
- rm -rf build && mkdir -p build && cd build
2019-04-13 23:00:34 +02:00
- cmake3 -DWITH_EXAMPLES=NO -DWITH_TESTS=NO ..
2019-04-08 21:24:08 +02:00
- make package
2019-04-13 23:00:34 +02:00
- cmake3 -DWITH_RPM=YES ..
2019-04-08 21:24:08 +02:00
- make package
- cp -v libmastodon-cpp-${DRONE_TAG}-0.x86_64.rpm ..
volumes:
- /var/cache/centos-package-cache:/var/cache/yum/
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