aboutsummaryrefslogtreecommitdiffstats
path: root/coin/module_config.yaml
blob: 163721ea2544f2612243e39bc4dee34338aeda7a (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: 2
accept_configuration:
  condition: or
  conditions:
    - condition: property
      property: features
      contains_value: LicenseCheck
    - condition: and
      conditions:
        - condition: property
          property: host.os
          equals_value: Windows
        - condition: property
          property: host
          equals_property: target
        - condition: property
          property: target.compiler
          equals_value: MSVC2019
    - condition: and
      conditions:
        - condition: property
          property: host.os
          equals_value: Linux
    - condition: and
      conditions:
        - condition: property
          property: host.os
          equals_value: MacOS

machine_type:
  Build:
    cores: 8
  Test:
    cores: 8

run_license_check: &run_license_check
     type: Group
     enable_if:
       condition: property
       property: features
       contains_value: LicenseCheck
     instructions:
       - type: EnvironmentVariable
         variableName: QT_MODULE_TO_TEST
         variableValue: "qt-creator/qt-creator"
       - type: ChangeDirectory
         directory: "{{.AgentWorkingDir}}"
       - type: ExecuteCommand
         command: echo " should run perl qt/qtqa-latest/tests/prebuild/license/tst_licenses.pl"
         maxTimeInSeconds: 7200
         maxTimeBetweenOutput: 120
         userMessageOnFailure: >
              Failed ....

common_environment: &common_environment
  type: Group
  instructions:
    - !include "{{qt-creator/qt-creator}}/common_environment.yaml"

make_instructions: &make_instructions
  type: Group
  instructions:
    - !include "{{qt-creator/qt-creator}}/provision.yaml"
    - !include "{{qt-creator/qt-creator}}/build.yaml"


instructions:
  Build:
    - *common_environment
    - *make_instructions

  Test: []

  LicenseCheck:
    - *run_license_check