| 1 |
type: Group |
| 2 |
instructions: |
| 3 |
- type: ChangeDirectory |
| 4 |
directory: "{{.AgentWorkingDir}}" |
| 5 |
- type: EnvironmentVariable |
| 6 |
variableName: QTQA_LICHECK_BRANCH |
| 7 |
variableValue: "{{ slice .Env.TESTED_MODULE_BRANCH_COIN 5 }}" |
| 8 |
enable_if: |
| 9 |
condition: runtime |
| 10 |
env_var: TESTED_MODULE_BRANCH_COIN |
| 11 |
contains_value: "tqtc/" |
| 12 |
- type: EnvironmentVariable |
| 13 |
variableName: QTQA_LICHECK_BRANCH |
| 14 |
variableValue: "{{ .Env.TESTED_MODULE_BRANCH_COIN }}" |
| 15 |
disable_if: |
| 16 |
condition: runtime |
| 17 |
env_var: TESTED_MODULE_BRANCH_COIN |
| 18 |
contains_value: "tqtc/" |
| 19 |
|
| 20 |
# Tell Coin to fetch latest refs of required repos. |
| 21 |
- type: UpdateRepo |
| 22 |
repos: [qt/qtqa] |
| 23 |
|
| 24 |
# The command must not have whitespace directly after any piping, |
| 25 |
# as whitespace directly after pipes will be interpreted as part of the command. |
| 26 |
- type: ExecuteCommand |
| 27 |
command: ["bash", "-c", "git clone --depth=1 -b {{ .Env.QTQA_LICHECK_BRANCH }} git://{{.Env.QT_COIN_GIT_DAEMON}}/qt-project/qt/qtqa qt/qtqa-latest ||git clone --depth=1 -b dev git://{{.Env.QT_COIN_GIT_DAEMON}}/qt-project/qt/qtqa qt/qtqa-latest"] |
| 28 |
maxTimeInSeconds: 600 |
| 29 |
maxTimeBetweenOutput: 600 |
| 30 |
userMessageOnFailure: > |
| 31 |
Failed to clone qtqa sources. Please investigate why. |
| 32 |
disable_if: |
| 33 |
condition: property |
| 34 |
property: host.os |
| 35 |
equals_value: Windows |
| 36 |
- type: ExecuteCommand |
| 37 |
command: ["cmd.exe", "/C", "git clone --depth=1 -b {{ .Env.QTQA_LICHECK_BRANCH }} git://{{.Env.QT_COIN_GIT_DAEMON}}/qt-project/qt/qtqa qt/qtqa-latest ||git clone --depth=1 -b dev git://{{.Env.QT_COIN_GIT_DAEMON}}/qt-project/qt/qtqa qt/qtqa-latest"] |
| 38 |
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution |
| 39 |
maxTimeInSeconds: 600 |
| 40 |
maxTimeBetweenOutput: 600 |
| 41 |
userMessageOnFailure: > |
| 42 |
Failed to clone qtqa sources. Please investigate why. |
| 43 |
enable_if: |
| 44 |
condition: property |
| 45 |
property: host.os |
| 46 |
equals_value: Windows |
| 47 |
- type: EnvironmentVariable |
| 48 |
variableName: QT_MODULE_TO_TEST |
| 49 |
variableValue: "{{.SourceDir}}" |
| 50 |
userMessageOnFailure: > |
| 51 |
Failed to set QT_MODULE_TO_TEST environment variable. This should not happen. |