blob: 2e7b3061665c221dffaa2b46b5b3481c5d2857f5 (
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
|
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
command: cmake {{.Env.CONFIGURE_ARGS}}
maxTimeInSeconds: 6000
maxTimeBetweenOutput: 120
userMessageOnFailure: >
Failed to call cmake. Contact Liang then.
- type: ExecuteCommand
command: make DESTDIR={{.InstallRoot}} -j {{.NumCPU}} install
maxTimeInSeconds: 6000
maxTimeBetweenOutput: 120
userMessageOnFailure: >
Failed to call make install. Contact Liang then.
disable_if:
condition: property
property: host.os
equals_value: Windows
- type: ExecuteCommand
command: jom DESTDIR={{.InstallRoot}} -j {{.NumCPU}} install
maxTimeInSeconds: 6000
maxTimeBetweenOutput: 120
userMessageOnFailure: >
Failed to call jom install. Contact Liang then.
disable_if:
condition: property
property: host.os
not_equals_value: Windows
- type: SignPackage
disable_if:
condition: property
property: host.os
not_equals_value: Windows
directory: "{{.InstallRoot}}/{{.AgentWorkingDir}}"
- type: UploadArtifact
archiveDirectory: "{{.InstallRoot}}/{{.AgentWorkingDir}}"
transferType: UploadModuleBuildArtifact
maxTimeInSeconds: 1200
maxTimeBetweenOutput: 1200
test_instructions:
- type: ExecuteCommand
command: echo "hello world - test"
maxTimeInSeconds: 6000
maxTimeBetweenOutput: 120
userMessageOnFailure: >
Failed to call echo. Contact Liang then.
|