mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-25 16:16:23 +08:00
CMake: Add documentation building CI instructions
Replicate the instructions that Coin does for qmake configurations. Build all of qttools and its dependencies and then build the top-level docs. Task-number: QTBUG-87012 Change-Id: Iac70172cf13d8943e60c26a1f2ee3ddf5bae6667 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -21,6 +21,27 @@ instructions:
|
||||
userMessageOnFailure: >
|
||||
Failed to call cmake.
|
||||
|
||||
- type: Group
|
||||
instructions:
|
||||
- type: ExecuteCommand
|
||||
command: "{{.Env.ENV_PREFIX}} cmake --build . --target qttools/all --parallel -v"
|
||||
maxTimeInSeconds: 12000
|
||||
maxTimeBetweenOutput: 1200
|
||||
userMessageOnFailure: >
|
||||
Failed to build sources.
|
||||
- type: ExecuteCommand
|
||||
command: "{{.Env.ENV_PREFIX}} cmake --build . --target generate_docs -v"
|
||||
maxTimeInSeconds: 12000
|
||||
maxTimeBetweenOutput: 1200
|
||||
userMessageOnFailure: >
|
||||
Failed to generate docs.
|
||||
- type: MakeDirectory
|
||||
directory: "{{.BuildDir}}/qtbase/doc/global"
|
||||
enable_if:
|
||||
condition: property
|
||||
property: features
|
||||
contains_value: "Documentation"
|
||||
|
||||
Test:
|
||||
- type: EnvironmentVariable
|
||||
variableName: Dummy
|
||||
|
||||
@@ -16,7 +16,7 @@ Configurations:
|
||||
-
|
||||
Template: 'qtci-linux-Ubuntu-20.04-x86_64-50'
|
||||
Compiler: 'GCC'
|
||||
Features: ['Sccache', 'InsignificantTests']
|
||||
Features: ['Sccache', 'InsignificantTests', 'Documentation']
|
||||
Configure arguments: '-DBUILD_EXAMPLES=ON -DFEATURE_developer_build=ON -DWARNINGS_ARE_ERRORS=OFF -DQT_LIBINFIX=TestInfix -DQT_NAMESPACE=TestNamespace -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache'
|
||||
Environment variables: ['NON_QTBASE_CONFIGURE_ARGS=-DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache',
|
||||
'TEST_CONFIGURE_ARGS=-DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache']
|
||||
|
||||
Reference in New Issue
Block a user