mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-09 00:16:55 +08:00
We need to build the target "docs", not "generate_docs". The latter only creates html documentation. Creating .qch files is done with qhelpgenerator, and qhelpgenerator needs proper platform plugins and the sqlite plugin. To keep things simple, we build all the platform plugins and SQL plugins. Fixes: COIN-659 Change-Id: Ief8f71f27836e7667e3a96e0b2654bdd45647ed4 Reviewed-by: Toni Saario <toni.saario@qt.io>
54 lines
1.8 KiB
YAML
54 lines
1.8 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: MakeDirectory
|
|
directory: "{{.BuildDir}}/qtbase/doc/global"
|
|
- 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
|