diff options
| -rw-r--r-- | coin/instructions/build_dotnet.yaml | 38 | ||||
| -rw-r--r-- | coin/instructions/common_env.yaml | 11 | ||||
| -rw-r--r-- | coin/module_config.yaml | 19 | ||||
| -rw-r--r-- | dependencies.yaml | 4 |
4 files changed, 72 insertions, 0 deletions
diff --git a/coin/instructions/build_dotnet.yaml b/coin/instructions/build_dotnet.yaml new file mode 100644 index 0000000..199929a --- /dev/null +++ b/coin/instructions/build_dotnet.yaml @@ -0,0 +1,38 @@ +type: Group +instructions: + + - type: EnvironmentVariable + variableName: CMAKE_PREFIX_PATH + variableValue: "\\users\\qt\\work\\install" + - type: EnvironmentVariable + variableName: QtInstallRoot + variableValue: "\\users\\qt\\work\\install" + + - type: ChangeDirectory + directory: "{{.AgentWorkingDir}}/qt-labs/qtdotnet" + maxTimeInSeconds: 300 + maxTimeBetweenOutput: 120 + userMessageOnFailure: > + Failed to change to qtdotnet dir + + - type: ExecuteCommand + command: ["dotnet", "build", "-c", "Debug"] + maxTimeInSeconds: 6000 + maxTimeBetweenOutput: 1200 + userMessageOnFailure: > + Failed to build qtdotnet for debug target. + + - type: ExecuteCommand + command: ["dotnet", "build", "-c", "Release"] + maxTimeInSeconds: 6000 + maxTimeBetweenOutput: 1200 + userMessageOnFailure: > + Failed to build qtdotnet for release target. + # Allow test failure until NativeDesktop package is merged to qt5 + - type: ExecuteCommand + command: ["dotnet", "test", "-c", "Release", "--no-build"] + ignoreExitCode: true + maxTimeInSeconds: 6000 + maxTimeBetweenOutput: 1200 + userMessageOnFailure: > + Failed to run test for release target. diff --git a/coin/instructions/common_env.yaml b/coin/instructions/common_env.yaml new file mode 100644 index 0000000..2d6fd0d --- /dev/null +++ b/coin/instructions/common_env.yaml @@ -0,0 +1,11 @@ +type: Group +instructions: + - type: EnvironmentVariable + variableName: QTEST_ENVIRONMENT + variableValue: "ci" + - type: AppendToEnvironmentVariable + variableName: PATH + variableValue: ";{{.AgentWorkingDir}}\\install\\bin" + - type: EnvironmentVariable + variableName: QTDIR + variableValue: "{{.AgentWorkingDir}}\\install" diff --git a/coin/module_config.yaml b/coin/module_config.yaml new file mode 100644 index 0000000..42abf56 --- /dev/null +++ b/coin/module_config.yaml @@ -0,0 +1,19 @@ +version: 2 +tags: [git] +accept_configuration: + condition: property + property: features + not_contains_value: Disable + +instructions: + + Build: + - type: Group + instructions: + - !include "{{qt-labs/qtdotnet}}/common_env.yaml" + - !include "{{qt-labs/qtdotnet}}/build_dotnet.yaml" + enable_if: + condition: property + property: features + contains_value: RunAsPlatformDependency + Test: [] diff --git a/dependencies.yaml b/dependencies.yaml new file mode 100644 index 0000000..eaba559 --- /dev/null +++ b/dependencies.yaml @@ -0,0 +1,4 @@ +dependencies: + ../../qt/qtdeclarative: + ref: 4c77c50924afcb92aed176f7d9471e0e29818c3a + required: true |
