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
|
2021-12-15 18:15:42 +00:00
|
|
|
variableValue: " -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
|
2021-12-15 18:15:42 +00:00
|
|
|
variableValue: "-S {{.SourceDir}} -B ."
|
2020-08-19 06:19:14 +00:00
|
|
|
enable_if:
|
|
|
|
condition: runtime
|
|
|
|
env_var: COIN_CMAKE_ARGS
|
|
|
|
equals_value: null
|
|
|
|
|
2021-08-19 14:19:21 +00:00
|
|
|
# Set an informational build environment env var during the an integration's build phase.
|
|
|
|
# It can be checked during Qt and standalone tests configuration (so configure,
|
|
|
|
# qt-configure-module and qt-internal-configure-tests time).
|
|
|
|
# It's currently needed for some CMake autotest iOS-specific decisions, but it could be useful
|
|
|
|
# for other scenarios as well.
|
|
|
|
#
|
|
|
|
# A related QTEST_ENVIRONMENT env var is set during an integration's test phase.
|
|
|
|
#
|
|
|
|
# Note that CMake auto tests are configured and built during the /test/ phase, NOT the build
|
|
|
|
# phase.
|
|
|
|
# BUT, the options that will be passed to the project cmake invocation in the test phase, are
|
|
|
|
# decided during the /build/ phase.
|
|
|
|
- type: EnvironmentVariable
|
|
|
|
variableName: QT_BUILD_ENVIRONMENT
|
|
|
|
variableValue: "ci"
|
|
|
|
|
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
|
2021-11-15 12:19:38 +00:00
|
|
|
maxTimeBetweenOutput: 4800
|
2019-08-22 06:21:24 +00:00
|
|
|
userMessageOnFailure: >
|
2022-03-17 07:26:16 +00:00
|
|
|
Failed to build sources.
|
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
|
2021-11-29 13:25:02 +00:00
|
|
|
# INTEGRITY artifacts aren't used.
|
|
|
|
disable_if:
|
|
|
|
condition: property
|
|
|
|
property: target.osVersion
|
|
|
|
equals_value: INTEGRITY
|