| 1 |
type: Group |
| 2 |
instructions: |
| 3 |
- type: ChangeDirectory |
| 4 |
directory: "{{.SourceDir}}" |
| 5 |
- type: MakeDirectory |
| 6 |
directory: "{{.SourceDir}}_standalone_tests" |
| 7 |
- type: SetBuildDirectory |
| 8 |
directory: "{{.SourceDir}}_standalone_tests" |
| 9 |
- type: ChangeDirectory |
| 10 |
directory: "{{.BuildDir}}" |
| 11 |
- type: AppendToEnvironmentVariable |
| 12 |
variableName: COIN_CMAKE_ARGS |
| 13 |
variableValue: " -S {{.SourceDir}} -B ." |
| 14 |
disable_if: |
| 15 |
condition: runtime |
| 16 |
env_var: COIN_CMAKE_ARGS |
| 17 |
equals_value: null |
| 18 |
- type: EnvironmentVariable |
| 19 |
variableName: COIN_CMAKE_ARGS |
| 20 |
variableValue: "-S {{.SourceDir}} -B ." |
| 21 |
enable_if: |
| 22 |
condition: runtime |
| 23 |
env_var: COIN_CMAKE_ARGS |
| 24 |
equals_value: null |
| 25 |
|
| 26 |
# Set an informational build environment env var during the an integration's build phase. |
| 27 |
# It can be checked during Qt and standalone tests configuration (so configure, |
| 28 |
# qt-configure-module and qt-internal-configure-tests time). |
| 29 |
# It's currently needed for some CMake autotest iOS-specific decisions, but it could be useful |
| 30 |
# for other scenarios as well. |
| 31 |
# |
| 32 |
# A related QTEST_ENVIRONMENT env var is set during an integration's test phase. |
| 33 |
# |
| 34 |
# Note that CMake auto tests are configured and built during the /test/ phase, NOT the build |
| 35 |
# phase. |
| 36 |
# BUT, the options that will be passed to the project cmake invocation in the test phase, are |
| 37 |
# decided during the /build/ phase. |
| 38 |
- type: EnvironmentVariable |
| 39 |
variableName: QT_BUILD_ENVIRONMENT |
| 40 |
variableValue: "ci" |
| 41 |
|
| 42 |
# Inform CMake to build just a minimal set of tests for static Qt builds. |
| 43 |
- type: AppendToEnvironmentVariable |
| 44 |
variableName: COIN_CMAKE_ARGS |
| 45 |
variableValue: " -DQT_BUILD_MINIMAL_STATIC_TESTS=ON" |
| 46 |
enable_if: |
| 47 |
condition: property |
| 48 |
property: features |
| 49 |
contains_value: "MinimalStaticTests" |
| 50 |
|
| 51 |
# Inform CMake to build just a minimal set of tests for Android multi-ABI Qt builds. |
| 52 |
- type: AppendToEnvironmentVariable |
| 53 |
variableName: COIN_CMAKE_ARGS |
| 54 |
variableValue: " -DQT_BUILD_MINIMAL_ANDROID_MULTI_ABI_TESTS=ON" |
| 55 |
enable_if: |
| 56 |
condition: property |
| 57 |
property: features |
| 58 |
contains_value: "MinimalAndroidMultiABITests" |
| 59 |
|
| 60 |
- !include "{{qt/qtbase}}/call_cmake_for_standalone_tests.yaml" |
| 61 |
- type: ExecuteCommand |
| 62 |
command: "{{.Env.TESTS_ENV_PREFIX}} cmake --build . --parallel -v" |
| 63 |
maxTimeInSeconds: 6000 |
| 64 |
maxTimeBetweenOutput: 4800 |
| 65 |
userMessageOnFailure: > |
| 66 |
Failed to build sources. |
| 67 |
- type: UploadTestArtifact |
| 68 |
transferType: UploadModuleTestsArtifact |
| 69 |
archiveDirectory: "{{.BuildDir}}" |
| 70 |
maxTimeInSeconds: 1200 |
| 71 |
maxTimeBetweenOutput: 1200 |
| 72 |
# INTEGRITY artifacts aren't used. |
| 73 |
disable_if: |
| 74 |
condition: or |
| 75 |
conditions: |
| 76 |
- condition: property |
| 77 |
property: target.osVersion |
| 78 |
equals_value: INTEGRITY |
| 79 |
- condition: property |
| 80 |
property: features |
| 81 |
contains_value: DoNotUploadTests |
| 82 |
- condition: property |
| 83 |
property: features |
| 84 |
contains_value: BuildTestsInTest |