Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(851)

Side by Side Diff: scripts/slave/recipes/infra/build_conda_cipd_pkg.expected/linux.json

Issue 1511383003: Add recipe to build CIPD package with relocatable Conda environment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: cleanup files Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 [
2 {
3 "cmd": [
4 "python",
5 "-u",
6 "\nimport os, sys\nfrom common import chromium_utils\n\nif os.path.exists( sys.argv[1]):\n chromium_utils.RemoveDirectory(sys.argv[1])\n",
7 "[SLAVE_BUILD]/conda_staging_dir"
8 ],
9 "cwd": "[SLAVE_BUILD]",
10 "name": "rmtree cleaning staging dir",
11 "~followup_annotations": [
12 "@@@STEP_LOG_LINE@python.inline@@@@",
13 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@",
14 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils@@@",
15 "@@@STEP_LOG_LINE@python.inline@@@@",
16 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@",
17 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[ 1])@@@",
18 "@@@STEP_LOG_END@python.inline@@@"
19 ]
20 },
21 {
22 "cmd": [
23 "python",
24 "-u",
25 "[BUILD]/scripts/tools/pycurl.py",
26 "https://repo.continuum.io/miniconda/Miniconda2-3.18.3-Linux-x86_64.sh",
27 "--outfile",
28 "[TMP_BASE]/conda_tmp_1/Miniconda2-3.18.3-Linux-x86_64.sh",
29 "--attempts",
30 "5"
31 ],
32 "cwd": "[SLAVE_BUILD]",
33 "name": "fetch miniconda installer"
34 },
35 {
36 "cmd": [
37 "/bin/bash",
38 "[TMP_BASE]/conda_tmp_1/Miniconda2-3.18.3-Linux-x86_64.sh",
39 "-b",
40 "-p",
41 "[SLAVE_BUILD]/conda_staging_dir"
42 ],
43 "cwd": "[SLAVE_BUILD]",
44 "env": {
45 "PYTHONPATH": ""
46 },
47 "name": "install miniconda"
48 },
49 {
50 "cmd": [
51 "python",
52 "-u",
53 "\nimport os, sys\nfrom common import chromium_utils\n\nif os.path.exists( sys.argv[1]):\n chromium_utils.RemoveDirectory(sys.argv[1])\n",
54 "[TMP_BASE]/conda_tmp_1"
55 ],
56 "cwd": "[SLAVE_BUILD]",
57 "name": "rmtree remove miniconda installer",
58 "~followup_annotations": [
59 "@@@STEP_LOG_LINE@python.inline@@@@",
60 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@",
61 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils@@@",
62 "@@@STEP_LOG_LINE@python.inline@@@@",
63 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@",
64 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[ 1])@@@",
65 "@@@STEP_LOG_END@python.inline@@@"
66 ]
67 },
68 {
69 "cmd": [
70 "[SLAVE_BUILD]/conda_staging_dir/bin/conda",
71 "install",
72 "matplotlib",
73 "--yes"
74 ],
75 "cwd": "[SLAVE_BUILD]",
76 "env": {
77 "PYTHONPATH": ""
78 },
79 "name": "conda install matplotlib"
80 },
81 {
82 "cmd": [
83 "[SLAVE_BUILD]/conda_staging_dir/bin/conda",
84 "install",
85 "numpy",
86 "--yes"
87 ],
88 "cwd": "[SLAVE_BUILD]",
89 "env": {
90 "PYTHONPATH": ""
91 },
92 "name": "conda install numpy"
93 },
94 {
95 "cmd": [
96 "[SLAVE_BUILD]/conda_staging_dir/bin/conda",
97 "install",
98 "scipy",
99 "--yes"
100 ],
101 "cwd": "[SLAVE_BUILD]",
102 "env": {
103 "PYTHONPATH": ""
104 },
105 "name": "conda install scipy"
106 },
107 {
108 "cmd": [
109 "python",
110 "-u",
111 "RECIPE_MODULE[cipd]/resources/bootstrap.py",
112 "--platform",
113 "linux-amd64",
114 "--dest-directory",
115 "[SLAVE_BUILD]/cipd",
116 "--json-output",
117 "/path/to/tmp/json"
118 ],
119 "cwd": "[SLAVE_BUILD]",
120 "name": "install cipd",
121 "~followup_annotations": [
122 "@@@STEP_TEXT@cipd instance_id: 40-chars-fake-of-the-package-instance_id@@ @",
123 "@@@STEP_LOG_LINE@json.output@{@@@",
124 "@@@STEP_LOG_LINE@json.output@ \"executable\": \"[SLAVE_BUILD]/cipd/cipd\ ", @@@",
125 "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-pa ckage-instance_id\"@@@",
126 "@@@STEP_LOG_LINE@json.output@}@@@",
127 "@@@STEP_LOG_END@json.output@@@"
128 ]
129 },
130 {
131 "cmd": [
132 "[SLAVE_BUILD]/conda_staging_dir/bin/conda",
133 "clean",
134 "--tarballs",
135 "--index-cache",
136 "--packages",
137 "--yes"
138 ],
139 "cwd": "[SLAVE_BUILD]",
140 "env": {
141 "PYTHONPATH": ""
142 },
143 "name": "conda clean --tarballs --index-cache --packages"
144 },
145 {
146 "cmd": [
147 "python",
148 "-u",
149 "RECIPE_MODULE[conda]/resources/butcher_conda.py",
150 "[SLAVE_BUILD]/conda_staging_dir"
151 ],
152 "cwd": "[SLAVE_BUILD]",
153 "name": "make conda env location independent"
154 },
155 {
156 "cmd": [
157 "[SLAVE_BUILD]/cipd/cipd",
158 "pkg-build",
159 "--in",
160 "[SLAVE_BUILD]/conda_staging_dir",
161 "--name",
162 "infra/conda_python/scientific/linux-amd64",
163 "--out",
164 "[SLAVE_BUILD]/conda_python.cipd",
165 "--json-output",
166 "/path/to/tmp/json",
167 "--install-mode",
168 "copy"
169 ],
170 "cwd": "[SLAVE_BUILD]",
171 "name": "build linux-amd64",
172 "~followup_annotations": [
173 "@@@STEP_LOG_LINE@json.output@{@@@",
174 "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
175 "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the- package-instance_id\", @@@",
176 "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/conda_python/scient ific/linux-amd64\"@@@",
177 "@@@STEP_LOG_LINE@json.output@ }@@@",
178 "@@@STEP_LOG_LINE@json.output@}@@@",
179 "@@@STEP_LOG_END@json.output@@@"
180 ]
181 },
182 {
183 "cmd": [
184 "[SLAVE_BUILD]/cipd/cipd",
185 "pkg-register",
186 "[SLAVE_BUILD]/conda_python.cipd",
187 "--json-output",
188 "/path/to/tmp/json",
189 "--service-account-json",
190 "/creds/service_accounts/service-account-cipd-builder.json",
191 "--ref",
192 "latest",
193 "--tag",
194 "buildbot_build:chromium.testing.master/TestBuilder/571",
195 "--tag",
196 "conda:Miniconda2-3-18-3"
197 ],
198 "cwd": "[SLAVE_BUILD]",
199 "name": "register infra/conda_python/scientific/linux-amd64",
200 "~followup_annotations": [
201 "@@@STEP_LOG_LINE@json.output@{@@@",
202 "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
203 "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the- package-instance_id\", @@@",
204 "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/conda_python/scient ific/linux-amd64\"@@@",
205 "@@@STEP_LOG_LINE@json.output@ }@@@",
206 "@@@STEP_LOG_LINE@json.output@}@@@",
207 "@@@STEP_LOG_END@json.output@@@"
208 ]
209 },
210 {
211 "cmd": [
212 "python",
213 "-u",
214 "\nimport os\nimport sys\nos.remove(sys.argv[1])\n",
215 "[SLAVE_BUILD]/conda_python.cipd"
216 ],
217 "cwd": "[SLAVE_BUILD]",
218 "name": "remove *.cipd file",
219 "~followup_annotations": [
220 "@@@STEP_LOG_LINE@python.inline@@@@",
221 "@@@STEP_LOG_LINE@python.inline@import os@@@",
222 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
223 "@@@STEP_LOG_LINE@python.inline@os.remove(sys.argv[1])@@@",
224 "@@@STEP_LOG_END@python.inline@@@"
225 ]
226 },
227 {
228 "cmd": [
229 "python",
230 "-u",
231 "\nimport os, sys\nfrom common import chromium_utils\n\nif os.path.exists( sys.argv[1]):\n chromium_utils.RemoveDirectory(sys.argv[1])\n",
232 "[SLAVE_BUILD]/conda_staging_dir"
233 ],
234 "cwd": "[SLAVE_BUILD]",
235 "name": "rmtree removing conda",
236 "~followup_annotations": [
237 "@@@STEP_LOG_LINE@python.inline@@@@",
238 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@",
239 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils@@@",
240 "@@@STEP_LOG_LINE@python.inline@@@@",
241 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@",
242 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[ 1])@@@",
243 "@@@STEP_LOG_END@python.inline@@@"
244 ]
245 },
246 {
247 "name": "$result",
248 "recipe_result": null,
249 "status_code": 0
250 }
251 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698