OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "cmd": [ | 3 "cmd": [ |
4 "python", | 4 "python", |
5 "-u", | 5 "-u", |
6 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.
path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not
a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n", | 6 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.
path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not
a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n", |
7 "[SLAVE_BUILD]/go/src", | 7 "[CWD]/go/src", |
8 "511" | 8 "511" |
9 ], | 9 ], |
10 "cwd": "[SLAVE_BUILD]", | |
11 "name": "makedirs makedirs go/src", | 10 "name": "makedirs makedirs go/src", |
12 "~followup_annotations": [ | 11 "~followup_annotations": [ |
13 "@@@STEP_LOG_LINE@python.inline@@@@", | 12 "@@@STEP_LOG_LINE@python.inline@@@@", |
14 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", | 13 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", |
15 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", | 14 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", |
16 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", | 15 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", |
17 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", | 16 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", |
18 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", | 17 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", |
19 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", | 18 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", |
20 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", | 19 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", |
21 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", | 20 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", |
22 "@@@STEP_LOG_END@python.inline@@@" | 21 "@@@STEP_LOG_END@python.inline@@@" |
23 ] | 22 ] |
24 }, | 23 }, |
25 { | 24 { |
26 "cmd": [ | 25 "cmd": [ |
27 "git", | 26 "git", |
28 "clone", | 27 "clone", |
29 "https://skia.googlesource.com/buildbot", | 28 "https://skia.googlesource.com/buildbot", |
30 "[SLAVE_BUILD]/go/src/go.skia.org/infra" | 29 "[CWD]/go/src/go.skia.org/infra" |
31 ], | 30 ], |
32 "cwd": "[SLAVE_BUILD]", | |
33 "name": "git clone" | 31 "name": "git clone" |
34 }, | 32 }, |
35 { | 33 { |
36 "cmd": [ | 34 "cmd": [ |
37 "git", | 35 "git", |
38 "fetch", | 36 "fetch", |
39 "origin" | 37 "origin" |
40 ], | 38 ], |
41 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 39 "cwd": "[CWD]/go/src/go.skia.org/infra", |
42 "name": "git fetch" | 40 "name": "git fetch" |
43 }, | 41 }, |
44 { | 42 { |
45 "cmd": [ | 43 "cmd": [ |
46 "git", | 44 "git", |
47 "clean", | 45 "clean", |
48 "-d", | 46 "-d", |
49 "-f" | 47 "-f" |
50 ], | 48 ], |
51 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 49 "cwd": "[CWD]/go/src/go.skia.org/infra", |
52 "name": "git clean" | 50 "name": "git clean" |
53 }, | 51 }, |
54 { | 52 { |
55 "cmd": [ | 53 "cmd": [ |
56 "git", | 54 "git", |
57 "reset", | 55 "reset", |
58 "--hard", | 56 "--hard", |
59 "origin/master" | 57 "origin/master" |
60 ], | 58 ], |
61 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 59 "cwd": "[CWD]/go/src/go.skia.org/infra", |
62 "name": "git reset" | 60 "name": "git reset" |
63 }, | 61 }, |
64 { | 62 { |
65 "cmd": [ | 63 "cmd": [ |
66 "go", | 64 "go", |
67 "get", | 65 "get", |
68 "-u", | 66 "-u", |
69 "./..." | 67 "./..." |
70 ], | 68 ], |
71 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 69 "cwd": "[CWD]/go/src/go.skia.org/infra", |
72 "env": { | 70 "env": { |
73 "GIT_USER_AGENT": "git/1.9.1", | 71 "GIT_USER_AGENT": "git/1.9.1", |
74 "GOPATH": "[SLAVE_BUILD]/go", | 72 "GOPATH": "[CWD]/go", |
75 "PATH": "[SLAVE_BUILD]/go/bin:%(PATH)s" | 73 "PATH": "[CWD]/go/bin:%(PATH)s" |
76 }, | 74 }, |
77 "name": "update_deps" | 75 "name": "update_deps" |
78 }, | 76 }, |
79 { | 77 { |
80 "cmd": [ | 78 "cmd": [ |
81 "git", | 79 "git", |
82 "clone", | 80 "clone", |
83 "https://skia.googlesource.com/buildbot", | 81 "https://skia.googlesource.com/buildbot", |
84 "[SLAVE_BUILD]/go/src/go.skia.org/infra" | 82 "[CWD]/go/src/go.skia.org/infra" |
85 ], | 83 ], |
86 "cwd": "[SLAVE_BUILD]", | |
87 "name": "git clone (2)" | 84 "name": "git clone (2)" |
88 }, | 85 }, |
89 { | 86 { |
90 "cmd": [ | 87 "cmd": [ |
91 "git", | 88 "git", |
92 "fetch", | 89 "fetch", |
93 "origin" | 90 "origin" |
94 ], | 91 ], |
95 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 92 "cwd": "[CWD]/go/src/go.skia.org/infra", |
96 "name": "git fetch (2)" | 93 "name": "git fetch (2)" |
97 }, | 94 }, |
98 { | 95 { |
99 "cmd": [ | 96 "cmd": [ |
100 "git", | 97 "git", |
101 "clean", | 98 "clean", |
102 "-d", | 99 "-d", |
103 "-f" | 100 "-f" |
104 ], | 101 ], |
105 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 102 "cwd": "[CWD]/go/src/go.skia.org/infra", |
106 "name": "git clean (2)" | 103 "name": "git clean (2)" |
107 }, | 104 }, |
108 { | 105 { |
109 "cmd": [ | 106 "cmd": [ |
110 "git", | 107 "git", |
111 "reset", | 108 "reset", |
112 "--hard", | 109 "--hard", |
113 "origin/master" | 110 "origin/master" |
114 ], | 111 ], |
115 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 112 "cwd": "[CWD]/go/src/go.skia.org/infra", |
116 "name": "git reset (2)" | 113 "name": "git reset (2)" |
117 }, | 114 }, |
118 { | 115 { |
119 "cmd": [ | 116 "cmd": [ |
120 "git", | 117 "git", |
121 "rev-parse", | 118 "rev-parse", |
122 "HEAD" | 119 "HEAD" |
123 ], | 120 ], |
124 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 121 "cwd": "[CWD]/go/src/go.skia.org/infra", |
125 "name": "git rev-parse", | 122 "name": "git rev-parse", |
126 "stdout": "/path/to/tmp/", | 123 "stdout": "/path/to/tmp/", |
127 "~followup_annotations": [ | 124 "~followup_annotations": [ |
128 "@@@SET_BUILD_PROPERTY@got_revision@\"abc123\"@@@" | 125 "@@@SET_BUILD_PROPERTY@got_revision@\"abc123\"@@@" |
129 ] | 126 ] |
130 }, | 127 }, |
131 { | 128 { |
132 "cmd": [ | 129 "cmd": [ |
133 "go", | 130 "go", |
134 "get", | 131 "get", |
135 "golang.org/x/tools/cmd/goimports" | 132 "golang.org/x/tools/cmd/goimports" |
136 ], | 133 ], |
137 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 134 "cwd": "[CWD]/go/src/go.skia.org/infra", |
138 "env": { | 135 "env": { |
139 "GIT_USER_AGENT": "git/1.9.1", | 136 "GIT_USER_AGENT": "git/1.9.1", |
140 "GOPATH": "[SLAVE_BUILD]/go", | 137 "GOPATH": "[CWD]/go", |
141 "PATH": "[SLAVE_BUILD]/go/bin:%(PATH)s" | 138 "PATH": "[CWD]/go/bin:%(PATH)s" |
142 }, | 139 }, |
143 "name": "install goimports" | 140 "name": "install goimports" |
144 }, | 141 }, |
145 { | 142 { |
146 "cmd": [ | 143 "cmd": [ |
147 "go", | 144 "go", |
148 "get", | 145 "get", |
149 "github.com/kisielk/errcheck" | 146 "github.com/kisielk/errcheck" |
150 ], | 147 ], |
151 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 148 "cwd": "[CWD]/go/src/go.skia.org/infra", |
152 "env": { | 149 "env": { |
153 "GIT_USER_AGENT": "git/1.9.1", | 150 "GIT_USER_AGENT": "git/1.9.1", |
154 "GOPATH": "[SLAVE_BUILD]/go", | 151 "GOPATH": "[CWD]/go", |
155 "PATH": "[SLAVE_BUILD]/go/bin:%(PATH)s" | 152 "PATH": "[CWD]/go/bin:%(PATH)s" |
156 }, | 153 }, |
157 "name": "install errcheck" | 154 "name": "install errcheck" |
158 }, | 155 }, |
159 { | 156 { |
160 "cmd": [ | 157 "cmd": [ |
161 "./setup_test_db" | 158 "./setup_test_db" |
162 ], | 159 ], |
163 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra/go/database", | 160 "cwd": "[CWD]/go/src/go.skia.org/infra/go/database", |
164 "env": { | 161 "env": { |
165 "GIT_USER_AGENT": "git/1.9.1", | 162 "GIT_USER_AGENT": "git/1.9.1", |
166 "GOPATH": "[SLAVE_BUILD]/go", | 163 "GOPATH": "[CWD]/go", |
167 "PATH": "[SLAVE_BUILD]/go/bin:%(PATH)s" | 164 "PATH": "[CWD]/go/bin:%(PATH)s" |
168 }, | 165 }, |
169 "name": "setup database" | 166 "name": "setup database" |
170 }, | 167 }, |
171 { | 168 { |
172 "cmd": [ | 169 "cmd": [ |
173 "python", | 170 "python", |
174 "-u", | 171 "-u", |
175 "run_unittests" | 172 "run_unittests" |
176 ], | 173 ], |
177 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", | 174 "cwd": "[CWD]/go/src/go.skia.org/infra", |
178 "env": { | 175 "env": { |
179 "GIT_USER_AGENT": "git/1.9.1", | 176 "GIT_USER_AGENT": "git/1.9.1", |
180 "GOPATH": "[SLAVE_BUILD]/go", | 177 "GOPATH": "[CWD]/go", |
181 "KARMA_PORT": "15001", | 178 "KARMA_PORT": "15001", |
182 "PATH": "[SLAVE_BUILD]/go/bin:%(PATH)s" | 179 "PATH": "[CWD]/go/bin:%(PATH)s" |
183 }, | 180 }, |
184 "name": "run_unittests" | 181 "name": "run_unittests" |
185 }, | 182 }, |
186 { | 183 { |
187 "name": "$result", | 184 "name": "$result", |
188 "recipe_result": null, | 185 "recipe_result": null, |
189 "status_code": 0 | 186 "status_code": 0 |
190 } | 187 } |
191 ] | 188 ] |
OLD | NEW |