Allow overriding CMake build timeout values
This allows modules to set custom timeouts for the builds. Works by modules setting the CMAKE_BUILD_TIMEOUT and CMAKE_BUILD_OUTPUT_TIMEOUT in the module's module_config. Change-Id: I6f0170d77e9a962fb37e171d1c0d8c7b2277bb96 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
9a94c4a415
commit
0ed6fd77a0
@ -11,10 +11,24 @@ instructions:
|
|||||||
# The lack of space between the non qtbase configure args and the rest of the args is important!
|
# The lack of space between the non qtbase configure args and the rest of the args is important!
|
||||||
variableValue: "{{.Env.NON_QTBASE_CONFIGURE_ARGS}} -DQT_BUILD_TESTS=OFF -DCMAKE_AUTOGEN_VERBOSE=ON {{.SourceDir}}"
|
variableValue: "{{.Env.NON_QTBASE_CONFIGURE_ARGS}} -DQT_BUILD_TESTS=OFF -DCMAKE_AUTOGEN_VERBOSE=ON {{.SourceDir}}"
|
||||||
- !include "{{qt/qtbase}}/call_cmake.yaml"
|
- !include "{{qt/qtbase}}/call_cmake.yaml"
|
||||||
|
- type: EnvironmentVariable
|
||||||
|
variableName: CMAKE_BUILD_TIMEOUT
|
||||||
|
variableValue: "6000"
|
||||||
|
enable_if:
|
||||||
|
condition: runtime
|
||||||
|
env_var: CMAKE_BUILD_TIMEOUT
|
||||||
|
equals_value: null
|
||||||
|
- type: EnvironmentVariable
|
||||||
|
variableName: CMAKE_BUILD_OUTPUT_TIMEOUT
|
||||||
|
variableValue: "1200"
|
||||||
|
enable_if:
|
||||||
|
condition: runtime
|
||||||
|
env_var: CMAKE_BUILD_OUTPUT_TIMEOUT
|
||||||
|
equals_value: null
|
||||||
- type: ExecuteCommand
|
- type: ExecuteCommand
|
||||||
command: "{{.Env.ENV_PREFIX}} cmake --build . --parallel -v"
|
command: "{{.Env.ENV_PREFIX}} cmake --build . --parallel -v"
|
||||||
maxTimeInSeconds: 6000
|
maxTimeInSeconds: "{{.Env.CMAKE_BUILD_TIMEOUT}}"
|
||||||
maxTimeBetweenOutput: 1200
|
maxTimeBetweenOutput: "{{.Env.CMAKE_BUILD_OUTPUT_TIMEOUT}}"
|
||||||
userMessageOnFailure: >
|
userMessageOnFailure: >
|
||||||
Failed to build sources. In the current state bug can be everywhere.
|
Failed to build sources. In the current state bug can be everywhere.
|
||||||
- type: EnvironmentVariable
|
- type: EnvironmentVariable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user