whyblocked/.drone.yml

226 lines
9.0 KiB
YAML
Raw Normal View History

2018-08-30 18:10:59 +02:00
pipeline:
2018-10-20 01:27:57 +02:00
gcc6:
2018-10-23 10:28:11 +02:00
image: debian:stretch-slim
2018-10-20 01:27:57 +02:00
pull: true
environment:
- LANG=C.utf8
2018-10-23 06:28:59 +02:00
- CXX=g++-6
2018-10-22 02:12:12 +02:00
- CXXFLAGS=-pipe -O2
2018-10-20 01:27:57 +02:00
commands:
- rm /etc/apt/apt.conf.d/docker-clean
- apt-get update -q
2018-10-23 10:28:11 +02:00
- apt-get install -qy g++ cmake pkg-config
2018-10-22 19:15:55 +02:00
- apt-get install -qy libvsqlitepp-dev libboost-dev libxdg-basedir-dev qt5-default qttools5-dev-tools qttools5-dev
2018-10-24 13:24:28 +02:00
- apt-get install -qy dpkg-dev rpm file wget appstream
2018-10-25 03:42:54 +02:00
- gpg --import /var/autosign_gpg.key
2018-10-20 01:27:57 +02:00
- rm -rf build && mkdir -p build && cd build
2018-10-21 22:16:37 +02:00
- cmake -DCMAKE_INSTALL_PREFIX=/usr ..
2018-10-20 01:27:57 +02:00
- make VERBOSE=1
- make install DESTDIR=install
- make package
- cmake -DWITH_DEB=ON ..
- make package
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
- make package
2018-10-21 22:16:37 +02:00
- sed -i 's/Version=1.1//' install/usr/share/applications/de.tastytea.Whyblocked.desktop
2018-10-23 06:28:59 +02:00
- sed -i 's!<launchable.*</launchable>!!' install/usr/share/metainfo/de.tastytea.Whyblocked.appdata.xml
- sed -i 's!Whyblocked</id>!Whyblocked.desktop</id>!' install/usr/share/metainfo/de.tastytea.Whyblocked.appdata.xml
2018-10-23 10:28:11 +02:00
- sed -Ei 's!</?(screenshot|image).*!!' install/usr/share/metainfo/de.tastytea.Whyblocked.appdata.xml
- mv install/usr/share/qt5/translations install/usr/
2018-10-21 22:16:37 +02:00
- wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
- chmod +x linuxdeploy-x86_64.AppImage
- ./linuxdeploy-x86_64.AppImage --appimage-extract
2018-10-24 14:15:06 +02:00
- mkdir linuxdeploy-qt && cd linuxdeploy-qt
- wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
- chmod +x linuxdeploy-plugin-qt-x86_64.AppImage
- ./linuxdeploy-plugin-qt-x86_64.AppImage --appimage-extract
- cd ..
- ln -s linuxdeploy-qt/squashfs-root/AppRun linuxdeploy-plugin-qt
2018-10-25 03:42:54 +02:00
- SIGN="1" UPDATE_INFORMATION="zsync|https://appimages.schlomp.space/Whyblocked-x86_64.AppImage.zsync" ./squashfs-root/AppRun --appdir install --output appimage --plugin qt
- mv -v Whyblocked-x86_64.AppImage whyblocked-x86_64.AppImage
- mv -v Whyblocked-x86_64.AppImage.zsync whyblocked-x86_64.AppImage.zsync
- gpg --verbose --detach-sign *.tar.gz
- gpg --verbose --detach-sign *.deb
- gpg --verbose --detach-sign *.rpm
- gpg --verbose --detach-sign whyblocked*.AppImage
2018-10-20 01:27:57 +02:00
volumes:
- /var/cache/debian-package-cache:/var/cache/apt/archives
2018-10-25 03:42:54 +02:00
- /home/tastytea/misc/autosign_gpg.key:/var/autosign_gpg.key
2018-10-20 01:27:57 +02:00
2018-10-15 00:57:01 +02:00
gcc7:
image: debian:stretch-slim
2018-08-30 18:10:59 +02:00
pull: true
2018-10-20 01:27:57 +02:00
when:
event: [push, pull_request]
environment:
- LANG=C.utf8
2018-10-23 06:28:59 +02:00
- CXX=g++-7
2018-10-22 02:12:12 +02:00
- CXXFLAGS=-pipe -O2
2018-08-30 18:10:59 +02:00
commands:
- rm /etc/apt/apt.conf.d/docker-clean
2018-08-30 18:10:59 +02:00
- apt-get update -q
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
2018-10-23 06:28:59 +02:00
- echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list.d/backports.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
2018-10-15 00:57:01 +02:00
- apt-get install -qy -t xenial g++-7
2018-10-23 06:28:59 +02:00
- apt-get install -qy cmake pkg-config
- apt-get install -qy libvsqlitepp-dev libboost-dev libxdg-basedir-dev qt5-default qttools5-dev-tools qttools5-dev
2018-08-30 18:10:59 +02:00
- rm -rf build && mkdir -p build && cd build
- cmake ..
- make VERBOSE=1
- make install DESTDIR=install
volumes:
- /var/cache/debian-package-cache:/var/cache/apt/archives
2018-10-15 00:57:01 +02:00
gcc8:
image: debian:stretch-slim
2018-08-30 18:10:59 +02:00
pull: true
2018-10-20 01:27:57 +02:00
when:
event: [push, pull_request]
environment:
- LANG=C.utf8
2018-10-23 06:28:59 +02:00
- CXX=g++-8
2018-10-22 02:12:12 +02:00
- CXXFLAGS=-pipe -O2
2018-08-30 18:10:59 +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
2018-10-23 06:28:59 +02:00
- echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list.d/backports.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-30 18:10:59 +02:00
- apt-get update -q
2018-10-15 00:57:01 +02:00
- apt-get install -qy -t xenial g++-8
2018-10-23 06:28:59 +02:00
- apt-get install -qy cmake pkg-config
- apt-get install -qy libvsqlitepp-dev libboost-dev libxdg-basedir-dev qt5-default qttools5-dev-tools qttools5-dev
2018-10-15 00:57:01 +02:00
- rm -rf build && mkdir -p build && cd build
- cmake ..
- make VERBOSE=1
- make install DESTDIR=install
volumes:
- /var/cache/debian-package-cache:/var/cache/apt/archives
clang3:
image: debian:stretch-slim
pull: true
2018-10-20 01:27:57 +02:00
when:
event: [push, pull_request]
2018-10-15 00:57:01 +02:00
environment:
- LANG=C.utf8
- CXX=clang++
2018-10-23 06:28:59 +02:00
- CXXFLAGS=-pipe -O2
2018-10-15 00:57:01 +02:00
commands:
- rm /etc/apt/apt.conf.d/docker-clean
2018-10-23 06:28:59 +02:00
- 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/backports.list
2018-10-15 00:57:01 +02:00
- apt-get update -q
2018-10-23 06:28:59 +02:00
- apt-get install -qy clang cmake pkg-config
- apt-get install -qy libvsqlitepp-dev libboost-dev libxdg-basedir-dev qt5-default qttools5-dev-tools qttools5-dev
2018-10-15 00:57:01 +02:00
- rm -rf build && mkdir -p build && cd build
- cmake ..
- make VERBOSE=1
- make install DESTDIR=install
volumes:
- /var/cache/debian-package-cache:/var/cache/apt/archives
clang5:
image: debian:stretch-slim
pull: true
2018-10-20 01:27:57 +02:00
when:
event: [push, pull_request]
2018-10-15 00:57:01 +02:00
environment:
- LANG=C.utf8
- CXX=clang++-5.0
2018-10-23 06:28:59 +02:00
- CXXFLAGS=-pipe -O2
2018-10-15 00:57:01 +02:00
commands:
- rm /etc/apt/apt.conf.d/docker-clean
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
2018-10-23 06:28:59 +02:00
- echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list.d/stretch.list
2018-10-15 00:57:01 +02:00
- apt-get update -q
- apt-get install -qy -t stretch-backports clang-5.0
2018-10-23 06:28:59 +02:00
- apt-get install -qy cmake pkg-config
- apt-get install -qy libvsqlitepp-dev libboost-dev libxdg-basedir-dev qt5-default qttools5-dev-tools qttools5-dev
2018-10-15 00:57:01 +02:00
- rm -rf build && mkdir -p build && cd build
- cmake ..
- make VERBOSE=1
- make install DESTDIR=install
volumes:
- /var/cache/debian-package-cache:/var/cache/apt/archives
clang6:
image: debian:stretch-slim
pull: true
2018-10-20 01:27:57 +02:00
when:
event: [push, pull_request]
2018-10-15 00:57:01 +02:00
environment:
- LANG=C.utf8
- CXX=clang++-6.0
2018-10-23 06:28:59 +02:00
- CXXFLAGS=-pipe -O2
2018-10-15 00:57:01 +02:00
commands:
- rm /etc/apt/apt.conf.d/docker-clean
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
2018-10-23 06:28:59 +02:00
- echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list.d/stretch.list
2018-10-15 00:57:01 +02:00
- apt-get update -q
- apt-get install -qy -t stretch-backports clang-6.0
2018-10-23 06:28:59 +02:00
- apt-get install -qy cmake pkg-config
- apt-get install -qy libvsqlitepp-dev libboost-dev libxdg-basedir-dev qt5-default qttools5-dev-tools qttools5-dev
2018-08-30 18:10:59 +02:00
- rm -rf build && mkdir -p build && cd build
- cmake ..
- make VERBOSE=1
- make install DESTDIR=install
volumes:
- /var/cache/debian-package-cache:/var/cache/apt/archives
2018-08-30 19:51:46 +02:00
prepare_release:
2018-10-23 06:28:59 +02:00
image: debian:jessie-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 .
2018-10-25 03:42:54 +02:00
- cp -v build/whyblocked-${DRONE_TAG}_x86_64.tar.gz.sig .
2018-08-30 20:27:30 +02:00
- cp -v build/whyblocked_${DRONE_TAG}-0_amd64.deb .
2018-10-25 03:42:54 +02:00
- cp -v build/whyblocked_${DRONE_TAG}-0_amd64.deb.sig .
2018-08-30 20:27:30 +02:00
- cp -v build/whyblocked-${DRONE_TAG}-0.x86_64.rpm .
2018-10-25 03:42:54 +02:00
- cp -v build/whyblocked-${DRONE_TAG}-0.x86_64.rpm.sig .
- cp -v build/whyblocked-x86_64.AppImage .
- cp -v build/whyblocked-x86_64.AppImage.sig .
- cp -v build/whyblocked-x86_64.AppImage.zsync .
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
2018-10-25 03:42:54 +02:00
- whyblocked-${DRONE_TAG}_x86_64.tar.gz.sig
2018-08-30 19:51:46 +02:00
- whyblocked_${DRONE_TAG}-0_amd64.deb
2018-10-25 03:42:54 +02:00
- whyblocked_${DRONE_TAG}-0_amd64.deb.sig
2018-08-30 19:51:46 +02:00
- whyblocked-${DRONE_TAG}-0.x86_64.rpm
2018-10-25 03:42:54 +02:00
- whyblocked-${DRONE_TAG}-0.x86_64.rpm.sig
- whyblocked-x86_64.AppImage
- whyblocked-x86_64.AppImage.sig
- whyblocked-x86_64.AppImage.zsync
2018-08-30 19:51:46 +02:00
checksum:
- sha256
- sha512
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 ]