summaryrefslogtreecommitdiffstats
path: root/coin/instructions/debian/prepare_debian_env.yaml
blob: c51de2103c7f474be1f5d3f73b5b2bb5eb6da38f (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
type: Group
enable_if:
  condition: property
  property: features
  contains_value: DebianPackaging
instructions:
  - type: EnvironmentVariable
    variableName: COIN_TARGET_DIST
    variableValue: "tqtc-focal"
    enable_if:
      condition: runtime
      env_var:  COIN_TARGET_DIST
      equals_value: null
  - type: EnvironmentVariable
    variableName: COIN_SBUILD_CHROOT
    variableValue: "stable-arm64-sbuild"
    enable_if:
      condition: and
      conditions:
        - condition: runtime
          env_var:  COIN_SBUILD_CHROOT
          equals_value: null
        - condition: property
          property: target.arch
          equals_value: AARCH64
  - type: EnvironmentVariable
    variableName: COIN_SBUILD_CHROOT
    variableValue: "stable-amd64-sbuild"
    enable_if:
      condition: and
      conditions:
        - condition: runtime
          env_var:  COIN_SBUILD_CHROOT
          equals_value: null
        - condition: property
          property: target.arch
          equals_value: X86_64
  - type: EnvironmentVariable
    variableName: COIN_SBUILD_DISTRO
    variableValue: "arm64-focal"
    enable_if:
      condition: property
      property: target.arch
      equals_value: AARCH64
  - type: EnvironmentVariable
    variableName: COIN_SBUILD_DISTRO
    variableValue: "amd64-focal"
    disable_if:
      condition: property
      property: target.arch
      equals_value: AARCH64

  - type: EnvironmentVariable
    variableName: COIN_SKIP_DEBIAN
    variableValue: "MISSING_DEBIAN_INST"
    enable_if:
      condition: runtime
      env_var: COIN_SKIP_DEBIAN_MODULES
      contains_value: "{{.Env.TESTED_MODULE_COIN}}"

  # Set version info to environment
  - type: ParseEnvironmentVariableFromFile
    regex: "QT_REPO_MODULE_VERSION \"(?P<QT_REPO_MODULE_VERSION>.*)\""
    filename: "{{.SourceDir}}/.cmake.conf"
    maxTimeInSeconds: 300
    maxTimeBetweenOutput: 300
    userMessageOnFailure: "Failed to parse version information from .cmake.conf"
    disable_if:
      condition: runtime
      env_var: TESTED_MODULE_COIN
      equals_value: "qt5"
  - type: ParseEnvironmentVariableFromFile
    regex: "QT_REPO_MODULE_PRERELEASE_VERSION_SEGMENT \"(?P<QT_REPO_MODULE_PRERELEASE_VERSION_SEGMENT>.*)\""
    filename: "{{.SourceDir}}/.cmake.conf"
    maxTimeInSeconds: 300
    maxTimeBetweenOutput: 300
    userMessageOnFailure: "Failed to parse status information from .cmake.conf"
    disable_if:
      condition: runtime
      env_var: TESTED_MODULE_COIN
      equals_value: "qt5"