Add clang to Travis configurations
This adds the clang compiler to the tested Travis configurations.
This commit is contained in:
12
.ci/ci.sh
12
.ci/ci.sh
@@ -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
|
||||
|
Reference in New Issue
Block a user