2020-06-29 03:01:30 +02: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-06-29 09:02:03 +02:00
|
|
|
- name: GCC 9 & 10 / clang 10
|
|
|
|
image: ubuntu:focal
|
|
|
|
pull: always
|
|
|
|
environment:
|
|
|
|
CXX: g++-9
|
|
|
|
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
|
|
|
|
- apt-get install -qq build-essential cmake g++-10 clang pkg-config
|
2020-07-02 00:19:18 +02:00
|
|
|
- apt-get install -qq catch libcgicc-dev nlohmann-json3-dev libgit2-dev libcurl4-openssl-dev
|
2020-06-29 09:02:03 +02:00
|
|
|
- rm -rf build && mkdir -p build && cd build
|
|
|
|
- cmake -G "Unix Makefiles" -DWITH_TESTS=YES ..
|
|
|
|
- make VERBOSE=1
|
|
|
|
- make install DESTDIR=install
|
|
|
|
- cd tests && ctest -V
|
|
|
|
- cd ../../
|
|
|
|
- rm -rf build && mkdir -p build && cd build
|
|
|
|
- CXX="g++-10" cmake -G "Unix Makefiles" -DWITH_TESTS=YES ..
|
|
|
|
- make VERBOSE=1
|
|
|
|
- make install DESTDIR=install
|
|
|
|
- cd tests && ctest -V
|
|
|
|
- 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
|
|
|
|
volumes:
|
|
|
|
- name: debian-package-cache
|
|
|
|
path: /var/cache/apt/archives
|
|
|
|
|
2020-06-29 03:01:30 +02:00
|
|
|
- name: GCC 8 / clang 7
|
|
|
|
image: debian:buster-slim
|
|
|
|
pull: always
|
|
|
|
environment:
|
|
|
|
CXX: g++-8
|
|
|
|
CXXFLAGS: -pipe -O2
|
|
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
LANG: C.utf8
|
2020-06-29 06:27:38 +02:00
|
|
|
nlohmann_json_DIR: "/usr/lib/cmake"
|
2020-06-29 03:01:30 +02:00
|
|
|
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-06-29 05:27:32 +02:00
|
|
|
- apt-get install -qq build-essential cmake clang pkg-config
|
2020-07-02 00:19:18 +02:00
|
|
|
- apt-get install -qq catch libcgicc-dev nlohmann-json-dev libgit2-dev libcurl4-openssl-dev
|
2020-06-29 03:01:30 +02:00
|
|
|
- rm -rf build && mkdir -p build && cd build
|
|
|
|
- cmake -G "Unix Makefiles" -DWITH_TESTS=YES ..
|
|
|
|
- make VERBOSE=1
|
|
|
|
- make install DESTDIR=install
|
|
|
|
- cd tests && ctest -V
|
|
|
|
- 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
|
|
|
|
volumes:
|
|
|
|
- name: debian-package-cache
|
|
|
|
path: /var/cache/apt/archives
|
|
|
|
|
2020-07-01 01:42:44 +02:00
|
|
|
# - name: GCC 7 / clang 6
|
|
|
|
# image: ubuntu:bionic
|
|
|
|
# pull: always
|
|
|
|
# environment:
|
|
|
|
# CXX: g++-7
|
|
|
|
# CXXFLAGS: -pipe -O2
|
|
|
|
# DEBIAN_FRONTEND: noninteractive
|
|
|
|
# LANG: C.utf8
|
|
|
|
# nlohmann_json_DIR: "/usr/lib/cmake"
|
|
|
|
# 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
|
|
|
|
# - apt-get install -qq build-essential cmake clang pkg-config
|
2020-07-02 00:19:18 +02:00
|
|
|
# - apt-get install -qq catch libcgicc-dev nlohmann-json-dev libgit2-dev libcurl4-openssl-dev
|
2020-07-01 01:42:44 +02:00
|
|
|
# - rm -rf build && mkdir -p build && cd build
|
|
|
|
# - cmake -G "Unix Makefiles" -DWITH_TESTS=YES ..
|
|
|
|
# - make VERBOSE=1
|
|
|
|
# - make install DESTDIR=install
|
|
|
|
# - cd tests && ctest -V
|
|
|
|
# - 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
|
|
|
|
# volumes:
|
|
|
|
# - name: debian-package-cache
|
|
|
|
# path: /var/cache/apt/archives
|
2020-06-29 03:01:30 +02:00
|
|
|
|
|
|
|
- name: notify
|
|
|
|
image: drillster/drone-email
|
|
|
|
pull: always
|
|
|
|
settings:
|
|
|
|
host: mail.tzend.de
|
|
|
|
from: drone@tzend.de
|
|
|
|
username:
|
|
|
|
from_secret: email_username
|
|
|
|
password:
|
|
|
|
from_secret: email_password
|
|
|
|
when:
|
|
|
|
status: [ changed, failure ]
|