mastodonpp/.drone.yml

86 lines
2.2 KiB
YAML
Raw Normal View History

2020-01-03 08:44:55 +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:
2020-01-07 09:10:12 +01:00
- name: GCC 8 / clang 7
2020-01-03 08:44:55 +01:00
image: debian:buster-slim
pull: always
environment:
CXX: g++-8
CXXFLAGS: -pipe -O2
DEBIAN_FRONTEND: noninteractive
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
2020-01-07 09:10:12 +01:00
- apt-get install -qq build-essential cmake clang
- apt-get install -qq catch libcurl4-openssl-dev
2020-01-03 08:44:55 +01:00
- rm -rf build && mkdir -p build && cd build
2020-01-03 09:47:16 +01:00
- cmake -G "Unix Makefiles" -DWITH_TESTS=YES ..
2020-01-03 08:44:55 +01:00
- make VERBOSE=1
- make install DESTDIR=install
2020-01-03 09:47:16 +01:00
- cd tests && ctest -V
2020-01-07 09:10:12 +01:00
- cd ../../
- rm -rf build && mkdir -p build && cd build
- CXX="clang++" cmake -G "Unix Makefiles" -DWITH_TESTS=YES ..
- make VERBOSE=1
- make install DESTDIR=install
- cd tests && ctest -V
2020-01-03 08:44:55 +01:00
volumes:
- name: debian-package-cache
path: /var/cache/apt/archives
2020-01-07 09:10:12 +01:00
- name: GCC 7 / clang 6
2020-01-03 08:44:55 +01:00
image: ubuntu:bionic
pull: always
environment:
CXX: g++-7
CXXFLAGS: -pipe -O2
DEBIAN_FRONTEND: noninteractive
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
2020-01-07 09:10:12 +01:00
- apt-get install -qq build-essential cmake clang
- apt-get install -qq catch libcurl4-openssl-dev
2020-01-03 08:44:55 +01:00
- rm -rf build && mkdir -p build && cd build
2020-01-03 09:47:16 +01:00
- cmake -G "Unix Makefiles" -DWITH_TESTS=YES ..
2020-01-03 08:44:55 +01:00
- make VERBOSE=1
- make install DESTDIR=install
2020-01-03 09:47:16 +01:00
- cd tests && ctest -V
2020-01-07 09:10:12 +01:00
- cd ../../
- rm -rf build && mkdir -p build && cd build
- CXX="clang++" cmake -G "Unix Makefiles" -DWITH_TESTS=YES ..
- make VERBOSE=1
- make install DESTDIR=install
- cd tests && ctest -V
2020-01-03 08:44:55 +01:00
volumes:
- name: debian-package-cache
path: /var/cache/apt/archives
- 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 ]