2019-07-25 06:08:51 +02:00
|
|
|
# -*- fill-column: 1000 -*-
|
2019-05-17 00:04:58 +02:00
|
|
|
kind: pipeline
|
2019-05-18 06:09:38 +02:00
|
|
|
name: build x86_64
|
2019-05-17 00:04:58 +02:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: debian-package-cache
|
|
|
|
host:
|
|
|
|
path: /var/cache/debian-package-cache
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- tag
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: download
|
|
|
|
image: plugins/download
|
|
|
|
settings:
|
|
|
|
source: https://raw.githubusercontent.com/badaix/popl/v1.2.0/include/popl.hpp
|
2019-07-26 21:00:05 +02:00
|
|
|
destination: src/cli/popl.hpp
|
2019-05-17 00:04:58 +02:00
|
|
|
|
2019-05-17 00:39:09 +02:00
|
|
|
- name: gcc6
|
2019-05-17 00:04:58 +02:00
|
|
|
image: debian:stretch-slim
|
|
|
|
pull: always
|
|
|
|
environment:
|
2019-05-17 00:39:09 +02:00
|
|
|
CXX: g++-6
|
2019-05-17 00:04:58 +02:00
|
|
|
CXXFLAGS: -pipe -O2
|
2019-07-26 03:21:25 +02:00
|
|
|
LANG: en_US.utf-8
|
2019-05-17 00:04:58 +02:00
|
|
|
commands:
|
|
|
|
- rm /etc/apt/apt.conf.d/docker-clean
|
2019-06-26 20:03:28 +02:00
|
|
|
- alias apt-get='rm -f /var/cache/apt/archives/lock && apt-get'
|
2019-05-17 00:04:58 +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
|
|
|
|
- apt-get update -q
|
2019-05-17 00:39:09 +02:00
|
|
|
- apt-get install -qy g++-6 cmake pkg-config
|
2019-07-25 05:58:16 +02:00
|
|
|
- apt-get install -qy libcurl4-openssl-dev libxdg-basedir-dev libvsqlitepp-dev libboost-system-dev libboost-filesystem-dev libicu-dev asciidoc catch
|
2019-05-17 00:04:58 +02:00
|
|
|
- apt-get install -qy -t sid libcurlpp-dev
|
2019-05-19 19:36:03 +02:00
|
|
|
- locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8
|
2019-05-17 00:04:58 +02:00
|
|
|
- rm -rf build && mkdir -p build && cd build
|
2019-05-21 15:29:07 +02:00
|
|
|
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DWITH_TESTS=YES -DWITH_MOZILLA=YES ..
|
2019-08-03 22:33:40 +02:00
|
|
|
- make VERBOSE=1 --keep-going
|
2019-05-17 00:39:09 +02:00
|
|
|
- make install DESTDIR=install
|
2019-05-26 16:44:53 +02:00
|
|
|
- cd tests && ctest -V
|
2019-05-17 00:04:58 +02:00
|
|
|
volumes:
|
|
|
|
- name: debian-package-cache
|
|
|
|
path: /var/cache/apt/archives
|
|
|
|
|
2019-05-17 00:39:09 +02:00
|
|
|
- name: gcc5
|
2019-05-17 00:04:58 +02:00
|
|
|
image: debian:stretch-slim
|
|
|
|
pull: always
|
|
|
|
environment:
|
2019-05-17 00:39:09 +02:00
|
|
|
CXX: g++-5
|
2019-05-17 00:04:58 +02:00
|
|
|
CXXFLAGS: -pipe -O2
|
2019-07-26 03:21:25 +02:00
|
|
|
LANG: en_US.utf-8
|
2019-05-17 00:04:58 +02:00
|
|
|
commands:
|
|
|
|
- rm /etc/apt/apt.conf.d/docker-clean
|
2019-06-26 20:03:28 +02:00
|
|
|
- alias apt-get='rm -f /var/cache/apt/archives/lock && apt-get'
|
2019-05-17 00:39:09 +02:00
|
|
|
- apt-get update -q
|
2019-05-17 00:04:58 +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
|
2019-05-17 00:39:09 +02: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 -
|
2019-05-17 00:04:58 +02:00
|
|
|
- apt-get update -q
|
2019-05-17 00:39:09 +02:00
|
|
|
- apt-get install -qy -t xenial g++-5
|
|
|
|
- apt-get install -qy cmake pkg-config
|
2019-07-25 05:58:16 +02:00
|
|
|
- apt-get install -qy libcurl4-openssl-dev libxdg-basedir-dev libvsqlitepp-dev libboost-system-dev libboost-filesystem-dev libicu-dev asciidoc catch
|
2019-05-17 00:04:58 +02:00
|
|
|
- apt-get install -qy -t sid libcurlpp-dev
|
|
|
|
- rm -rf build && mkdir -p build && cd build
|
2019-05-21 15:29:07 +02:00
|
|
|
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DWITH_MOZILLA=YES ..
|
2019-08-03 22:33:40 +02:00
|
|
|
- make VERBOSE=1 --keep-going
|
2019-05-17 00:04:58 +02:00
|
|
|
volumes:
|
|
|
|
- name: debian-package-cache
|
|
|
|
path: /var/cache/apt/archives
|
|
|
|
|
2019-05-21 20:15:39 +02:00
|
|
|
- name: gcc9
|
2019-05-17 00:04:58 +02:00
|
|
|
image: debian:stretch-slim
|
|
|
|
pull: always
|
|
|
|
environment:
|
2019-05-21 20:15:39 +02:00
|
|
|
CXX: g++-9
|
2019-05-17 00:04:58 +02:00
|
|
|
CXXFLAGS: -pipe -O2
|
2019-07-26 03:21:25 +02:00
|
|
|
LANG: en_US.utf-8
|
2019-05-17 00:04:58 +02:00
|
|
|
commands:
|
|
|
|
- rm /etc/apt/apt.conf.d/docker-clean
|
2019-06-26 20:03:28 +02:00
|
|
|
- alias apt-get='rm -f /var/cache/apt/archives/lock && apt-get'
|
2019-05-17 00:04:58 +02:00
|
|
|
- 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
|
2019-05-21 20:15:39 +02:00
|
|
|
- apt-get install -qy -t xenial g++-9
|
2019-05-17 00:04:58 +02:00
|
|
|
- apt-get install -qy cmake pkg-config
|
2019-07-25 05:58:16 +02:00
|
|
|
- apt-get install -qy libcurl4-openssl-dev libxdg-basedir-dev libvsqlitepp-dev libboost-system-dev libboost-filesystem-dev libicu-dev asciidoc catch
|
2019-05-17 00:04:58 +02:00
|
|
|
- apt-get install -qy -t sid libcurlpp-dev
|
|
|
|
- rm -rf build && mkdir -p build && cd build
|
2019-05-21 15:29:07 +02:00
|
|
|
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DWITH_MOZILLA=YES ..
|
2019-08-03 22:33:40 +02:00
|
|
|
- make VERBOSE=1 --keep-going
|
2019-05-17 00:04:58 +02:00
|
|
|
volumes:
|
|
|
|
- name: debian-package-cache
|
|
|
|
path: /var/cache/apt/archives
|
|
|
|
|
|
|
|
- name: clang3
|
|
|
|
image: debian:stretch-slim
|
|
|
|
pull: always
|
|
|
|
environment:
|
|
|
|
CXX: clang++
|
|
|
|
CXXFLAGS: -pipe -O2
|
2019-07-26 03:21:25 +02:00
|
|
|
LANG: en_US.utf-8
|
2019-05-17 00:04:58 +02:00
|
|
|
commands:
|
|
|
|
- rm /etc/apt/apt.conf.d/docker-clean
|
2019-06-26 20:03:28 +02:00
|
|
|
- alias apt-get='rm -f /var/cache/apt/archives/lock && apt-get'
|
2019-05-17 00:04:58 +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
|
|
|
|
- apt-get update -q
|
|
|
|
- apt-get install -qy clang cmake pkg-config
|
2019-07-25 05:58:16 +02:00
|
|
|
- apt-get install -qy libcurl4-openssl-dev libxdg-basedir-dev libvsqlitepp-dev libboost-system-dev libboost-filesystem-dev libicu-dev asciidoc catch
|
2019-05-17 00:04:58 +02:00
|
|
|
- apt-get install -qy -t sid libcurlpp-dev
|
|
|
|
- rm -rf build && mkdir -p build && cd build
|
2019-05-21 15:29:07 +02:00
|
|
|
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DWITH_MOZILLA=YES ..
|
2019-08-03 22:33:40 +02:00
|
|
|
- make VERBOSE=1 --keep-going
|
2019-05-17 00:04:58 +02:00
|
|
|
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
|
2019-07-26 03:21:25 +02:00
|
|
|
LANG: en_US.utf-8
|
2019-05-17 00:04:58 +02:00
|
|
|
commands:
|
|
|
|
- rm /etc/apt/apt.conf.d/docker-clean
|
2019-06-26 20:03:28 +02:00
|
|
|
- alias apt-get='rm -f /var/cache/apt/archives/lock && apt-get'
|
2019-05-17 00:04:58 +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
|
|
|
|
- echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list.d/stretch.list
|
|
|
|
- apt-get update -q
|
|
|
|
- apt-get install -qy -t stretch-backports clang-6.0
|
|
|
|
- apt-get install -qy cmake pkg-config
|
2019-07-25 05:58:16 +02:00
|
|
|
- apt-get install -qy libcurl4-openssl-dev libxdg-basedir-dev libvsqlitepp-dev libboost-system-dev libboost-filesystem-dev libicu-dev asciidoc catch
|
2019-05-17 00:04:58 +02:00
|
|
|
- apt-get install -qy -t sid libcurlpp-dev
|
|
|
|
- rm -rf build && mkdir -p build && cd build
|
2019-05-21 15:29:07 +02:00
|
|
|
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DWITH_MOZILLA=YES ..
|
2019-08-03 22:33:40 +02:00
|
|
|
- make VERBOSE=1 --keep-going
|
2019-05-17 00:04:58 +02:00
|
|
|
volumes:
|
|
|
|
- name: debian-package-cache
|
|
|
|
path: /var/cache/apt/archives
|
|
|
|
|
2019-05-18 06:15:04 +02:00
|
|
|
- name: notify
|
|
|
|
image: drillster/drone-email
|
|
|
|
pull: always
|
|
|
|
settings:
|
|
|
|
host: cryptoparty-celle.de
|
|
|
|
from: drone@tzend.de
|
|
|
|
username:
|
|
|
|
from_secret: email_username
|
|
|
|
password:
|
|
|
|
from_secret: email_password
|
|
|
|
when:
|
|
|
|
status: [ changed, failure ]
|
|
|
|
|
|
|
|
|
2019-05-18 05:09:56 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: packages x86_64
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: debian-package-cache
|
|
|
|
host:
|
|
|
|
path: /var/cache/debian-package-cache
|
|
|
|
- name: centos-package-cache
|
|
|
|
host:
|
|
|
|
path: /var/cache/centos-package-cache
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: download
|
|
|
|
image: plugins/download
|
|
|
|
settings:
|
|
|
|
source: https://raw.githubusercontent.com/badaix/popl/v1.2.0/include/popl.hpp
|
2019-07-26 21:00:05 +02:00
|
|
|
destination: src/cli/popl.hpp
|
2019-05-18 05:09:56 +02:00
|
|
|
|
|
|
|
- name: deb
|
|
|
|
image: debian:stretch-slim
|
|
|
|
pull: always
|
|
|
|
environment:
|
|
|
|
CXX: g++-6
|
|
|
|
CXXFLAGS: -pipe -O2
|
2019-07-26 03:21:25 +02:00
|
|
|
LANG: en_US.utf-8
|
2019-05-18 05:09:56 +02:00
|
|
|
commands:
|
|
|
|
- rm /etc/apt/apt.conf.d/docker-clean
|
2019-06-26 20:03:28 +02:00
|
|
|
- alias apt-get='rm -f /var/cache/apt/archives/lock && apt-get'
|
2019-05-18 05:09:56 +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
|
|
|
|
- apt-get update -q
|
|
|
|
- apt-get install -qy g++-6 cmake pkg-config
|
2019-07-25 05:58:16 +02:00
|
|
|
- apt-get install -qy libcurl4-openssl-dev libxdg-basedir-dev libvsqlitepp-dev libboost-system-dev libboost-filesystem-dev libicu-dev asciidoc catch
|
2019-05-18 05:09:56 +02:00
|
|
|
- apt-get install -qy -t sid libcurlpp-dev
|
|
|
|
- apt-get install -qy build-essential file
|
|
|
|
- rm -rf build && mkdir -p build && cd build
|
2019-05-21 22:39:50 +02:00
|
|
|
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DWITH_MOZILLA=YES -DMOZILLA_NMH_DIR="lib/mozilla/native-messaging-hosts" -DWITH_DEB=YES ..
|
2019-08-03 22:33:40 +02:00
|
|
|
- make package --keep-going
|
2019-05-18 05:09:56 +02:00
|
|
|
- cp -v remwharead_${DRONE_TAG}-0_amd64.deb ..
|
|
|
|
volumes:
|
|
|
|
- name: debian-package-cache
|
|
|
|
path: /var/cache/apt/archives
|
|
|
|
|
2019-05-18 06:09:38 +02:00
|
|
|
- name: release
|
2019-05-18 05:09:56 +02:00
|
|
|
image: plugins/gitea-release
|
|
|
|
pull: always
|
|
|
|
settings:
|
|
|
|
base_url: https://schlomp.space
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
title: ${DRONE_TAG}
|
|
|
|
prerelease: true
|
|
|
|
files:
|
|
|
|
- remwharead_${DRONE_TAG}-0_amd64.deb
|
2019-05-18 07:54:55 +02:00
|
|
|
# - remwharead-${DRONE_TAG}-0.x86_64.rpm
|
2019-05-18 05:09:56 +02:00
|
|
|
checksum:
|
|
|
|
- sha512
|
|
|
|
|
2019-05-18 06:15:04 +02:00
|
|
|
- name: notify
|
2019-05-17 00:04:58 +02:00
|
|
|
image: drillster/drone-email
|
|
|
|
pull: always
|
|
|
|
settings:
|
|
|
|
host: cryptoparty-celle.de
|
|
|
|
from: drone@tzend.de
|
|
|
|
username:
|
|
|
|
from_secret: email_username
|
|
|
|
password:
|
|
|
|
from_secret: email_password
|
|
|
|
when:
|
|
|
|
status: [ changed, failure ]
|