gitea2rss/.drone.yml

55 lines
1.2 KiB
YAML
Raw Normal View History

2020-10-24 16:59:41 +02:00
# -*- fill-column: 1000 -*-
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: GCC 8 / clang 7
2019-08-09 22:51:05 +02:00
image: debian:buster-slim
2019-04-28 18:40:44 +02:00
pull: always
environment:
CXX: g++-8
2019-04-28 18:40:44 +02:00
CXXFLAGS: -pipe -O2
2019-08-09 22:51:05 +02:00
LANG: en_US.utf-8
DEBIAN_FRONTEND: noninteractive
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-10-24 17:17:46 +02:00
- apt-get install -qq build-essential clang cmake pkg-config libcurl4-openssl-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 ..
- cmake --build .
2020-10-24 17:17:09 +02:00
- cd tests && ctest -V
- cd ../..
- rm -rf build && mkdir -p build && cd build
- CXX="clang++" cmake ..
- cmake --build .
2020-10-24 17:17:09 +02:00
- cd tests && ctest -V
- make install
2019-04-28 18:40:44 +02:00
volumes:
- name: debian-package-cache
path: /var/cache/apt/archives
- name: notify
image: drillster/drone-email
pull: always
settings:
2020-10-24 16:59:41 +02:00
host: mail.tzend.de
2019-04-17 22:39:38 +02:00
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 ]