aboutsummaryrefslogtreecommitdiffstats
path: root/coin/module_config.yaml
blob: 3da0ae8f78eb949374a6fef66b34cbee26d67250 (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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: 2
accept_configuration:
  condition: or
  conditions:
    - condition: property
      property: features
      contains_value: LicenseCheck
    - condition: and
      conditions:
        - condition: property  # No cross compilation
          property: host.os
          equals_property: target.os
        - condition: property
          property: features
          contains_value: Packaging
        - condition: property
          property: features
          not_contains_value: UseLegacyInstructions
        - condition: property  # MinGW and msvc2015 are not supported
          property: target.compiler
          not_in_values: [Mingw, MSVC2015]
        - condition: property  # Webassembly
          property: target.osVersion
          not_equals_value: WebAssembly
        - condition: property  # Windows on Arm
          property: target.arch
          not_equals_value: ARM64
    - condition: and
      conditions:
        - condition: property  # No cross compilation
          property: host.osVersion
          equals_value: MacOS_10_15
        - condition: property
          property: features
          contains_value: TestOnly
        - condition: property
          property: features
          contains_value: Packaging
    - condition: and
      conditions:
        - condition: property
          property: host.osVersion
          equals_value: MacOS_11_00
        - condition: property
          property: features
          contains_value: Packaging
    - condition: and
      conditions:
        - condition: property
          property: host.osVersion
          equals_value: MacOS_11_00
        - condition: property
          property: host.arch
          equals_value: ARM64
        - condition: property
          property: features
          contains_value: TestOnly
        - condition: property
          property: features
          contains_value: Packaging

machine_type:
  Build:
    cores: 8

upload_pyside: &upload_pyside
     type: Group
     instructions:
       - type: UploadArtifact
         archiveDirectory: "{{.AgentWorkingDir}}\\pyside"
         transferType: UploadModuleBuildArtifact
         maxTimeInSeconds: 1200
         maxTimeBetweenOutput: 1200
         enable_if:
           condition: property
           property: host.os
           equals_value: Windows
       - type: UploadArtifact
         archiveDirectory: "{{.AgentWorkingDir}}/pyside"
         transferType: UploadModuleBuildArtifact
         maxTimeInSeconds: 1200
         maxTimeBetweenOutput: 1200
         enable_if:
           condition: property
           property: host.os
           not_equals_value: Windows

instructions:
     LicenseCheck:
      - !include "{{pyside/pyside-setup}}/execute_license_check.yaml"
     Build:
      - !include "{{pyside/pyside-setup}}/common_environment.yaml"
      - !include "{{pyside/pyside-setup}}/find_path_to_msvc_compiler.yaml"
      - !include "{{pyside/pyside-setup}}/execute_build_instructions.yaml"
      - *upload_pyside
     Test:
      - !include "{{pyside/pyside-setup}}/common_environment.yaml"
      - !include "{{pyside/pyside-setup}}/find_path_to_msvc_compiler.yaml"
      - !include "{{pyside/pyside-setup}}/relocate_pyside.yaml"
      - !include "{{pyside/pyside-setup}}/execute_test_instructions.yaml"