2018-06-12 04:59:46 +02:00
|
|
|
pipeline:
|
2018-08-26 13:49:11 +02:00
|
|
|
gcc8:
|
|
|
|
image: gcc:8
|
2018-08-14 16:52:30 +02:00
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
- echo "deb http://deb.debian.org/debian buster main" >> /etc/apt/sources.list.d/buster.list
|
2018-08-26 13:49:11 +02:00
|
|
|
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
|
2018-08-14 16:52:30 +02:00
|
|
|
- apt-get update -q
|
2018-08-26 13:49:11 +02:00
|
|
|
- apt-get install -qy cmake
|
|
|
|
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev
|
2018-08-14 16:52:30 +02:00
|
|
|
- apt-get install -qy -t buster 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 ..
|
|
|
|
- cp -v ../packages/gentoo/mastodon-cpp-0.0.0.ebuild mastodon-cpp-${DRONE_TAG}.ebuild
|
2018-08-26 13:49:11 +02:00
|
|
|
- make package
|
2018-08-14 16:52:30 +02:00
|
|
|
- cmake -DWITH_DEB=ON ..
|
|
|
|
- make package
|
|
|
|
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
|
|
|
|
- make package
|
|
|
|
gcc7:
|
|
|
|
image: gcc:7
|
|
|
|
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 cmake
|
|
|
|
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev
|
|
|
|
- apt-get install -qy -t buster 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 ..
|
|
|
|
- cp -v ../packages/gentoo/mastodon-cpp-0.0.0.ebuild mastodon-cpp-${DRONE_TAG}.ebuild
|
2018-08-26 13:49:11 +02:00
|
|
|
- make package
|
2018-08-14 16:52:30 +02:00
|
|
|
- cmake -DWITH_DEB=ON ..
|
|
|
|
- make package
|
|
|
|
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
|
|
|
|
- make package
|
2018-08-26 13:49:11 +02:00
|
|
|
gcc6:
|
|
|
|
image: gcc:6
|
2018-06-12 04:59:46 +02:00
|
|
|
pull: true
|
|
|
|
commands:
|
2018-08-26 13:49:11 +02:00
|
|
|
- echo "deb http://deb.debian.org/debian stretch main" >> /etc/apt/sources.list.d/stretch.list
|
2018-06-21 13:18:33 +02:00
|
|
|
- echo "deb http://deb.debian.org/debian buster main" >> /etc/apt/sources.list.d/buster.list
|
2018-08-26 13:49:11 +02:00
|
|
|
- echo "APT::Default-Release \"jessie\";" >> /etc/apt/apt.conf.d/00default_release
|
2018-06-13 01:03:06 +02:00
|
|
|
- apt-get update -q
|
2018-08-26 13:49:11 +02:00
|
|
|
- apt-get install -qy -t stretch cmake libjsoncpp-dev
|
|
|
|
- apt-get install -qy libcurl4-openssl-dev
|
2018-06-21 13:18:33 +02:00
|
|
|
- apt-get install -qy -t buster libcurlpp-dev
|
2018-06-13 01:03:06 +02:00
|
|
|
- apt-get install -qy rpm file
|
2018-08-14 16:52:30 +02:00
|
|
|
- rm -rf build && mkdir -p build && cd build
|
2018-06-12 04:59:46 +02:00
|
|
|
- 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
|
2018-08-26 13:49:11 +02:00
|
|
|
- make package
|
2018-06-12 04:59:46 +02:00
|
|
|
- cmake -DWITH_DEB=ON ..
|
|
|
|
- make package
|
|
|
|
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
|
|
|
|
- make package
|
2018-08-26 13:49:11 +02:00
|
|
|
# gcc5:
|
|
|
|
# image: gcc:5
|
|
|
|
# pull: true
|
|
|
|
# commands:
|
|
|
|
# - echo "deb http://deb.debian.org/debian stretch main" >> /etc/apt/sources.list.d/stretch.list
|
|
|
|
# - echo "deb http://deb.debian.org/debian buster main" >> /etc/apt/sources.list.d/buster.list
|
|
|
|
# - echo "APT::Default-Release \"jessie\";" >> /etc/apt/apt.conf.d/00default_release
|
|
|
|
# - apt-get update -q
|
|
|
|
# - apt-get install -qy -t stretch cmake libjsoncpp-dev
|
|
|
|
# - apt-get install -qy libcurl4-openssl-dev
|
|
|
|
# - apt-get install -qy -t buster 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 ..
|
|
|
|
# - cp -v ../packages/gentoo/mastodon-cpp-0.0.0.ebuild mastodon-cpp-${DRONE_TAG}.ebuild
|
|
|
|
# - make package
|
|
|
|
# - cmake -DWITH_DEB=ON ..
|
|
|
|
# - make package
|
|
|
|
# - cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
|
|
|
|
# - make package
|
2018-08-15 07:43:19 +02:00
|
|
|
prepare_release:
|
2018-08-26 13:49:11 +02:00
|
|
|
image: gcc:5
|
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:
|
|
|
|
- cp -v build/mastodon-cpp-${DRONE_TAG}.ebuild .
|
2018-08-26 13:49:11 +02:00
|
|
|
- cp -v build/mastodon-cpp-${DRONE_TAG}_x86_64.tar.gz .
|
2018-08-15 07:43:19 +02:00
|
|
|
- cp -v build/libmastodon-cpp[_-]${DRONE_TAG}*{deb,rpm} .
|
|
|
|
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-08-14 17:42:01 +02:00
|
|
|
- mastodon-cpp-${DRONE_TAG}.ebuild
|
2018-08-26 13:49:11 +02:00
|
|
|
- build/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-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
|