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>bb10
parent
5488c380d1
commit
3607ff064b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue