forked from cloudfoundry/bosh-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathguide-rails.json
89 lines (89 loc) · 2.22 KB
/
guide-rails.json
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
{
"metadata": {
"version": 2
},
"application": {
"name": "bosh-agent",
"language": "GOLANG",
"artifact_store": {
"repositories": null
}
},
"pipeline": {
"segments": [
{
"name": "Build",
"segment_type": "build",
"exit_actions": {},
"properties": [
{
"name": "gopath",
"value": "${SEGMENT_BASE_DIR}/cache/go",
"description": "GOPATH is set to ${SEGMENT_BASE_DIR}/cache/go by default, when caching is enabled. Caches are maintained on the worker where your build gets allocated. For a new worker assigned to the build, the cache will be re-created"
}
],
"deployment_strategy": {},
"application_init": {},
"packages": [
{
"name": "((application.name))",
"downloads": [],
"files": [
"main/((application.name))"
]
}
],
"instance_tags": [
{
"name": "application.name",
"value": "((application.name))"
}
],
"cache_info": {
"paths": [
"((gopath))"
]
},
"tasks": [
{
"name": "bosh-agent",
"steps": [
{
"name": "Get Dependencies",
"definition": "Get Dependencies",
"command": "go get -t -d ./...",
"properties": null
},
{
"name": "Unit Tests",
"definition": "Unit Tests",
"command": "adduser bosh --disabled-password --gecos \"\"\n\nchown -R bosh:bosh $GOPATH/\n\nset -o pipefail\n\nsu -s /bin/bash -c \"ginkgo -cover -r -v -skipPackage=pb,test,mock,proto -outputdir=./ | tee /tmp/ginkgo.output\" bosh",
"properties": null
},
{
"name": "Convert coverage",
"definition": "Convert coverage",
"command": "cat /tmp/ginkgo.output 2\u003e\u00261 | go-junit-report \u003e test.xml\ngocov convert *.coverprofile | gocov-xml \u003e coverage.xml",
"properties": null
},
{
"name": "Build",
"definition": "Build",
"command": "pushd main\ngo build -o ((application.name))",
"properties": null
}
],
"docker_options": {}
}
]
}
],
"exit_actions": {},
"default_properties": [],
"deployment_files": [],
"application_init": {}
},
"organization": {
"orgname": "GR-Product"
}
}