2014-10-12 04:16:54 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ev
|
|
|
|
|
|
|
|
unzip -o 3rdParty/gtest/gtest-1.7.0.zip -d 3rdParty/gtest
|
2014-10-12 07:00:18 +02:00
|
|
|
|
|
|
|
|
2016-08-11 08:27:52 +02:00
|
|
|
#if [ "$CXX" = "g++" ]; then export CXX=g++-5; fi
|
|
|
|
#if [ "$CXX" = "clang++" ]; then export CXX=clang++-3.4; fi
|
|
|
|
#echo $TRAVIS_OS_NAME
|
|
|
|
#echo $CXX
|
2014-10-12 04:16:54 +02:00
|
|
|
|
2014-10-12 07:00:18 +02:00
|
|
|
|
2014-12-12 10:05:51 +01:00
|
|
|
mkdir -p build_travis
|
2014-10-12 07:00:18 +02:00
|
|
|
cd build_travis
|
2016-08-11 08:27:52 +02:00
|
|
|
# OSX: cmake -DCMAKE_CXX_FLAGS=-std=gnu++11 -DADD_G3LOG_UNIT_TEST=ON ..
|
|
|
|
cmake -DCMAKE_CXX_FLAGS=-std=c++14 -DADD_G3LOG_UNIT_TEST=ON ..
|
|
|
|
make -j
|
|
|
|
./test_concept_sink && \
|
|
|
|
./test_cpp_future_concepts && \
|
|
|
|
./test_dynamic_loaded_shared_lib | true && \
|
|
|
|
./test_filechange && \
|
|
|
|
./test_io && \
|
|
|
|
./test_sink && \
|
|
|
|
./test_message
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if [[ $CXX == *"g++"* ]]
|
|
|
|
#then
|
|
|
|
# echo "Testing with g++"
|
|
|
|
# cmake -DUSE_DYNAMIC_LOGGING_LEVELS=ON -DADD_G3LOG_UNIT_TEST=ON ..
|
|
|
|
# make -j
|
|
|
|
# ./test_concept_sink
|
|
|
|
# ./test_cpp_future_concepts
|
|
|
|
# ./test_dynamic_loaded_shared_lib
|
|
|
|
# ./test_filechange
|
|
|
|
# ./test_io
|
|
|
|
# ./test_sink
|
|
|
|
#else
|
|
|
|
#if [ "$CXX" = "clang++-3.4" ]
|
|
|
|
#then
|
|
|
|
# echo "Testing with Clang++"
|
|
|
|
# cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS=-std=gnu++11 -DADD_G3LOG_UNIT_TEST=ON ..
|
|
|
|
# make -j
|
|
|
|
# ./test_concept_sink
|
|
|
|
# ./test_cpp_future_concepts
|
|
|
|
# ./test_dynamic_loaded_shared_lib
|
|
|
|
# ./test_filechange
|
|
|
|
# ./test_io
|
|
|
|
# ./test_sink
|
|
|
|
# fi
|