2019-04-25 09:44:20 +00:00
|
|
|
version: 1
|
|
|
|
accept_configuration:
|
|
|
|
condition: property
|
|
|
|
property: host.os
|
|
|
|
equals_property: target.os
|
2019-06-03 11:35:41 +00:00
|
|
|
|
2019-06-25 08:02:43 +00:00
|
|
|
call_cmake_instructions: &call_cmake
|
|
|
|
type: Group
|
|
|
|
instructions:
|
|
|
|
- type: ExecuteCommand
|
|
|
|
command: "{{.Env.ENV_PREFIX}} {{.InstallDir}}\\bin\\qt-cmake {{.SourceDir}}/tests"
|
|
|
|
maxTimeInSeconds: 6000
|
|
|
|
maxTimeBetweenOutput: 120
|
|
|
|
userMessageOnFailure: >
|
|
|
|
Failed to call cmake. Contact Liang then.
|
|
|
|
enable_if:
|
|
|
|
condition: property
|
|
|
|
property: host.os
|
|
|
|
equals_value: Windows
|
|
|
|
- type: ExecuteCommand
|
|
|
|
command: "{{.InstallDir}}/bin/qt-cmake {{.SourceDir}}/tests"
|
|
|
|
maxTimeInSeconds: 6000
|
|
|
|
maxTimeBetweenOutput: 120
|
|
|
|
userMessageOnFailure: >
|
|
|
|
Failed to call cmake. Contact Liang then.
|
|
|
|
disable_if:
|
|
|
|
condition: property
|
|
|
|
property: host.os
|
|
|
|
equals_value: Windows
|
|
|
|
|
2019-07-01 13:01:33 +00:00
|
|
|
build_and_upload_test_artifacts_instruction: &build_and_upload_test_artifacts
|
2019-06-26 12:40:19 +00:00
|
|
|
type: Group
|
|
|
|
instructions:
|
2019-07-01 13:01:33 +00:00
|
|
|
- type: ChangeDirectory
|
|
|
|
directory: "{{.SourceDir}}/tests"
|
|
|
|
- *call_cmake
|
|
|
|
- type: ExecuteCommand
|
|
|
|
command: "{{.Env.ENV_PREFIX}} cmake --build ."
|
|
|
|
maxTimeInSeconds: 6000
|
|
|
|
maxTimeBetweenOutput: 120
|
|
|
|
userMessageOnFailure: >
|
|
|
|
Failed to build sources. In the current state bug can be everywhere. Contact Liang first.
|
2019-06-26 12:40:19 +00:00
|
|
|
- type: UploadTestArtifact
|
|
|
|
transferType: UploadModuleTestsArtifact
|
|
|
|
archiveDirectory: "{{.SourceDir}}/tests"
|
|
|
|
maxTimeInSeconds: 1200
|
|
|
|
maxTimeBetweenOutput: 1200
|
|
|
|
disable_if:
|
|
|
|
condition: property
|
|
|
|
property: configureArgs
|
2019-07-01 13:01:33 +00:00
|
|
|
contains_value: "-DBUILD_SHARED_LIBS=OFF"
|
2019-06-26 12:40:19 +00:00
|
|
|
|
|
|
|
regular_specific_test_instructions: ®ular_test_instructions
|
|
|
|
type: Group
|
|
|
|
instructions:
|
|
|
|
- type: InstallTestBinaryArchive
|
2019-07-02 09:52:08 +00:00
|
|
|
relativeStoragePath: "{{.Env.MODULE_ARTIFACTS_RELATIVE_STORAGE_PATH}}/tests.tar.gz"
|
2019-06-26 12:40:19 +00:00
|
|
|
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
|
2019-07-02 13:24:00 +00:00
|
|
|
contains_value: "-DBUILD_SHARED_LIBS=OFF"
|
2019-06-26 12:40:19 +00:00
|
|
|
|
|
|
|
|
2019-04-25 09:44:20 +00:00
|
|
|
build_instructions:
|
|
|
|
- type: MakeDirectory
|
|
|
|
directory: .git
|
|
|
|
- type: SetBuildDirectory
|
|
|
|
directory: "{{.SourceDir}}"
|
|
|
|
- type: ChangeDirectory
|
|
|
|
directory: "{{.BuildDir}}"
|
2019-07-03 06:26:24 +00:00
|
|
|
- !include "{{qt/qtbase}}/prepare_building_env.yaml"
|
2019-04-25 09:44:20 +00:00
|
|
|
- type: ExecuteCommand
|
2019-06-19 14:13:20 +00:00
|
|
|
command: "{{.Env.ENV_PREFIX}} cmake {{.Env.CONFIGURE_ARGS}} -DCMAKE_INSTALL_PREFIX:PATH={{.InstallDir}} -DBUILD_TESTING=OFF {{.SourceDir}}"
|
2019-06-21 12:25:44 +00:00
|
|
|
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
|
2019-04-25 09:44:20 +00:00
|
|
|
maxTimeInSeconds: 6000
|
|
|
|
maxTimeBetweenOutput: 120
|
|
|
|
userMessageOnFailure: >
|
|
|
|
Failed to call cmake. Contact Liang then.
|
|
|
|
- type: ExecuteCommand
|
2019-06-17 07:00:38 +00:00
|
|
|
command: "{{.Env.ENV_PREFIX}} cmake --build ."
|
2019-04-25 09:44:20 +00:00
|
|
|
maxTimeInSeconds: 6000
|
|
|
|
maxTimeBetweenOutput: 120
|
|
|
|
userMessageOnFailure: >
|
2019-05-22 15:01:13 +00:00
|
|
|
Failed to build sources. In the current state bug can be everywhere. Contact Liang first.
|
2019-06-17 07:00:38 +00:00
|
|
|
- type: ExecuteCommand
|
|
|
|
command: "{{.Env.ENV_PREFIX}} cmake --install ."
|
|
|
|
maxTimeInSeconds: 6000
|
|
|
|
maxTimeBetweenOutput: 120
|
|
|
|
userMessageOnFailure: >
|
2019-06-19 14:10:10 +00:00
|
|
|
Failed to install package.
|
|
|
|
- type: EnvironmentVariable
|
|
|
|
variableName: DESTDIR
|
|
|
|
variableValue: "{{.InstallRoot}}"
|
|
|
|
- type: ExecuteCommand
|
|
|
|
command: "{{.Env.ENV_PREFIX}} cmake --install ."
|
|
|
|
maxTimeInSeconds: 6000
|
|
|
|
maxTimeBetweenOutput: 120
|
|
|
|
userMessageOnFailure: >
|
|
|
|
Failed to install package for archiving.
|
2019-04-25 09:44:20 +00:00
|
|
|
- type: SignPackage
|
2019-06-12 13:36:06 +00:00
|
|
|
enable_if:
|
2019-04-25 09:44:20 +00:00
|
|
|
condition: property
|
|
|
|
property: host.os
|
2019-06-12 13:36:06 +00:00
|
|
|
equals_value: Windows
|
2019-04-25 09:44:20 +00:00
|
|
|
directory: "{{.InstallRoot}}/{{.AgentWorkingDir}}"
|
2019-05-16 13:09:55 +00:00
|
|
|
maxTimeInSeconds: 1200
|
|
|
|
maxTimeBetweenOutput: 1200
|
2019-04-25 09:44:20 +00:00
|
|
|
- type: UploadArtifact
|
|
|
|
archiveDirectory: "{{.InstallRoot}}/{{.AgentWorkingDir}}"
|
|
|
|
transferType: UploadModuleBuildArtifact
|
|
|
|
maxTimeInSeconds: 1200
|
|
|
|
maxTimeBetweenOutput: 1200
|
2019-07-01 13:01:33 +00:00
|
|
|
- *build_and_upload_test_artifacts
|
2019-06-25 09:00:01 +00:00
|
|
|
|
|
|
|
test_instructions:
|
2019-06-26 12:40:19 +00:00
|
|
|
- *regular_test_instructions
|