diff options
author | Toni Saario <toni.saario@qt.io> | 2021-07-02 11:55:17 +0300 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-08-10 13:21:28 +0000 |
commit | 9f33c73ca8fcbb3d8149433fc233c261ba2d6a9c (patch) | |
tree | 3e7dedb0d9e8112594efd761d41968fbfabbb7eb /coin | |
parent | c05842e920ddbda09ef74f552f5861c2b8acd934 (diff) |
Apply custom timeouts to cross compilations
Change-Id: I93ce6b6a6011a0883820f291121d7374391494c6
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
(cherry picked from commit 2f3b234d6c776099acef1b3d3ce4cdad25240677)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'coin')
-rw-r--r-- | coin/instructions/cmake_cross_compilation_module_build_instructions.yaml | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/coin/instructions/cmake_cross_compilation_module_build_instructions.yaml b/coin/instructions/cmake_cross_compilation_module_build_instructions.yaml index e5e257f181..8df1720be6 100644 --- a/coin/instructions/cmake_cross_compilation_module_build_instructions.yaml +++ b/coin/instructions/cmake_cross_compilation_module_build_instructions.yaml @@ -1,5 +1,19 @@ type: Group instructions: + - 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: MakeDirectory directory: .git - type: MakeDirectory @@ -23,8 +37,8 @@ instructions: - !include "{{qt/qtbase}}/call_host_cmake.yaml" - type: ExecuteCommand command: "{{.Env.ENV_PREFIX}} cmake --build . --parallel -v" - maxTimeInSeconds: 6000 - maxTimeBetweenOutput: 1200 + maxTimeInSeconds: "{{.Env.CMAKE_BUILD_TIMEOUT}}" + maxTimeBetweenOutput: "{{.Env.CMAKE_BUILD_OUTPUT_TIMEOUT}}" userMessageOnFailure: > Failed to build sources. In the current state bug can be everywhere. - type: EnvironmentVariable @@ -53,8 +67,8 @@ instructions: - !include "{{qt/qtbase}}/call_target_cmake.yaml" - type: ExecuteCommand command: "{{.Env.TARGET_ENV_PREFIX}} cmake --build . --parallel -v" - maxTimeInSeconds: 6000 - maxTimeBetweenOutput: 1200 + maxTimeInSeconds: "{{.Env.CMAKE_BUILD_TIMEOUT}}" + maxTimeBetweenOutput: "{{.Env.CMAKE_BUILD_OUTPUT_TIMEOUT}}" userMessageOnFailure: > Failed to build sources. In the current state bug can be everywhere. - type: EnvironmentVariable |