diff options
author | Jędrzej Nowacki <jedrzej.nowacki@qt.io> | 2019-07-01 15:01:33 +0200 |
---|---|---|
committer | Jędrzej Nowacki <jedrzej.nowacki@qt.io> | 2019-07-02 13:08:59 +0000 |
commit | 655e8113cd7ebe90da4036e8c1f4752e55a6dae5 (patch) | |
tree | f914acba8dccd6050175991739748cf7774ccdb3 /coin | |
parent | 65d5e725d3d0b99451da8f1ee5fe50cd88ee9084 (diff) |
Skip building tests for static builds
We do not run the test in such configuration. In theory the build
should success (it doesn't for now) but it creates a lot of data.
So the coverage gain vs cost ratio is not great.
This workaround aims to unblock cmake builds.
Change-Id: Icd730d88bf800ee2e7764704a92238ec147d47f9
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'coin')
-rw-r--r-- | coin/module_config.yaml | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/coin/module_config.yaml b/coin/module_config.yaml index 5972090fbf..421aad601f 100644 --- a/coin/module_config.yaml +++ b/coin/module_config.yaml @@ -189,9 +189,18 @@ call_cmake_instructions: &call_cmake property: host.os equals_value: Windows -upload_test_artifacts_instruction: &upload_test_artifacts +build_and_upload_test_artifacts_instruction: &build_and_upload_test_artifacts type: Group instructions: + - type: ChangeDirectory + directory: "{{.SourceDir}}/tests" + - *call_cmake + - type: ExecuteCommand + command: "{{.Env.ENV_PREFIX}} cmake --build ." + maxTimeInSeconds: 6000 + maxTimeBetweenOutput: 120 + userMessageOnFailure: > + Failed to build sources. In the current state bug can be everywhere. Contact Liang first. - type: UploadTestArtifact transferType: UploadModuleTestsArtifact archiveDirectory: "{{.SourceDir}}/tests" @@ -200,7 +209,7 @@ upload_test_artifacts_instruction: &upload_test_artifacts disable_if: condition: property property: configureArgs - in_values: "-DBUILD_SHARED_LIBS=OFF" + contains_value: "-DBUILD_SHARED_LIBS=OFF" regular_specific_test_instructions: ®ular_test_instructions type: Group @@ -315,16 +324,7 @@ build_instructions: transferType: UploadModuleBuildArtifact maxTimeInSeconds: 1200 maxTimeBetweenOutput: 1200 - - type: ChangeDirectory - directory: "{{.SourceDir}}/tests" - - *call_cmake - - type: ExecuteCommand - command: "{{.Env.ENV_PREFIX}} cmake --build ." - maxTimeInSeconds: 6000 - maxTimeBetweenOutput: 120 - userMessageOnFailure: > - Failed to build sources. In the current state bug can be everywhere. Contact Liang first. - - *upload_test_artifacts + - *build_and_upload_test_artifacts test_instructions: - *regular_test_instructions |