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
101
102
103
104
105
106
107
108
109
110
111
112
113
|
type: Group
disable_if:
condition: property
property: features
contains_value: LicenseCheck
instructions:
- type: EnvironmentVariable
variableName: QTEST_ENVIRONMENT
variableValue: "ci"
- type: EnvironmentVariable
variableName: TESTRUNNER
variableValue: "{{.Env.CI_WINRTRUNNER_PATH}}\\winrtrunner.exe"
enable_if:
condition: property
property: target.os
equals_value: WinRT
- type: Group
instructions:
- type: ChangeDirectory
directory: "{{.SourceDir}}/tests"
maxTimeInSeconds: 300
maxTimeBetweenOutput: 120
userMessageOnFailure: "Failed to change into tests directory."
- type: ExecuteCommand
command: "{{.InstallDir}}/bin/qmake.exe INSTALL_PREFIX={{.InstallDir}} IFW_LIB_PATH={{.InstallDir}}/lib"
maxTimeInSeconds: 600
maxTimeBetweenOutput: 600
userMessageOnFailure: "Failed running qmake, check logs."
- type: ExecuteCommand
command: Mingw32-make
maxTimeInSeconds: 36000
maxTimeBetweenOutput: 3600
userMessageOnFailure: "Failed to run make, check logs."
- type: ChangeDirectory
directory: "{{.SourceDir}}/tests/auto"
maxTimeInSeconds: 300
maxTimeBetweenOutput: 120
userMessageOnFailure: "Failed to change directory."
- type: RunQtUnitTest
directory: "{{.SourceDir}}/tests/auto"
testRepetitionAllowance: 3
runTestCommand: ["Mingw32-make", "check", "-j1"]
maxTimeInSeconds: 3600
maxTimeBetweenOutput: 600
userMessageOnFailure: "Test execution failed, check logs."
enable_if:
condition: property
property: target.compiler
in_values: [Mingw53, Mingw73]
- type: Group
instructions:
- type: ChangeDirectory
directory: "{{.SourceDir}}/tests"
maxTimeInSeconds: 300
maxTimeBetweenOutput: 120
userMessageOnFailure: "Failed to change into tests directory."
- type: ExecuteCommand
command: "{{.InstallDir}}/bin/qmake INSTALL_PREFIX={{.InstallDir}} IFW_LIB_PATH={{.InstallDir}}/lib"
maxTimeInSeconds: 600
maxTimeBetweenOutput: 600
userMessageOnFailure: "Failed running qmake, check logs."
- type: ExecuteCommand
command: make
maxTimeInSeconds: 36000
maxTimeBetweenOutput: 3600
userMessageOnFailure: "Failed to run make, check logs."
- type: RunQtUnitTest
runTestCommand: ["make", "check", "-j1"]
directory: "{{.SourceDir}}/tests/auto"
testRepetitionAllowance: 3
maxTimeInSeconds: 36000
maxTimeBetweenOutput: 1200
userMessageOnFailure: "Test execution failed, check logs."
enable_if:
condition: property
property: target.compiler
in_values: [GCC, Clang]
- type: Group
instructions:
- type: ChangeDirectory
directory: "{{.SourceDir}}/tests"
maxTimeInSeconds: 300
maxTimeBetweenOutput: 120
userMessageOnFailure: "Failed to change into tests directory."
- type: ExecuteCommand
command: "c:{{.InstallDir}}\\bin\\qmake.exe INSTALL_PREFIX={{.InstallDir}} IFW_LIB_PATH={{.InstallDir}}/lib"
maxTimeInSeconds: 600
maxTimeBetweenOutput: 600
userMessageOnFailure: "Failed running qmake, check logs."
- type: ExecuteCommand
command: "jom"
maxTimeInSeconds: 36000
maxTimeBetweenOutput: 3600
userMessageOnFailure: "Failed to run jom/make, check logs."
- type: ChangeDirectory
directory: "{{.SourceDir}}/tests/auto"
maxTimeInSeconds: 300
maxTimeBetweenOutput: 120
userMessageOnFailure: "Failed to change dir"
- type: RunQtUnitTest
testRepetitionAllowance: 3
directory: "{{.SourceDir}}/tests/auto"
runTestCommand: ["jom", "check"]
maxTimeInSeconds: 3600
maxTimeBetweenOutput: 600
userMessageOnFailure: "Failed to run make check, check logs."
enable_if:
condition: property
property: target.compiler
in_values: [MSVC2013, MSVC2015, MSVC2017, MSVC2019]
|