We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d7f54d commit 75c9b06Copy full SHA for 75c9b06
.ci/travis/linux/docker-build-test.sh
@@ -72,6 +72,20 @@ echo "travis_fold:end:cmake"
72
TRAVIS_TIME=120
73
UPLOAD_TIME=5
74
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
89
90
# Temporarily uncomment to debug ccache issues
91
# echo "travis_fold:start:ccache-debug"
0 commit comments