gitea2rss/.drone.yml

117 lines
3.4 KiB
YAML
Raw Normal View History

2019-04-28 18:40:44 +02:00
kind: pipeline
name: on_push
2019-04-17 22:39:38 +02:00
2019-04-28 18:40:44 +02:00
volumes:
- name: debian-package-cache
host:
path: /var/cache/debian-package-cache
2019-04-17 22:39:38 +02:00
2019-04-28 18:40:44 +02:00
trigger:
event:
exclude:
- tag
2019-04-17 22:39:38 +02:00
2019-04-28 18:40:44 +02:00
steps:
- name: gcc5
image: debian:stretch-slim
pull: always
environment:
CXX: g++-5
CXXFLAGS: -pipe -O2
2019-08-09 22:51:05 +02:00
LANG: en_US.utf-8
2019-04-28 18:40:44 +02:00
commands:
- rm /etc/apt/apt.conf.d/docker-clean
2019-08-09 22:51:05 +02:00
- alias apt-get='rm -f /var/cache/apt/archives/lock && apt-get'
2019-04-28 18:40:44 +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
2019-08-09 22:51:05 +02:00
- apt-get update -q
2019-04-28 18:40:44 +02:00
- 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++-5
2020-05-01 20:37:27 +02:00
- apt-get install -qy cmake pkg-config libpoco-dev libjsoncpp-dev asciidoc
2019-04-28 18:40:44 +02:00
- rm -rf build && mkdir -p build && cd build
2019-08-09 22:51:05 +02:00
- cmake ..
2019-04-28 18:40:44 +02:00
- make VERBOSE=1
volumes:
- name: debian-package-cache
path: /var/cache/apt/archives
2019-04-17 22:39:38 +02:00
2019-08-09 22:51:05 +02:00
- name: gcc9
2019-04-28 18:40:44 +02:00
image: debian:stretch-slim
pull: always
environment:
2019-08-09 22:51:05 +02:00
CXX: g++-9
2019-04-28 18:40:44 +02:00
CXXFLAGS: -pipe -O2
2019-08-09 22:51:05 +02:00
LANG: en_US.utf-8
2019-04-28 18:40:44 +02:00
commands:
- rm /etc/apt/apt.conf.d/docker-clean
2019-08-09 22:51:05 +02:00
- alias apt-get='rm -f /var/cache/apt/archives/lock && apt-get'
2019-04-28 18:40:44 +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 update -q
- 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-08-09 22:51:05 +02:00
- apt-get install -qy -t xenial g++-9
2020-05-01 20:37:27 +02:00
- apt-get install -qy cmake pkg-config libpoco-dev libjsoncpp-dev asciidoc
2019-04-28 18:40:44 +02:00
- rm -rf build && mkdir -p build && cd build
2019-08-09 22:51:05 +02:00
- cmake ..
2019-04-28 18:40:44 +02:00
- make VERBOSE=1
volumes:
- name: debian-package-cache
path: /var/cache/apt/archives
2019-04-17 22:39:38 +02:00
2019-04-28 18:40:44 +02:00
- name: clang3
image: debian:stretch-slim
pull: always
environment:
CXX: clang++
CXXFLAGS: -pipe -O2
2019-08-09 22:51:05 +02:00
LANG: en_US.utf-8
2019-04-28 18:40:44 +02:00
commands:
- rm /etc/apt/apt.conf.d/docker-clean
2019-08-09 22:51:05 +02:00
- alias apt-get='rm -f /var/cache/apt/archives/lock && apt-get'
2019-04-28 18:40:44 +02:00
- apt-get update -q
2020-05-01 20:37:27 +02:00
- apt-get install -qy clang cmake pkg-config libpoco-dev libjsoncpp-dev asciidoc
2019-04-28 18:40:44 +02:00
- rm -rf build && mkdir -p build && cd build
2019-08-09 22:51:05 +02:00
- cmake ..
2019-04-28 18:40:44 +02:00
- make VERBOSE=1
volumes:
- name: debian-package-cache
path: /var/cache/apt/archives
2019-08-09 22:51:05 +02:00
- name: clang7
image: debian:buster-slim
2019-04-28 18:40:44 +02:00
pull: always
environment:
2019-08-09 22:51:05 +02:00
CXX: clang++
2019-04-28 18:40:44 +02:00
CXXFLAGS: -pipe -O2
2019-08-09 22:51:05 +02:00
LANG: en_US.utf-8
2019-04-28 18:40:44 +02:00
commands:
- rm /etc/apt/apt.conf.d/docker-clean
2019-08-09 22:51:05 +02:00
- alias apt-get='rm -f /var/cache/apt/archives/lock && apt-get'
2019-04-28 18:40:44 +02:00
- apt-get update -q
2020-05-01 20:37:27 +02:00
- apt-get install -qy clang cmake pkg-config libpoco-dev libjsoncpp-dev asciidoc
2019-04-28 18:40:44 +02:00
- rm -rf build && mkdir -p build && cd build
2019-08-09 22:51:05 +02:00
- cmake ..
2019-04-28 18:40:44 +02:00
- make VERBOSE=1
volumes:
- name: debian-package-cache
path: /var/cache/apt/archives
- name: notify
image: drillster/drone-email
pull: always
settings:
2019-04-17 22:39:38 +02:00
host: cryptoparty-celle.de
from: drone@tzend.de
2019-04-28 18:40:44 +02:00
username:
2019-04-29 10:59:24 +02:00
from_secret: email_username
2019-04-28 18:40:44 +02:00
password:
from_secret: email_password
when:
status: [ changed, failure ]