attempt to workound the tests timeout in Travis

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-07-05 01:12:29 +00:00
parent 395a1d52f9
commit 911a16a494
3 changed files with 7 additions and 8 deletions

View file

@ -22,6 +22,4 @@ script:
- if [ "$CXX" == "clang++" ];then cmake ../ -GNinja -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING=TRUE -DKATIE_UTILS=ON -Wno-dev ;fi
- if [ "$CXX" == "g++" ];then cmake ../ -GNinja -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING=TRUE -DKATIE_UTILS=ON -DKATIE_ALLINONE=ON -Wno-dev ;fi
- ninja
# the tests/benchmarks take more then 1-hour and Travis times out,
# also the tests output is not verbose and trigger Travis hang
# protection
- if [ "$CXX" == "g++" ];then ninja test ;fi

View file

@ -55,11 +55,6 @@ endif()
set(CPACK_PACKAGE_FILE_NAME "Katie-4.9.0-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}-${CMAKE_BUILD_TYPE}")
include(CPack)
# 9 minutes timeout for the tests, Travis timeouts on 10min if there is no
# output and I do not want some tests to be skipped because of one test. Like
# the qpainter test - it does a lot of tests and can take more then 10min.
set(CTEST_TEST_TIMEOUT 540)
if(NOT CMAKE_VERSION VERSION_LESS "3.3.0")
cmake_policy(SET CMP0063 NEW)
endif()

View file

@ -12,5 +12,11 @@ shift
export CTEST_OUTPUT_ON_FAILURE=1
# 9 minutes timeout for the tests, Travis timeouts on 10min if there is no
# output and I do not want some tests to be skipped because of one test. Like
# the qpainter test - it does a lot of tests and can take more then 10min.
export CTEST_TEST_TIMEOUT=540
cd "$(dirname "$bin")"
exec "./$(basename "$bin")" $@