bcc7d34540
This is meant to be called by our CI instructions to build standalone tests of a Qt repository. Currently it just calls qt-cmake with -DQT_BUILD_STANDALONE_TESTS=ON, but it might contain more things in the future. The script also simplifies configuring standalone tests locally, due to not having to remember the name of the magical variable. Change our CI instructions to use the new script. Change-Id: I6bc02b4e94adc9d0d05fecb0fe70a561043271f1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
type: Group
|
|
instructions:
|
|
- type: ChangeDirectory
|
|
directory: "{{.SourceDir}}"
|
|
- type: MakeDirectory
|
|
directory: "{{.SourceDir}}_standalone_tests"
|
|
- type: SetBuildDirectory
|
|
directory: "{{.SourceDir}}_standalone_tests"
|
|
- type: ChangeDirectory
|
|
directory: "{{.BuildDir}}"
|
|
- type: AppendToEnvironmentVariable
|
|
variableName: COIN_CMAKE_ARGS
|
|
variableValue: " -DCMAKE_AUTOGEN_VERBOSE=ON -S {{.SourceDir}} -B ."
|
|
disable_if:
|
|
condition: runtime
|
|
env_var: COIN_CMAKE_ARGS
|
|
equals_value: null
|
|
- type: EnvironmentVariable
|
|
variableName: COIN_CMAKE_ARGS
|
|
variableValue: "-DCMAKE_AUTOGEN_VERBOSE=ON -S {{.SourceDir}} -B ."
|
|
enable_if:
|
|
condition: runtime
|
|
env_var: COIN_CMAKE_ARGS
|
|
equals_value: null
|
|
|
|
- !include "{{qt/qtbase}}/call_cmake_for_standalone_tests.yaml"
|
|
- type: ExecuteCommand
|
|
command: "{{.Env.TESTS_ENV_PREFIX}} cmake --build . --parallel -v"
|
|
maxTimeInSeconds: 6000
|
|
maxTimeBetweenOutput: 1200
|
|
userMessageOnFailure: >
|
|
Failed to build sources. In the current state bug can be everywhere.
|
|
- type: UploadTestArtifact
|
|
transferType: UploadModuleTestsArtifact
|
|
archiveDirectory: "{{.BuildDir}}"
|
|
maxTimeInSeconds: 1200
|
|
maxTimeBetweenOutput: 1200
|
|
disable_if:
|
|
condition: property
|
|
property: configureArgs
|
|
contains_value: "-DBUILD_SHARED_LIBS=OFF"
|