2019-08-22 06:21:24 +00:00
|
|
|
type: Group
|
|
|
|
instructions:
|
|
|
|
- type: ChangeDirectory
|
2019-11-01 10:48:23 +00:00
|
|
|
directory: "{{.SourceDir}}"
|
|
|
|
- type: MakeDirectory
|
2020-03-11 13:17:50 +00:00
|
|
|
directory: "{{.SourceDir}}_standalone_tests"
|
2019-11-01 10:48:23 +00:00
|
|
|
- type: SetBuildDirectory
|
2020-03-11 13:17:50 +00:00
|
|
|
directory: "{{.SourceDir}}_standalone_tests"
|
2019-11-01 10:48:23 +00:00
|
|
|
- type: ChangeDirectory
|
|
|
|
directory: "{{.BuildDir}}"
|
2020-08-19 06:19:14 +00:00
|
|
|
- type: AppendToEnvironmentVariable
|
|
|
|
variableName: COIN_CMAKE_ARGS
|
2020-10-23 12:37:58 +00:00
|
|
|
variableValue: " -DCMAKE_AUTOGEN_VERBOSE=ON -S {{.SourceDir}} -B ."
|
2020-08-19 06:19:14 +00:00
|
|
|
disable_if:
|
|
|
|
condition: runtime
|
|
|
|
env_var: COIN_CMAKE_ARGS
|
|
|
|
equals_value: null
|
2019-08-22 06:21:24 +00:00
|
|
|
- type: EnvironmentVariable
|
|
|
|
variableName: COIN_CMAKE_ARGS
|
2020-10-23 12:37:58 +00:00
|
|
|
variableValue: "-DCMAKE_AUTOGEN_VERBOSE=ON -S {{.SourceDir}} -B ."
|
2020-08-19 06:19:14 +00:00
|
|
|
enable_if:
|
|
|
|
condition: runtime
|
|
|
|
env_var: COIN_CMAKE_ARGS
|
|
|
|
equals_value: null
|
|
|
|
|
2021-03-15 16:03:38 +00:00
|
|
|
# Inform CMake to build just a minimal set of tests for static Qt builds.
|
|
|
|
- type: AppendToEnvironmentVariable
|
|
|
|
variableName: COIN_CMAKE_ARGS
|
|
|
|
variableValue: " -DQT_BUILD_MINIMAL_STATIC_TESTS=ON"
|
|
|
|
enable_if:
|
|
|
|
condition: property
|
|
|
|
property: features
|
|
|
|
contains_value: "MinimalStaticTests"
|
|
|
|
|
2020-05-18 15:05:50 +00:00
|
|
|
- !include "{{qt/qtbase}}/call_cmake_for_standalone_tests.yaml"
|
2019-08-22 06:21:24 +00:00
|
|
|
- type: ExecuteCommand
|
2020-06-12 15:50:30 +00:00
|
|
|
command: "{{.Env.TESTS_ENV_PREFIX}} cmake --build . --parallel -v"
|
2019-08-22 06:21:24 +00:00
|
|
|
maxTimeInSeconds: 6000
|
2019-09-03 11:33:57 +00:00
|
|
|
maxTimeBetweenOutput: 1200
|
2019-08-22 06:21:24 +00:00
|
|
|
userMessageOnFailure: >
|
2020-02-13 09:40:41 +00:00
|
|
|
Failed to build sources. In the current state bug can be everywhere.
|
2019-08-22 06:21:24 +00:00
|
|
|
- type: UploadTestArtifact
|
|
|
|
transferType: UploadModuleTestsArtifact
|
2019-11-01 10:48:23 +00:00
|
|
|
archiveDirectory: "{{.BuildDir}}"
|
2019-08-22 06:21:24 +00:00
|
|
|
maxTimeInSeconds: 1200
|
|
|
|
maxTimeBetweenOutput: 1200
|