diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-03-01 11:17:41 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-03-02 16:38:40 +0000 |
commit | 4e2f44f06cd0f0854e163ab72b5b1299ad861239 (patch) | |
tree | 5062a1439fbf5fa9a9a443e0701990255f0fd8a3 /coin | |
parent | 8f6de37d2bc9c77a6d74d2e91785ad79ff57dc87 (diff) |
coin: Split top-level build instructions
Makes it a bit cleaner to follow.
Change-Id: I063581126b6d09f98fb38862c8af5531dc513aca
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Toni Saario <toni.saario@qt.io>
(cherry picked from commit a9c9418c8a8f1364b67a226b61d7580ef90f39d5)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'coin')
-rw-r--r-- | coin/instructions/coin_qt_build_docs.yaml | 33 | ||||
-rw-r--r-- | coin/instructions/coin_qt_build_template.yaml | 4 | ||||
-rw-r--r-- | coin/instructions/coin_qt_configure.yaml | 16 | ||||
-rw-r--r-- | coin/module_config.yaml | 49 |
4 files changed, 54 insertions, 48 deletions
diff --git a/coin/instructions/coin_qt_build_docs.yaml b/coin/instructions/coin_qt_build_docs.yaml new file mode 100644 index 00000000..6f554816 --- /dev/null +++ b/coin/instructions/coin_qt_build_docs.yaml @@ -0,0 +1,33 @@ +type: Group +instructions: + - type: ExecuteCommand + command: "{{.Env.ENV_PREFIX}} cmake --build . --target qtbase/src/plugins/platforms/all qtbase/src/plugins/sqldrivers/all qttools/all --parallel -v" + maxTimeInSeconds: 12000 + maxTimeBetweenOutput: 1200 + userMessageOnFailure: > + Failed to build sources. + - type: ExecuteCommand + command: "{{.Env.ENV_PREFIX}} cmake --build . --target docs -v" + maxTimeInSeconds: 12000 + maxTimeBetweenOutput: 1200 + userMessageOnFailure: > + Failed to generate docs. + - type: ExecuteCommand + command: "cp -r {{.BuildDir}}/qtbase/doc/config {{.BuildDir}}/doc" + maxTimeInSeconds: 12000 + maxTimeBetweenOutput: 1200 + userMessageOnFailure: "Failed to copy qtbase/doc/config to documentation directory." + - type: ExecuteCommand + command: "cp -r {{.BuildDir}}/qtbase/doc/global {{.BuildDir}}/doc" + maxTimeInSeconds: 12000 + maxTimeBetweenOutput: 1200 + userMessageOnFailure: "Failed to copy qtbase/doc/global to documentation directory." + - type: UploadArtifact + archiveDirectory: '{{.BuildDir}}/doc' + transferType: UploadModuleDocumentation + maxTimeInSeconds: 1800 + maxTimeBetweenOutput: 1800 +enable_if: + condition: property + property: features + contains_value: "Documentation" diff --git a/coin/instructions/coin_qt_build_template.yaml b/coin/instructions/coin_qt_build_template.yaml new file mode 100644 index 00000000..5cfe214f --- /dev/null +++ b/coin/instructions/coin_qt_build_template.yaml @@ -0,0 +1,4 @@ +type: Group +instructions: + - !include "{{qt/qt5}}/coin_qt_configure.yaml" + - !include "{{qt/qt5}}/coin_qt_build_docs.yaml" diff --git a/coin/instructions/coin_qt_configure.yaml b/coin/instructions/coin_qt_configure.yaml new file mode 100644 index 00000000..e1b445c1 --- /dev/null +++ b/coin/instructions/coin_qt_configure.yaml @@ -0,0 +1,16 @@ +type: Group +instructions: + - !include "{{qt/qtbase}}/prepare_building_env.yaml" + - type: MakeDirectory + directory: .git + - type: SetBuildDirectory + directory: "{{.SourceDir}}" + - type: ChangeDirectory + directory: "{{.BuildDir}}" + - type: ExecuteCommand + command: "{{.Env.ENV_PREFIX}} cmake {{.Env.CONFIGURE_ARGS}} -DCMAKE_INSTALL_PREFIX:PATH={{.InstallDir}} -DQT_BUILD_TESTS=OFF {{.SourceDir}}" + executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution + maxTimeInSeconds: 6000 + maxTimeBetweenOutput: 1200 + userMessageOnFailure: > + Failed to call cmake. diff --git a/coin/module_config.yaml b/coin/module_config.yaml index 98c46462..de91d6d6 100644 --- a/coin/module_config.yaml +++ b/coin/module_config.yaml @@ -6,54 +6,7 @@ accept_configuration: instructions: Build: - - !include "{{qt/qtbase}}/prepare_building_env.yaml" - - type: MakeDirectory - directory: .git - - type: SetBuildDirectory - directory: "{{.SourceDir}}" - - type: ChangeDirectory - directory: "{{.BuildDir}}" - - type: ExecuteCommand - command: "{{.Env.ENV_PREFIX}} cmake {{.Env.CONFIGURE_ARGS}} -DCMAKE_INSTALL_PREFIX:PATH={{.InstallDir}} -DQT_BUILD_TESTS=OFF {{.SourceDir}}" - executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution - maxTimeInSeconds: 6000 - maxTimeBetweenOutput: 1200 - userMessageOnFailure: > - Failed to call cmake. - - - type: Group - instructions: - - type: ExecuteCommand - command: "{{.Env.ENV_PREFIX}} cmake --build . --target qtbase/src/plugins/platforms/all qtbase/src/plugins/sqldrivers/all qttools/all --parallel -v" - maxTimeInSeconds: 12000 - maxTimeBetweenOutput: 1200 - userMessageOnFailure: > - Failed to build sources. - - type: ExecuteCommand - command: "{{.Env.ENV_PREFIX}} cmake --build . --target docs -v" - maxTimeInSeconds: 12000 - maxTimeBetweenOutput: 1200 - userMessageOnFailure: > - Failed to generate docs. - - type: ExecuteCommand - command: "cp -r {{.BuildDir}}/qtbase/doc/config {{.BuildDir}}/doc" - maxTimeInSeconds: 12000 - maxTimeBetweenOutput: 1200 - userMessageOnFailure: "Failed to copy qtbase/doc/config to documentation directory." - - type: ExecuteCommand - command: "cp -r {{.BuildDir}}/qtbase/doc/global {{.BuildDir}}/doc" - maxTimeInSeconds: 12000 - maxTimeBetweenOutput: 1200 - userMessageOnFailure: "Failed to copy qtbase/doc/global to documentation directory." - - type: UploadArtifact - archiveDirectory: '{{.BuildDir}}/doc' - transferType: UploadModuleDocumentation - maxTimeInSeconds: 1800 - maxTimeBetweenOutput: 1800 - enable_if: - condition: property - property: features - contains_value: "Documentation" + - !include "{{qt/qt5}}/coin_qt_build_template.yaml" Test: - type: EnvironmentVariable |