Modified drone config to work with versions > 1.

develop
tastytea 2019-06-11 23:46:40 +02:00
parent 9067b9dc91
commit 774c1685af
No known key found for this signature in database
GPG Key ID: CFC39497F1B26E07
2 changed files with 225 additions and 183 deletions

View File

@ -1,185 +1,223 @@
pipeline: kind: pipeline
gcc6: name: build x86_64
image: ubuntu:xenial
pull: true
environment:
- LANG=C.utf8
- CXX=g++-6
- CXXFLAGS=-pipe -O2
commands:
- rm /etc/apt/apt.conf.d/docker-clean
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
- gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
- gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
- apt-get update -q
- apt-get install -qy g++-6 cmake pkg-config
- apt-get install -qy libvsqlitepp-dev libboost-dev libxdg-basedir-dev qt5-default qttools5-dev-tools qttools5-dev libconfig++-dev asciidoc
- apt-get install -qy dpkg-dev rpm file wget
- gpg --import /var/autosign_gpg.key
- rm -rf build && mkdir -p build && cd build
- cmake -DCMAKE_INSTALL_PREFIX=/usr ..
- make VERBOSE=1
- make install DESTDIR=install
- make package
- cmake -DWITH_DEB=ON ..
- make package
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
- make package
- gpg --verbose --detach-sign *.tar.gz
- gpg --verbose --detach-sign *.deb
- gpg --verbose --detach-sign *.rpm
volumes:
- /var/cache/debian-package-cache:/var/cache/apt/archives
- /home/tastytea/misc/autosign_gpg.key:/var/autosign_gpg.key
gcc7: volumes:
image: debian:stretch-slim - name: debian-package-cache
pull: true host:
when: path: /var/cache/debian-package-cache
event: [push, pull_request]
environment:
- LANG=C.utf8
- CXX=g++-7
- CXXFLAGS=-pipe -O2
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/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
- apt-get install -qy -t xenial g++-7
- 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 libconfig++-dev asciidoc
- 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
gcc8: trigger:
image: debian:stretch-slim event:
pull: true exclude:
when: - tag
event: [push, pull_request]
environment:
- LANG=C.utf8
- CXX=g++-8
- CXXFLAGS=-pipe -O2
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/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
- apt-get install -qy -t xenial g++-8
- 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 libconfig++-dev asciidoc
- 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: steps:
image: debian:stretch-slim - name: submodules
pull: true image: docker:git
when: commands:
event: [push, pull_request] - git submodule init
environment: - git submodule update --recursive
- LANG=C.utf8
- CXX=clang++
- 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 stretch-backports main" >> /etc/apt/sources.list.d/backports.list
- apt-get update -q
- 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 libconfig++-dev asciidoc
- 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: - name: gcc6
image: debian:stretch-slim image: ubuntu:xenial
pull: true pull: always
when: environment:
event: [push, pull_request] CXX: g++-6
environment: CXXFLAGS: -pipe -O2
- LANG=C.utf8 commands:
- CXX=clang++-5.0 - rm /etc/apt/apt.conf.d/docker-clean
- CXXFLAGS=-pipe -O2 - echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
commands: - gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
- rm /etc/apt/apt.conf.d/docker-clean - gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release - rm /var/cache/apt/archives/lock
- echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list.d/stretch.list - apt-get update -q
- apt-get update -q - rm /var/cache/apt/archives/lock
- apt-get install -qy -t stretch-backports clang-5.0 - apt-get install -qy g++-6 cmake pkg-config
- apt-get install -qy cmake pkg-config - rm /var/cache/apt/archives/lock
- apt-get install -qy libvsqlitepp-dev libboost-dev libxdg-basedir-dev qt5-default qttools5-dev-tools qttools5-dev libconfig++-dev asciidoc - apt-get install -qy libvsqlitepp-dev libboost-dev libxdg-basedir-dev qt5-default qttools5-dev-tools qttools5-dev libconfig++-dev asciidoc
- rm -rf build && mkdir -p build && cd build - rm -rf build && mkdir -p build && cd build
- cmake .. - cmake -DCMAKE_INSTALL_PREFIX=/usr ..
- make VERBOSE=1 - make VERBOSE=1
- make install DESTDIR=install - make install DESTDIR=install
volumes: volumes:
- /var/cache/debian-package-cache:/var/cache/apt/archives - name: debian-package-cache
path: /var/cache/apt/archives
clang6: - name: gcc9
image: debian:stretch-slim image: debian:stretch-slim
pull: true pull: always
when: environment:
event: [push, pull_request] CXX: g++-9
environment: CXXFLAGS: -pipe -O2
- LANG=C.utf8 commands:
- CXX=clang++-6.0 - rm /etc/apt/apt.conf.d/docker-clean
- CXXFLAGS=-pipe -O2 - rm /var/cache/apt/archives/lock
commands: - apt-get update -q
- rm /etc/apt/apt.conf.d/docker-clean - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
- 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
- echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list.d/stretch.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 update -q - rm /var/cache/apt/archives/lock
- apt-get install -qy -t stretch-backports clang-6.0 - apt-get install -qy gnupg
- apt-get install -qy cmake pkg-config - gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
- apt-get install -qy libvsqlitepp-dev libboost-dev libxdg-basedir-dev qt5-default qttools5-dev-tools qttools5-dev libconfig++-dev asciidoc - gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
- rm -rf build && mkdir -p build && cd build - rm /var/cache/apt/archives/lock
- cmake .. - apt-get update -q
- make VERBOSE=1 - rm /var/cache/apt/archives/lock
- make install DESTDIR=install - apt-get install -qy -t xenial g++-9
volumes: - rm /var/cache/apt/archives/lock
- /var/cache/debian-package-cache:/var/cache/apt/archives - apt-get install -qy cmake pkg-config
- rm /var/cache/apt/archives/lock
- apt-get install -qy libvsqlitepp-dev libboost-dev libxdg-basedir-dev qt5-default qttools5-dev-tools qttools5-dev libconfig++-dev asciidoc
- rm -rf build && mkdir -p build && cd build
- cmake ..
- make VERBOSE=1
- make install DESTDIR=install
volumes:
- name: debian-package-cache
path: /var/cache/apt/archives
prepare_release: - name: clang3
image: ubuntu:xenial image: debian:stretch-slim
pull: true pull: always
when: environment:
event: tag CXX: clang++
commands: CXXFLAGS: -pipe -O2
- cp -v build/whyblocked-${DRONE_TAG}_x86_64.tar.gz . commands:
- cp -v build/whyblocked-${DRONE_TAG}_x86_64.tar.gz.sig . - rm /etc/apt/apt.conf.d/docker-clean
- cp -v build/whyblocked_${DRONE_TAG}-0_amd64.deb . - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
- cp -v build/whyblocked_${DRONE_TAG}-0_amd64.deb.sig . - echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list.d/backports.list
- cp -v build/whyblocked-${DRONE_TAG}-0.x86_64.rpm . - rm /var/cache/apt/archives/lock
- cp -v build/whyblocked-${DRONE_TAG}-0.x86_64.rpm.sig . - apt-get update -q
gitea_release: - rm /var/cache/apt/archives/lock
image: plugins/gitea-release - apt-get install -qy clang cmake pkg-config
pull: true - rm /var/cache/apt/archives/lock
when: - apt-get install -qy libvsqlitepp-dev libboost-dev libxdg-basedir-dev qt5-default qttools5-dev-tools qttools5-dev libconfig++-dev asciidoc
event: tag - rm -rf build && mkdir -p build && cd build
- cmake ..
- make VERBOSE=1
- make install DESTDIR=install
volumes:
- name: debian-package-cache
path: /var/cache/apt/archives
- name: clang6
image: debian:stretch-slim
pull: always
environment:
CXX: clang++-6.0
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 stretch-backports main" >> /etc/apt/sources.list.d/stretch.list
- rm /var/cache/apt/archives/lock
- apt-get update -q
- rm /var/cache/apt/archives/lock
- apt-get install -qy -t stretch-backports clang-6.0
- rm /var/cache/apt/archives/lock
- apt-get install -qy cmake pkg-config
- rm /var/cache/apt/archives/lock
- apt-get install -qy libvsqlitepp-dev libboost-dev libxdg-basedir-dev qt5-default qttools5-dev-tools qttools5-dev libconfig++-dev asciidoc
- rm -rf build && mkdir -p build && cd build
- cmake ..
- make VERBOSE=1
- make install DESTDIR=install
volumes:
- name: debian-package-cache
path: /var/cache/apt/archives
- name: notify
image: drillster/drone-email
pull: always
settings:
host: cryptoparty-celle.de
username:
from_secret: email_username
password:
from_secret: email_password
from: drone@tzend.de
when:
status: [ changed, failure ]
---
kind: pipeline
name: packages x86_64
volumes:
- name: debian-package-cache
host:
path: /var/cache/debian-package-cache
- name: gpg-key
host:
path: /var/autosign_gpg.key
trigger:
event:
- tag
steps:
- name: submodules
image: docker:git
commands:
- git submodule init
- git submodule update --recursive
- name: gcc6
image: ubuntu:xenial
pull: always
environment:
CXX: g++-6
CXXFLAGS: -pipe -O2
commands:
- rm /etc/apt/apt.conf.d/docker-clean
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
- gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
- gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
- rm /var/cache/apt/archives/lock
- apt-get update -q
- rm /var/cache/apt/archives/lock
- apt-get install -qy g++-6 cmake pkg-config
- rm /var/cache/apt/archives/lock
- apt-get install -qy libvsqlitepp-dev libboost-dev libxdg-basedir-dev qt5-default qttools5-dev-tools qttools5-dev libconfig++-dev asciidoc
- rm /var/cache/apt/archives/lock
- apt-get install -qy dpkg-dev rpm file wget
- gpg --import /var/autosign_gpg.key
- rm -rf build && mkdir -p build && cd build
- cmake -DCMAKE_INSTALL_PREFIX=/usr ..
- make VERBOSE=1
- make install DESTDIR=install
- make package
- cmake -DWITH_DEB=ON ..
- make package
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
- make package
- gpg --verbose --detach-sign *.tar.gz
- gpg --verbose --detach-sign *.deb
- gpg --verbose --detach-sign *.rpm
volumes:
- name: debian-package-cache
path: /var/cache/apt/archives
- name: gpg-key
path: /var/autosign_gpg.key
- name: prepare_release
image: ubuntu:xenial
pull: always
commands:
- cp -v build/whyblocked-${DRONE_TAG}_x86_64.tar.gz .
- cp -v build/whyblocked-${DRONE_TAG}_x86_64.tar.gz.sig .
- cp -v build/whyblocked_${DRONE_TAG}-0_amd64.deb .
- cp -v build/whyblocked_${DRONE_TAG}-0_amd64.deb.sig .
- cp -v build/whyblocked-${DRONE_TAG}-0.x86_64.rpm .
- cp -v build/whyblocked-${DRONE_TAG}-0.x86_64.rpm.sig .
- name: release
image: plugins/gitea-release
pull: always
settings:
base_url: https://schlomp.space base_url: https://schlomp.space
secrets: [ gitea_token ] api_key:
from_secret: gitea_token
title: ${DRONE_TAG} title: ${DRONE_TAG}
prerelease: true prerelease: true
files: files:
@ -193,11 +231,15 @@ pipeline:
- sha256 - sha256
- sha512 - sha512
notify: - name: notify
image: drillster/drone-email image: drillster/drone-email
pull: true pull: always
settings:
host: cryptoparty-celle.de host: cryptoparty-celle.de
secrets: [ email_username, email_password ] username:
from_secret: email_username
password:
from_secret: email_password
from: drone@tzend.de from: drone@tzend.de
when: when:
status: [ changed, failure ] status: [ changed, failure ]

View File

@ -28,8 +28,8 @@ Gentoo ebuilds are available via my
#### Dependencies #### Dependencies
* C++ compiler (tested: [gcc](https://gcc.gnu.org/) 6/7/8, * C++ compiler (tested: [gcc](https://gcc.gnu.org/) 6/8/9,
[clang](https://llvm.org/) 3/5/6) [clang](https://llvm.org/) 3/6)
* [cmake](https://cmake.org/) (at least 3.2) * [cmake](https://cmake.org/) (at least 3.2)
* [vsqlite++](http://vsqlite.virtuosic-bytes.com/) (tested: 0.3) * [vsqlite++](http://vsqlite.virtuosic-bytes.com/) (tested: 0.3)
* [libxdg-basedir](http://repo.or.cz/w/libxdg-basedir.git) (tested: 1.2) * [libxdg-basedir](http://repo.or.cz/w/libxdg-basedir.git) (tested: 1.2)