2019-04-25 09:44:20 +00:00
|
|
|
version: 1
|
|
|
|
accept_configuration:
|
|
|
|
condition: property
|
|
|
|
property: host.os
|
|
|
|
equals_property: target.os
|
|
|
|
build_instructions:
|
|
|
|
- type: MakeDirectory
|
|
|
|
directory: .git
|
|
|
|
- type: SetBuildDirectory
|
|
|
|
directory: "{{.SourceDir}}"
|
|
|
|
- type: ChangeDirectory
|
|
|
|
directory: "{{.BuildDir}}"
|
|
|
|
- type: ExecuteCommand
|
2019-05-22 15:01:13 +00:00
|
|
|
command: cmake {{.Env.CONFIGURE_ARGS}} -DCMAKE_INSTALL_PREFIX:PATH={{.InstallDir}} -GNinja {{.SourceDir}}
|
2019-04-25 09:44:20 +00:00
|
|
|
maxTimeInSeconds: 6000
|
|
|
|
maxTimeBetweenOutput: 120
|
|
|
|
userMessageOnFailure: >
|
|
|
|
Failed to call cmake. Contact Liang then.
|
2019-05-22 15:01:13 +00:00
|
|
|
- type: EnvironmentVariable
|
|
|
|
variableName: DESTDIR
|
|
|
|
variableValue: "{{.InstallRoot}}"
|
2019-04-25 09:44:20 +00:00
|
|
|
- type: ExecuteCommand
|
2019-05-22 15:01:13 +00:00
|
|
|
command: ninja install
|
2019-04-25 09:44:20 +00:00
|
|
|
maxTimeInSeconds: 6000
|
|
|
|
maxTimeBetweenOutput: 120
|
|
|
|
userMessageOnFailure: >
|
2019-05-22 15:01:13 +00:00
|
|
|
Failed to build sources. In the current state bug can be everywhere. Contact Liang first.
|
2019-04-25 09:44:20 +00:00
|
|
|
- type: SignPackage
|
|
|
|
disable_if:
|
|
|
|
condition: property
|
|
|
|
property: host.os
|
|
|
|
not_equals_value: Windows
|
|
|
|
directory: "{{.InstallRoot}}/{{.AgentWorkingDir}}"
|
2019-05-16 13:09:55 +00:00
|
|
|
maxTimeInSeconds: 1200
|
|
|
|
maxTimeBetweenOutput: 1200
|
2019-04-25 09:44:20 +00:00
|
|
|
- type: UploadArtifact
|
|
|
|
archiveDirectory: "{{.InstallRoot}}/{{.AgentWorkingDir}}"
|
|
|
|
transferType: UploadModuleBuildArtifact
|
|
|
|
maxTimeInSeconds: 1200
|
|
|
|
maxTimeBetweenOutput: 1200
|
|
|
|
test_instructions:
|
|
|
|
- type: ExecuteCommand
|
|
|
|
command: echo "hello world - test"
|
2019-05-16 13:09:55 +00:00
|
|
|
maxTimeInSeconds: 60
|
|
|
|
maxTimeBetweenOutput: 12
|
2019-04-25 09:44:20 +00:00
|
|
|
userMessageOnFailure: >
|
|
|
|
Failed to call echo. Contact Liang then.
|