2018-08-30 18:10:59 +02:00
|
|
|
pipeline:
|
|
|
|
gcc8:
|
2018-10-09 01:24:02 +02:00
|
|
|
image: debian:stretch-slim
|
2018-08-30 18:10:59 +02:00
|
|
|
pull: true
|
2018-10-09 01:24:02 +02:00
|
|
|
environment:
|
|
|
|
- LANG=C.utf8
|
2018-08-30 18:10:59 +02:00
|
|
|
commands:
|
2018-10-09 01:24:02 +02:00
|
|
|
- rm /etc/apt/apt.conf.d/docker-clean
|
2018-08-30 18:10:59 +02:00
|
|
|
- apt-get update -q
|
2018-10-09 01:24:02 +02:00
|
|
|
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
|
|
|
|
- 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
|
|
|
|
- apt-get install -qy -t xenial g++-8
|
|
|
|
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100
|
|
|
|
- update-alternatives --set g++ /usr/bin/g++-8
|
|
|
|
- apt-get install -qy libvsqlitepp-dev libboost-all-dev libxdg-basedir-dev qt5-default
|
2018-08-30 19:51:46 +02:00
|
|
|
- apt-get install -qy rpm file
|
2018-08-30 18:10:59 +02:00
|
|
|
- rm -rf build && mkdir -p build && cd build
|
|
|
|
- cmake ..
|
|
|
|
- make VERBOSE=1
|
|
|
|
- make install DESTDIR=install
|
2018-08-30 19:51:46 +02:00
|
|
|
- make package
|
|
|
|
- cmake -DWITH_DEB=ON ..
|
|
|
|
- make package
|
|
|
|
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
|
|
|
|
- make package
|
2018-10-09 01:24:02 +02:00
|
|
|
volumes:
|
|
|
|
- /var/cache/debian-package-cache:/var/cache/apt/archives
|
|
|
|
|
2018-08-30 18:10:59 +02:00
|
|
|
gcc7:
|
2018-10-09 01:24:02 +02:00
|
|
|
image: debian:stretch-slim
|
2018-08-30 18:10:59 +02:00
|
|
|
pull: true
|
2018-10-09 01:24:02 +02:00
|
|
|
environment:
|
|
|
|
- LANG=C.utf8
|
2018-08-30 18:10:59 +02:00
|
|
|
commands:
|
2018-10-09 01:24:02 +02:00
|
|
|
- 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://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-30 18:10:59 +02:00
|
|
|
- apt-get update -q
|
2018-10-09 01:24:02 +02:00
|
|
|
- apt-get install -qy build-essential cmake pkg-config
|
|
|
|
- apt-get install -qy -t xenial g++-7
|
|
|
|
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 100
|
|
|
|
- update-alternatives --set g++ /usr/bin/g++-7
|
|
|
|
- apt-get install -qy libvsqlitepp-dev libboost-all-dev libxdg-basedir-dev qt5-default
|
2018-08-30 19:51:46 +02:00
|
|
|
- apt-get install -qy rpm file
|
2018-08-30 18:10:59 +02:00
|
|
|
- rm -rf build && mkdir -p build && cd build
|
|
|
|
- cmake ..
|
|
|
|
- make VERBOSE=1
|
|
|
|
- make install DESTDIR=install
|
2018-08-30 19:51:46 +02:00
|
|
|
- make package
|
|
|
|
- cmake -DWITH_DEB=ON ..
|
|
|
|
- make package
|
|
|
|
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
|
|
|
|
- make package
|
2018-10-09 01:24:02 +02:00
|
|
|
volumes:
|
|
|
|
- /var/cache/debian-package-cache:/var/cache/apt/archives
|
|
|
|
|
2018-08-30 18:10:59 +02:00
|
|
|
gcc6:
|
2018-10-09 01:24:02 +02:00
|
|
|
image: debian:stretch-slim
|
2018-08-30 18:10:59 +02:00
|
|
|
pull: true
|
2018-10-09 01:24:02 +02:00
|
|
|
environment:
|
|
|
|
- LANG=C.utf8
|
2018-08-30 18:10:59 +02:00
|
|
|
commands:
|
2018-10-09 01:24:02 +02:00
|
|
|
- rm /etc/apt/apt.conf.d/docker-clean
|
2018-08-30 18:10:59 +02:00
|
|
|
- apt-get update -q
|
2018-10-09 01:24:02 +02:00
|
|
|
- apt-get install -qy build-essential cmake pkg-config
|
|
|
|
- apt-get install -qy libvsqlitepp-dev libboost-all-dev libxdg-basedir-dev qt5-default
|
2018-08-30 19:51:46 +02:00
|
|
|
- apt-get install -qy rpm file
|
2018-08-30 18:10:59 +02:00
|
|
|
- rm -rf build && mkdir -p build && cd build
|
|
|
|
- cmake ..
|
|
|
|
- make VERBOSE=1
|
|
|
|
- make install DESTDIR=install
|
2018-08-30 19:51:46 +02:00
|
|
|
- make package
|
|
|
|
- cmake -DWITH_DEB=ON ..
|
|
|
|
- make package
|
|
|
|
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
|
|
|
|
- make package
|
2018-10-09 01:24:02 +02:00
|
|
|
volumes:
|
|
|
|
- /var/cache/debian-package-cache:/var/cache/apt/archives
|
|
|
|
|
|
|
|
|
2018-08-30 19:51:46 +02:00
|
|
|
prepare_release:
|
2018-10-09 01:24:02 +02:00
|
|
|
image: debian:stretch-slim
|
2018-08-30 18:10:59 +02:00
|
|
|
pull: true
|
2018-08-30 19:51:46 +02:00
|
|
|
when:
|
|
|
|
event: tag
|
2018-08-30 18:10:59 +02:00
|
|
|
commands:
|
2018-08-30 20:27:30 +02:00
|
|
|
- cp -v build/whyblocked-${DRONE_TAG}_x86_64.tar.gz .
|
|
|
|
- cp -v build/whyblocked_${DRONE_TAG}-0_amd64.deb .
|
|
|
|
- cp -v build/whyblocked-${DRONE_TAG}-0.x86_64.rpm .
|
2018-10-09 01:24:02 +02:00
|
|
|
|
2018-08-30 19:51:46 +02:00
|
|
|
gitea_release:
|
|
|
|
image: plugins/gitea-release
|
|
|
|
pull: true
|
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
base_url: https://schlomp.space
|
|
|
|
secrets: [ gitea_token ]
|
|
|
|
title: ${DRONE_TAG}
|
|
|
|
prerelease: true
|
|
|
|
files:
|
|
|
|
- whyblocked-${DRONE_TAG}_x86_64.tar.gz
|
|
|
|
- whyblocked_${DRONE_TAG}-0_amd64.deb
|
|
|
|
- whyblocked-${DRONE_TAG}-0.x86_64.rpm
|
|
|
|
checksum:
|
|
|
|
- sha256
|
|
|
|
- sha512
|
2018-10-09 01:24:02 +02:00
|
|
|
|
2018-08-30 18:10:59 +02:00
|
|
|
notify:
|
|
|
|
image: drillster/drone-email
|
|
|
|
pull: true
|
|
|
|
host: cryptoparty-celle.de
|
|
|
|
secrets: [ email_username, email_password ]
|
|
|
|
from: drone@tzend.de
|
|
|
|
when:
|
|
|
|
status: [ changed, failure ]
|