mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-02 03:36:54 +08:00
Copy the global and config folder from under qtbase to directory from which the documentation.tar.gz is created. This is similar to how these are added in qmake builds. Pick-to: 6.1 6.2 Task-number: QTBUG-94443 Change-Id: I1dfd6dd05057bb1bfdaeec9cf5d03fbfe474a5d1 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
62 lines
2.3 KiB
YAML
62 lines
2.3 KiB
YAML
version: 2
|
|
accept_configuration:
|
|
condition: property
|
|
property: features
|
|
not_contains_value: Disable
|
|
|
|
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"
|
|
|
|
Test:
|
|
- type: EnvironmentVariable
|
|
variableName: Dummy
|
|
variableValue: dummy
|