diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2019-06-26 14:40:19 +0200 |
---|---|---|
committer | Jędrzej Nowacki <jedrzej.nowacki@qt.io> | 2019-07-02 13:08:26 +0000 |
commit | 3607ff064be7ce70a7d12bd486eaea55630bb7f7 (patch) | |
tree | 5b8d4f75e375a9c30136479c59edfa317827d598 /coin/module_config.yaml | |
parent | 5488c380d1c53bd846f44a63afad03d934c44d62 (diff) |
Disable tests when building statically
The resulting test artifacts are way to huge to upload.
Change-Id: I6df1f1c4bdb0fe2cfb7f7baed8999a1ee24b879e
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
Diffstat (limited to 'coin/module_config.yaml')
-rw-r--r-- | coin/module_config.yaml | 61 |
1 files changed, 40 insertions, 21 deletions
diff --git a/coin/module_config.yaml b/coin/module_config.yaml index be7882f0b3..8365e7a67d 100644 --- a/coin/module_config.yaml +++ b/coin/module_config.yaml @@ -160,6 +160,44 @@ call_cmake_instructions: &call_cmake property: host.os equals_value: Windows +upload_test_artifacts_instruction: &upload_test_artifacts + type: Group + instructions: + - type: UploadTestArtifact + transferType: UploadModuleTestsArtifact + archiveDirectory: "{{.SourceDir}}/tests" + maxTimeInSeconds: 1200 + maxTimeBetweenOutput: 1200 + disable_if: + condition: property + property: configureArgs + in_values: "-DBUILD_SHARED_LIBS=OFF" + +regular_specific_test_instructions: ®ular_test_instructions + type: Group + instructions: + - type: InstallTestBinaryArchive + relativeStoragePath: "{{.Env.MODULE_ARTIFACTS_RELATIVE_STORAGE_PATH}}" + directory: "{{.SourceDir}}/tests" + maxTimeInSeconds: 1200 + maxTimeBetweenOutput: 1200 + userMessageOnFailure: > + Failed to install tests archive. + - type: ChangeDirectory + directory: "{{.SourceDir}}/tests" + - type: ExecuteCommand + command: "ctest -V --rerun-failed" + ignoreExitCode: true + maxTimeInSeconds: 7200 + maxTimeBetweenOutput: 900 + userMessageOnFailure: > + Failed to run tests. + disable_if: + condition: property + property: configureArgs + in_values: "-DBUILD_SHARED_LIBS=OFF" + + build_instructions: - type: MakeDirectory directory: .git @@ -256,26 +294,7 @@ build_instructions: 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" - maxTimeInSeconds: 1200 - maxTimeBetweenOutput: 1200 + - *upload_test_artifacts test_instructions: - - type: InstallTestBinaryArchive - relativeStoragePath: "{{.Env.MODULE_ARTIFACTS_RELATIVE_STORAGE_PATH}}" - directory: "{{.SourceDir}}/tests" - maxTimeInSeconds: 1200 - maxTimeBetweenOutput: 1200 - userMessageOnFailure: > - Failed to install tests archive. - - type: ChangeDirectory - directory: "{{.SourceDir}}/tests" - - type: ExecuteCommand - command: "ctest -V --rerun-failed" - ignoreExitCode: true - maxTimeInSeconds: 7200 - maxTimeBetweenOutput: 900 - userMessageOnFailure: > - Failed to run tests. + - *regular_test_instructions |