2021-05-20 04:30:31 +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:
|
|
|
|
- name: GCC 10 / clang 11
|
|
|
|
image: debian:bullseye-slim
|
|
|
|
pull: always
|
|
|
|
environment:
|
|
|
|
CXX: g++-10
|
|
|
|
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 clang
|
2021-05-21 01:56:37 +02:00
|
|
|
- apt-get install -qq catch libboost-all-dev gettext libarchive-dev
|
2021-05-20 04:30:31 +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
|
|
|
|
|
2021-05-21 01:56:37 +02:00
|
|
|
- name: Download CMake 3.17 installer
|
2021-05-20 09:14:17 +02:00
|
|
|
image: plugins/download
|
|
|
|
settings:
|
2021-05-21 01:56:37 +02:00
|
|
|
source: https://cmake.org/files/v3.17/cmake-3.17.0-Linux-x86_64.sh
|
2021-05-20 09:14:17 +02:00
|
|
|
destination: cmake_installer.sh
|
|
|
|
|
2021-05-20 04:30:31 +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
|
|
|
|
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
|
2021-05-20 09:14:17 +02:00
|
|
|
- apt-get install -qq build-essential clang
|
2021-05-21 01:56:37 +02:00
|
|
|
- apt-get install -qq catch libboost-all-dev gettext libarchive-dev
|
2021-05-20 09:14:17 +02:00
|
|
|
- sh cmake_installer.sh --skip-license --exclude-subdir --prefix=/usr/local
|
2021-05-20 04:30:31 +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
|
|
|
|
|
|
|
|
- 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 ]
|