CI: Test with clang.
This commit is contained in:
parent
31ce23febf
commit
709570be62
20
.drone.yml
20
.drone.yml
@ -13,7 +13,7 @@ trigger:
|
|||||||
- tag
|
- tag
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: GCC 8 on Debian buster
|
- name: GCC 8 / clang 7
|
||||||
image: debian:buster-slim
|
image: debian:buster-slim
|
||||||
pull: always
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
@ -25,18 +25,24 @@ steps:
|
|||||||
- rm /etc/apt/apt.conf.d/docker-clean
|
- rm /etc/apt/apt.conf.d/docker-clean
|
||||||
- alias apt-get='rm -f /var/cache/apt/archives/lock && apt-get'
|
- alias apt-get='rm -f /var/cache/apt/archives/lock && apt-get'
|
||||||
- apt-get update -q
|
- apt-get update -q
|
||||||
- apt-get install -qq build-essential cmake
|
- apt-get install -qq build-essential cmake clang
|
||||||
- apt-get install -qq catch libcurl4-openssl-dev
|
- apt-get install -qq catch libcurl4-openssl-dev
|
||||||
- rm -rf build && mkdir -p build && cd build
|
- rm -rf build && mkdir -p build && cd build
|
||||||
- cmake -G "Unix Makefiles" -DWITH_TESTS=YES ..
|
- cmake -G "Unix Makefiles" -DWITH_TESTS=YES ..
|
||||||
- make VERBOSE=1
|
- make VERBOSE=1
|
||||||
- make install DESTDIR=install
|
- make install DESTDIR=install
|
||||||
- cd tests && ctest -V
|
- 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:
|
volumes:
|
||||||
- name: debian-package-cache
|
- name: debian-package-cache
|
||||||
path: /var/cache/apt/archives
|
path: /var/cache/apt/archives
|
||||||
|
|
||||||
- name: GCC 7 on Ubuntu bionic
|
- name: GCC 7 / clang 6
|
||||||
image: ubuntu:bionic
|
image: ubuntu:bionic
|
||||||
pull: always
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
@ -48,13 +54,19 @@ steps:
|
|||||||
- rm /etc/apt/apt.conf.d/docker-clean
|
- rm /etc/apt/apt.conf.d/docker-clean
|
||||||
- alias apt-get='rm -f /var/cache/apt/archives/lock && apt-get'
|
- alias apt-get='rm -f /var/cache/apt/archives/lock && apt-get'
|
||||||
- apt-get update -q
|
- apt-get update -q
|
||||||
- apt-get install -qq build-essential cmake
|
- apt-get install -qq build-essential cmake clang
|
||||||
- apt-get install -qq catch libcurl4-openssl-dev
|
- apt-get install -qq catch libcurl4-openssl-dev
|
||||||
- rm -rf build && mkdir -p build && cd build
|
- rm -rf build && mkdir -p build && cd build
|
||||||
- cmake -G "Unix Makefiles" -DWITH_TESTS=YES ..
|
- cmake -G "Unix Makefiles" -DWITH_TESTS=YES ..
|
||||||
- make VERBOSE=1
|
- make VERBOSE=1
|
||||||
- make install DESTDIR=install
|
- make install DESTDIR=install
|
||||||
- cd tests && ctest -V
|
- 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:
|
volumes:
|
||||||
- name: debian-package-cache
|
- name: debian-package-cache
|
||||||
path: /var/cache/apt/archives
|
path: /var/cache/apt/archives
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
:uri-mastodon-cpp: https://schlomp.space/tastytea/mastodon-cpp
|
:uri-mastodon-cpp: https://schlomp.space/tastytea/mastodon-cpp
|
||||||
:uri-reference: https://doc.schlomp.space/{project}/
|
:uri-reference: https://doc.schlomp.space/{project}/
|
||||||
:uri-gcc: https://gcc.gnu.org/
|
:uri-gcc: https://gcc.gnu.org/
|
||||||
|
:uti-clang: https://clang.llvm.org/
|
||||||
:uri-cmake: https://cmake.org/
|
:uri-cmake: https://cmake.org/
|
||||||
:uri-doxygen: http://www.doxygen.nl/
|
:uri-doxygen: http://www.doxygen.nl/
|
||||||
:uri-catch: https://github.com/catchorg/Catch2
|
:uri-catch: https://github.com/catchorg/Catch2
|
||||||
@ -39,7 +40,7 @@ Have a look at the link:{uri-reference}[reference].
|
|||||||
==== Dependencies
|
==== Dependencies
|
||||||
|
|
||||||
* Tested OS: Linux
|
* Tested OS: Linux
|
||||||
* C++ compiler (tested: link:{uri-gcc}[GCC] 7/8/9)
|
* C++ compiler (tested: link:{uri-gcc}[GCC] 7/8/9, link:{uri-lang}[clang] 6/7)
|
||||||
* link:{uri-cmake}[CMake] (at least: 3.9)
|
* link:{uri-cmake}[CMake] (at least: 3.9)
|
||||||
* link:{uri-curl}[curl] (tested: 7.66 / 7.58)
|
* link:{uri-curl}[curl] (tested: 7.66 / 7.58)
|
||||||
* Optional
|
* Optional
|
||||||
|
Loading…
x
Reference in New Issue
Block a user