Add clang to Travis configurations

This adds the clang compiler to the tested Travis configurations.
This commit is contained in:
2018-03-24 18:10:58 +01:00
parent 22238bb398
commit fde2af5841
4 changed files with 27 additions and 5 deletions

View File

@@ -1,7 +1,17 @@
#!/bin/bash
if [ "$1" = "gcc" ]
then
cxx=g++
cc=gcc
elif [ "$1" = "clang" ]
then
cxx=clang++
cc=clang
fi
git submodule update --init --recursive
mkdir -p build/debug
cd build/debug
cmake ../.. -GNinja -DANTHEM_BUILD_TESTS=ON
cmake ../.. -GNinja -DANTHEM_BUILD_TESTS=ON -DCMAKE_CXX_COMPILER=${cxx} -DCMAKE_C_COMPILER=${cc}
ninja anthem-app && ninja run-tests