diff options
author | Liang Qi <liang.qi@qt.io> | 2019-08-22 08:21:24 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2019-08-30 08:40:02 +0000 |
commit | 8367a51c6d8b63ae3195ec5d46d3a2aee6ea7222 (patch) | |
tree | b491999504a905003a43bdce5e4060214fb82d6e /coin/module_config.yaml | |
parent | 88883dbf60b4436a54a4f7e762d09372b9275198 (diff) |
Share most common part of module_config.yaml
Change-Id: Ieea5b662e039cff24e26a127b4a3a8610ed588cc
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'coin/module_config.yaml')
-rw-r--r-- | coin/module_config.yaml | 123 |
1 files changed, 3 insertions, 120 deletions
diff --git a/coin/module_config.yaml b/coin/module_config.yaml index 565dd52554..75607753cc 100644 --- a/coin/module_config.yaml +++ b/coin/module_config.yaml @@ -4,127 +4,10 @@ accept_configuration: property: host.os equals_property: target.os -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 - -build_and_upload_test_artifacts_instruction: &build_and_upload_test_artifacts - type: Group - instructions: - - 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. - - type: UploadTestArtifact - transferType: UploadModuleTestsArtifact - archiveDirectory: "{{.SourceDir}}/tests" - maxTimeInSeconds: 1200 - maxTimeBetweenOutput: 1200 - disable_if: - condition: property - property: configureArgs - contains_value: "-DBUILD_SHARED_LIBS=OFF" - -regular_specific_test_instructions: ®ular_test_instructions - type: Group - instructions: - - type: InstallTestBinaryArchive - relativeStoragePath: "{{.Env.MODULE_ARTIFACTS_RELATIVE_STORAGE_PATH}}/tests.tar.gz" - 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 - contains_value: "-DBUILD_SHARED_LIBS=OFF" - - build_instructions: - - type: MakeDirectory - directory: .git - - type: SetBuildDirectory - directory: "{{.SourceDir}}" - - type: ChangeDirectory - directory: "{{.BuildDir}}" - !include "{{qt/qtbase}}/prepare_building_env.yaml" - - type: ExecuteCommand - command: "{{.Env.ENV_PREFIX}} cmake {{.Env.CONFIGURE_ARGS}} -DCMAKE_INSTALL_PREFIX:PATH={{.InstallDir}} -DBUILD_TESTING=OFF {{.SourceDir}}" - executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution - maxTimeInSeconds: 6000 - maxTimeBetweenOutput: 120 - userMessageOnFailure: > - Failed to call cmake. Contact Liang then. - - 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. - - type: ExecuteCommand - command: "{{.Env.ENV_PREFIX}} cmake --install ." - maxTimeInSeconds: 6000 - maxTimeBetweenOutput: 120 - userMessageOnFailure: > - 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. - - type: SignPackage - enable_if: - condition: property - property: host.os - equals_value: Windows - directory: "{{.InstallRoot}}/{{.AgentWorkingDir}}" - maxTimeInSeconds: 1200 - maxTimeBetweenOutput: 1200 - - type: UploadArtifact - archiveDirectory: "{{.InstallRoot}}/{{.AgentWorkingDir}}" - transferType: UploadModuleBuildArtifact - maxTimeInSeconds: 1200 - maxTimeBetweenOutput: 1200 - - *build_and_upload_test_artifacts + - !include "{{qt/qtbase}}/cmake_qtbase_build_instructions.yaml" + - !include "{{qt/qtbase}}/cmake_build_and_upload_test_artifacts.yaml" test_instructions: - - *regular_test_instructions + - !include "{{qt/qtbase}}/cmake_regular_test_instructions.yaml" |