g3log/scripts/buildAndRunTests.sh
KjellKod 81a7c9109d Updated travis build script to accept any g++ version
Updated the fatal choice example with informative couts
2014-12-12 02:05:51 -07:00

42 lines
851 B
Bash
Executable File

#!/bin/bash
set -ev
unzip -o 3rdParty/gtest/gtest-1.7.0.zip -d 3rdParty/gtest
if [ "$CXX" = "g++" ]; then export CXX=g++-4.8; fi
if [ "$CXX" = "clang++" ]; then export CXX=clang++-3.4; fi
echo $TRAVIS_OS_NAME
echo $CXX
mkdir -p build_travis
cd build_travis
if [[ $CXX == *"g++"* ]]
then
echo "Testing with g++"
cmake -DCMAKE_CXX_COMPILER=g++ -DUSE_G3LOG_UNIT_TEST=ON ..
make -j
./test_concept_sink
./test_configuration
./test_dynamic_loaded_shared_lib
./test_filechange
./test_io
./test_sink
fi
if [ "$CXX" = "clang++-3.4" ]
then
echo "Testing with Clang++"
cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS=-std=gnu++11 -DUSE_G3LOG_UNIT_TEST=ON ..
make -j
./test_concept_sink
./test_configuration
#./test_dynamic_loaded_shared_lib
./test_filechange
./test_io
./test_sink
fi