CI: Add tests with GCC 9 & 10, clang 10.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2020-06-29 09:02:03 +02:00
parent b4b47e85ad
commit 3bfa8c144e
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 35 additions and 0 deletions

View File

@ -13,6 +13,41 @@ trigger:
- tag
steps:
- 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
- apt-get install -qq catch libcgicc-dev nlohmann-json3-dev
- 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
- name: GCC 8 / clang 7
image: debian:buster-slim
pull: always