2014-10-11 20:16:54 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ev
|
|
|
|
|
|
|
|
unzip -o 3rdParty/gtest/gtest-1.7.0.zip -d 3rdParty/gtest
|
2014-10-11 23:00:18 -06:00
|
|
|
|
|
|
|
|
|
|
|
if [ "$CXX" = "g++" ]; then export CXX=g++-4.8; fi
|
|
|
|
if [ "$CXX" = "clang++" ]; then export CXX=clang++-3.4; fi
|
2014-10-11 21:36:39 -06:00
|
|
|
echo $TRAVIS_OS_NAME
|
2014-10-11 22:49:25 -06:00
|
|
|
echo $CXX
|
2014-10-11 20:16:54 -06:00
|
|
|
|
2014-10-11 23:00:18 -06:00
|
|
|
|
2014-12-12 02:05:51 -07:00
|
|
|
mkdir -p build_travis
|
2014-10-11 23:00:18 -06:00
|
|
|
cd build_travis
|
|
|
|
|
2014-12-12 02:05:51 -07:00
|
|
|
if [[ $CXX == *"g++"* ]]
|
2014-10-11 21:57:07 -06:00
|
|
|
then
|
|
|
|
echo "Testing with g++"
|
2014-10-11 21:36:39 -06:00
|
|
|
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
|
2014-10-11 20:16:54 -06:00
|
|
|
|
2014-10-11 22:49:25 -06:00
|
|
|
if [ "$CXX" = "clang++-3.4" ]
|
2014-10-11 21:57:07 -06:00
|
|
|
then
|
2014-10-11 21:36:39 -06:00
|
|
|
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
|
2014-12-12 02:05:51 -07:00
|
|
|
fi
|