aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-10-20 18:21:12 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-11-06 17:26:00 +0100
commit992cbdfd0176d55bebfa8994db134edb41256838 (patch)
tree9b6d4df75b3550ef9e54ae9bf6b469ac80725db9
parent187b80e1401108d457e12c6f213be1a4437410df (diff)
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>
-rw-r--r--coin/module_config.yaml21
-rw-r--r--coin/platform_configs/cmake_platforms.yaml2
2 files changed, 22 insertions, 1 deletions
diff --git a/coin/module_config.yaml b/coin/module_config.yaml
index 222a8bbe..990cb97c 100644
--- a/coin/module_config.yaml
+++ b/coin/module_config.yaml
@@ -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
diff --git a/coin/platform_configs/cmake_platforms.yaml b/coin/platform_configs/cmake_platforms.yaml
index 56395b93..8bccd6a7 100644
--- a/coin/platform_configs/cmake_platforms.yaml
+++ b/coin/platform_configs/cmake_platforms.yaml
@@ -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']