mirror of
git://code.qt.io/qt/qt5.git
synced 2025-12-21 07:28:21 +08:00
coin: Split top-level build instructions
Makes it a bit cleaner to follow. Pick-to: 6.2 6.3 Change-Id: I063581126b6d09f98fb38862c8af5531dc513aca Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Toni Saario <toni.saario@qt.io>
This commit is contained in:
33
coin/instructions/coin_qt_build_docs.yaml
Normal file
33
coin/instructions/coin_qt_build_docs.yaml
Normal file
@@ -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"
|
||||
4
coin/instructions/coin_qt_build_template.yaml
Normal file
4
coin/instructions/coin_qt_build_template.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
type: Group
|
||||
instructions:
|
||||
- !include "{{qt/qt5}}/coin_qt_configure.yaml"
|
||||
- !include "{{qt/qt5}}/coin_qt_build_docs.yaml"
|
||||
16
coin/instructions/coin_qt_configure.yaml
Normal file
16
coin/instructions/coin_qt_configure.yaml
Normal file
@@ -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.
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user