aboutsummaryrefslogtreecommitdiffstats
path: root/coin/module_config.yaml
blob: 990cb97c651bdcc91aa92f0210d6b262c05fee62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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}} -DBUILD_TESTING=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 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
      variableValue: dummy