Skip to content

Commit 75c9b06

Browse files
committed
Revert "Re-enable travis checks for build warnings"
This reverts commit 47b69c4.
1 parent 5d7f54d commit 75c9b06

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.ci/travis/linux/docker-build-test.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,20 @@ echo "travis_fold:end:cmake"
7272
TRAVIS_TIME=120
7373
UPLOAD_TIME=5
7474
CURRENT_TIME=$(date +%s)
75+
TIMEOUT=$((( TRAVIS_TIME - UPLOAD_TIME ) * 60 - CURRENT_TIME + TRAVIS_TIMESTAMP))
76+
TIMEOUT=$(( TIMEOUT < 300 ? 300 : TIMEOUT ))
77+
echo "Timeout: ${TIMEOUT}s (started at ${TRAVIS_TIMESTAMP}, current: ${CURRENT_TIME})"
78+
79+
# echo "travis_fold:start:ninja-build.1"
80+
echo "${bold}Building QGIS...${endbold}"
81+
timeout ${TIMEOUT}s ${CTEST_BUILD_COMMAND}
82+
# echo "travis_fold:end:ninja-build.1"
83+
84+
rv=$?
85+
if [ $rv -eq 124 ] ; then
86+
printf '\n\n${bold}Build and test timeout. Please restart the build for meaningful results.${endbold}\n'
87+
exit #$rv
88+
fi
7589

7690
# Temporarily uncomment to debug ccache issues
7791
# echo "travis_fold:start:ccache-debug"

0 commit comments

Comments
 (0)