blob: f2aed1186a7658930b1a7d59d1e28812f1c228d2 (
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
|
version: 2
tags: ["documentation"]
accept_configuration:
condition: and
conditions:
- condition: property
property: features
not_contains_value: Disable
instructions:
Build:
- type: EnvironmentVariable
variableName: BUILD_DOCUMENTATION
variableValue: "1"
- type: AppendToEnvironmentVariable
variableName: NON_QTBASE_TARGET_CMAKE_ARGS
variableValue: " -DINPUT_hardware_id=dummyHwId -DQT_FORCE_BUILD_TOOLS=ON"
enable_if:
condition: property
property: target.os
equals_value: QNX
# Enable Axivion_analysis for Qt
- type: EnvironmentVariable
variableName: AXIVION_ANALYSIS
variableValue: "1"
enable_if:
condition: property
property: features
contains_value: Axivion_qtapplicationmanager
# Enable a lcov code-coverage build
- type: AppendToEnvironmentVariable
variableName: NON_QTBASE_CMAKE_ARGS
variableValue: " -DAM_COVERAGE=ON"
enable_if:
condition: property
property: features
contains_value: lcov
- type: AppendToEnvironmentVariable
variableName: COMMON_TEST_CMAKE_ARGS
variableValue: " -DAM_COVERAGE=ON"
enable_if:
condition: property
property: features
contains_value: lcov
- type: Rename
sourcePath: "{{.SourceDir}}/coin/axivion/ci_config_common.json"
targetPath: "{{.Env.HOME}}/axivion/ci_config_common.json"
userMessageOnFailure: "Moving ci_config_common.json failed. Make sure you have included the file in coin/axivion/ -folder"
enable_if:
condition: property
property: features
contains_value: Axivion_qtapplicationmanager
- type: Group
instructions:
- !include "{{qt/qtbase}}/coin_module_build_template_v2.yaml"
- type: Group
instructions:
- !include "{{qt/qtapplicationmanager}}/cmake_module_lcov_code_coverage.yaml"
enable_if:
condition: property
property: features
contains_value: lcov
Test:
- type: EnvironmentVariable
variableName: AM_TIMEOUT_FACTOR
variableValue: 4
- type: EnvironmentVariable
variableName: AM_NO_CUSTOM_LOGGING
variableValue: 1
- type: EnvironmentVariable
variableName: AM_NO_CRASH_HANDLER
variableValue: 1
- type: Group
instructions:
- !include "{{qt/qtbase}}/coin_module_test_template_v3.yaml"
- !include "{{qt/qtbase}}/coin_module_test_docs.yaml"
disable_if:
condition: or
conditions:
- condition: property
property: target.os
in_values: ["IOS", "Android", "WebAssembly", "QNX"]
- condition: property
property: features
contains_value: lcov
|