mastorss/.drone.yml

94 lines
3.1 KiB
YAML
Raw Normal View History

2019-12-16 01:16:17 +01:00
# -*- fill-column: 1000 -*-
kind: pipeline
name: build x86_64
volumes:
- name: debian-package-cache
host:
path: /var/cache/debian-package-cache
trigger:
event:
exclude:
- tag
steps:
2019-12-26 03:30:49 +01:00
# - name: download mastodon-cpp for buster
# image: plugins/download
# settings:
# source: https://schlomp.space/tastytea/mastodon-cpp/releases/download/0.111.5/libmastodon-cpp_0.111.5-0_buster_amd64.deb
# destination: mastodon-cpp_buster.deb
- name: download mastodon-cpp for bionic
2019-12-16 01:16:17 +01:00
image: plugins/download
settings:
2019-12-26 03:30:49 +01:00
source: https://schlomp.space/tastytea/mastodon-cpp/releases/download/0.111.5/libmastodon-cpp_0.111.5-0_bionic_amd64.deb
destination: mastodon-cpp_bionic.deb
# - name: GCC 8 on Debian buster
# image: debian:buster-slim
# pull: always
# environment:
# CXX: g++-8
# CXXFLAGS: -pipe -O2
# DEBIAN_FRONTEND: noninteractive
2019-12-26 03:30:49 +01:00
# LANG: C.utf8
# commands:
# - rm /etc/apt/apt.conf.d/docker-clean
# - alias apt-get='rm -f /var/cache/apt/archives/lock && apt-get'
# - apt-get update -q
# - echo "deb https://packagecloud.io/mrtazz/restclient-cpp/debian/ buster main" > /etc/apt/sources.list.d/restclient-cpp.list
2019-12-26 03:37:51 +01:00
# - apt-get install -qq debian-archive-keyring curl gnupg apt-transport-https
2019-12-26 03:30:49 +01:00
# - curl -L https://packagecloud.io/mrtazz/restclient-cpp/gpgkey | apt-key add -
# - apt-get update -q
2019-12-26 03:37:51 +01:00
# - apt-get install -qq build-essential cmake asciidoc
# - apt-get install -qq libboost-filesystem-dev libboost-log-dev libboost-regex-dev libjsoncpp-dev catch libcurl4-openssl-dev libcurl4 restclient-cpp libpoco-dev
# - apt-get -qq install ./mastodon-cpp_buster.deb
2019-12-26 03:30:49 +01:00
# - 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
2019-12-26 03:30:49 +01:00
- name: GCC 7 on Ubuntu bionic
image: ubuntu:bionic
2019-12-16 01:16:17 +01:00
pull: always
environment:
2019-12-26 03:30:49 +01:00
CXX: g++-7
2019-12-16 01:16:17 +01:00
CXXFLAGS: -pipe -O2
DEBIAN_FRONTEND: noninteractive
2019-12-16 01:16:17 +01:00
LANG: C.utf8
commands:
- rm /etc/apt/apt.conf.d/docker-clean
2019-12-25 20:10:43 +01:00
- alias apt-get='rm -f /var/cache/apt/archives/lock && apt-get'
2019-12-16 01:16:17 +01:00
- apt-get update -q
2019-12-26 03:30:49 +01:00
- echo "deb https://packagecloud.io/mrtazz/restclient-cpp/ubuntu/ bionic main" > /etc/apt/sources.list.d/restclient-cpp.list
2019-12-26 03:37:51 +01:00
- apt-get install -qq curl gnupg apt-transport-https
2019-12-25 20:10:43 +01:00
- curl -L https://packagecloud.io/mrtazz/restclient-cpp/gpgkey | apt-key add -
2019-12-16 01:16:17 +01:00
- apt-get update -q
2019-12-26 03:37:51 +01:00
- apt-get install -qq build-essential cmake asciidoc
2019-12-26 04:10:32 +01:00
- apt-get install -qq libboost-filesystem-dev libboost-log-dev libboost-regex-dev libjsoncpp-dev catch libcurl4-openssl-dev libcurl3 restclient-cpp libpoco-dev
2019-12-26 03:37:51 +01:00
- apt-get -qq install ./mastodon-cpp_bionic.deb
2019-12-16 01:16:17 +01:00
- 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
2019-12-16 01:16:17 +01:00
- name: notify
image: drillster/drone-email
pull: always
settings:
2018-06-13 03:11:15 +02:00
host: cryptoparty-celle.de
from: drone@tzend.de
2019-12-16 01:16:17 +01:00
username:
from_secret: email_username
password:
from_secret: email_password
when:
status: [ changed, failure ]